/*
Theme Name: Ortoland
Theme URI: https://ortoland.pl
Author: Ortoland
Author URI: https://ortoland.pl/
Description: **Introducing Aramco – Physical Therapy & Physiotherapy WordPress Theme**   Experience the future of rehabilitation with Aramco. This cutting-edge approach combines AI-driven techniques with expert therapy to optimize recovery, improve mobility, and enhance overall well-being.
Version: 1.0
Requires PHP: 7.4
Tested up to: 6.0
License: ThemeForest
License URI: https://themeforest.net/licenses
Template: aramco
Text Domain: ortoland
Copyright (c) 2025 Case-Themes. All rights reserved.
This theme is licensed under the GPL-2.0+ license.
Tags:  	chiropractor, clinic, dentist, doctor, healthcare, medical, orthopedic, pharmacy, physical therapy, physiotherapy, psychologist, rehab, rehabilitation, sport, wellness 
*/

ul.product-categories2 ul.children {
	padding-left: 12px;
}


/* Przykładowy kontener samej nawigacji kategorii */
.shop-categories-sticky {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
}


/* =========================================
   ORTOLAND - DRZEWO KATEGORII WOOCOMMERCE
   ========================================= */

.widget_product_categories ul.product-categories {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Wszystkie pozycje */
.widget_product_categories li {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Kategorie główne */
.widget_product_categories > ul > li {
    /*border-bottom: 1px solid #e8e8e8;*/
}

.widget_product_categories > ul > li > a {
    display: block;
    padding: 11px 38px 11px 12px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color .2s ease;
}

.widget_product_categories > ul > li > a:hover {
    background: #f5f7f8;
}

.widget_product_categories.ortoland-category-tree .product-categories li + li > a {
    padding-top: 11px !important;
}

/* =========================================
   PODKATEGORIE
   ========================================= */

.widget_product_categories .children {
    margin: 0 0 6px 12px;
    padding: 3px 0 5px 12px;
    border-left: 2px solid #e5e8ea;
    list-style: none;
}

.widget_product_categories .children li a {
    display: block;
    padding: 7px 34px 7px 8px;
    font-size: 0.92em;
    font-weight: 400;
    line-height: 1.35;
    text-decoration: none;
}

.widget_product_categories .children li a:hover {
    background: #f7f8f9;
}

/* Kolejny poziom, gdyby kiedyś się pojawił */
.widget_product_categories .children .children {
    margin-left: 10px;
    padding-left: 10px;
}

/* =========================================
   AKTUALNA KATEGORIA
   ========================================= */

.widget_product_categories li.current-cat > a {
    font-weight: 600;
    background: #f1f4f5;
}

.widget_product_categories li.current-cat > a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    bottom: 7px;
    width: 3px;
    border-radius: 2px;
    background: currentColor;
}


/* =========================================
   WYSZUKIWARKA
   ========================================= */


.is-form-style input.is-search-input {
    border-radius: 18px;
}


/* =========================================
   KARTA KOSZYKA
   ========================================= */

body.woocommerce-cart .cart-collaterals .cart_totals td {
    font-size: 20px !important;
}

body.woocommerce-cart .pxl-entry-content > .woocommerce .cart-collaterals {
    max-width: 100% !important;
}

.woocommerce ul#shipping_method li input,
.woocommerce ul#shipping_method li label,
.woocommerce ul#shipping_method li p {
    display: inline-block;
}

body.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout {
    text-align: center !important;
}

body.woocommerce-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout .checkout-button {
    width: auto !important;
}

.wp-block-woocommerce-checkout-actions-block .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button {
    min-width: 250px !important;
}


/* STYLIZACJA KLASYCZNEGO FORMULARZA ZAMÓWIENIA NA STYL MINIMALISTYCZNY/ZAOKRĄGLONY */

/* 1. Zaokrąglenie i reset pól tekstowych, selectów i textarea */
.woocommerce-checkout form .form-row input.input-text, 
.woocommerce-checkout form .form-row textarea,
.woocommerce-checkout form .form-row select,
.woocommerce-checkout .select2-container--default .select2-selection--single {
    border-radius: 50px !important; /* Maksymalne zaokrąglenie krawędzi (efekt pigułki) */
    border: 1px solid #e2e2e2 !important; /* Bardzo jasna, delikatna ramka */
    padding: 12px 24px !important; /* Odpowiednie odstępy wewnątrz pola */
    height: auto !important;
    min-height: 48px !important;
    background-color: #fff !important;
    box-shadow: none !important;
    font-size: 15px !important;
    color: #444 !important;
    transition: all 0.3s ease-in-out !important;
    width: 100% !important;
}

/* 2. Stylowanie pola wyboru kraju (Select2, z którego korzysta WooCommerce) */
/* 2. Stylowanie i wyrównanie wysokości pola wyboru kraju/województwa (Select2) */
.woocommerce-checkout .select2-container--default .select2-selection--single {
    display: flex !important;
    align-items: center !important;
    height: 48px !important; /* Sztywna wysokość dopasowana do min-height zwykłych pól */
    min-height: 48px !important;
    padding: 0 24px !important; /* Padding tylko z boków, góra/dół wyzerowane przez flex */
}

.woocommerce-checkout .select2-container--default span.select2-selection--single {
    border-radius: 50px !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 0 !important;
    padding-right: 0 !important;
    color: #444 !important;
    line-height: 48px !important; /* Wyrównanie tekstu w pionie do wysokości pola */
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: 26px !important;
}


/* 3. Wygląd pól po kliknięciu myszką (Focus) */
.woocommerce-checkout form .form-row input.input-text:focus, 
.woocommerce-checkout form .form-row textarea:focus,
.woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #000000 !important; /* Ramka zmienia kolor na czarny lub ciemny przy edycji (jak w nowym checkout) */
    outline: none !important;
}

/* 4. Dopasowanie textarea (np. uwagi do zamówienia) - mniejsze zaokrąglenie dla estetyki */
.woocommerce-checkout form .form-row textarea {
    border-radius: 20px !important; 
    height: 120px !important;
}

/* 5. Delikatne wyrównanie i ukrycie grubych, tradycyjnych etykiet (opcjonalnie) */
.woocommerce-checkout form .form-row label {
    font-weight: 500 !important;
    font-size: 14px !important;
    margin-bottom: 6px !important;
    padding-left: 15px !important; /* Przesunięcie etykiety nad zaokrąglone pole */
    color: #666 !important;
}

.woocommerce-checkout form .woocommerce-shipping-fields {
    padding-bottom: 25px;
}

.woocommerce-checkout form.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table th, .woocommerce-checkout form.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table td {
    color: #4D745F;
}

.woocommerce-checkout form.woocommerce-checkout #order_review #payment div.payment_box {
    color: #4D745F;
}

/* REORGANIZACJA UKŁADU PRZYCISKÓW W KOSZYKU */
.woocommerce-cart table.cart td.actions {
    display: flex !important;
    justify-content: space-between !important; /* Rozsuwa przyciski na lewo i prawo */
    align-items: center !important;
    width: 100% !important;
}

/* STYLIZACJA PRZYCISKU KONTYNUUJ ZAKUPY (DOPASOWANA DO TWÓJ_MOTYW) */

/* WYRÓWNANIE PRZYCISKÓW KOSZYKA ZA POMOCĄ FLOAT (BEZ FLEXBOXA) */

/* Upewniamy się, że komórka akcji ma 100% szerokości i czyści opływanie */
.woocommerce-cart table.cart td.actions {
    width: 100% !important;
    display: table-cell !important; /* Zwracamy naturalny charakter tabeli, by zachować 100% width */
    text-align: left !important; /* Resetujemy domyślne wyrównanie motywu do prawej */
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* Wymuszamy, aby wewnętrzny kontener (jeśli istnieje) lub same elementy nie łamały wiersza */
.woocommerce-cart table.cart td.actions::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* PRZYCISK: Kontynuuj Zakupy (Maksymalnie do lewej krawędzi) */
table.cart td.actions .continue-shopping-btn,
.woocommerce-cart .continue-shopping-btn {
    float: left !important; /* Wypycha przycisk do lewej strony */
    background-color: #4f7362 !important; /* Ciemnozielony motywu Aramco */
    color: #ffffff !important;
    border-radius: 50px !important; /* Efekt zaokrąglonej pigułki */
    padding: 0px 30px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: none !important;
    transition: all 0.3s ease-in-out !important;
    display: inline-block !important;
    margin: 0 !important;
}

/* Efekt hover dla przycisku Kontynuuj Zakupy */
table.cart td.actions .continue-shopping-btn:hover {
    background-color: #3b5749 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* PRZYCISK: Zaktualizuj Koszyk (Maksymalnie do prawej krawędzi) */
.woocommerce-cart table.cart td.actions button[name="update_cart"],
.woocommerce-cart table.cart td.actions .button[name="update_cart"] {
    float: right !important; /* Wypycha przycisk maksymalnie do prawej strony */
    display: inline-block !important;
    margin: 0 !important;
    /* Zachowuje domyślne style z motywu dla tego przycisku */
}

/* =========================================================================
   POPRAWKA DLA URZĄDZEŃ MOBILNYCH (SMARTFONY I MAŁE TABLETY)
   ========================================================================= */
@media screen and (max-width: 767px) {
    /* Zmieniamy komórkę akcji w kontener pionowy */
    .woocommerce-cart table.cart td.actions {
        display: block !important;
        width: 100% !important;
        padding: 15px 0 !important;
    }

    /* Resetujemy opływanie i rozciągamy oba przyciski na 100% szerokości */
    table.cart td.actions .continue-shopping-btn,
    .woocommerce-cart .continue-shopping-btn,
    .woocommerce-cart table.cart td.actions button[name="update_cart"],
    .woocommerce-cart table.cart td.actions .button[name="update_cart"] {
        float: none !important; /* Wyłącza przyklejenie do lewej/prawej */
        display: block !important; /* Wymusza zachowanie blokowe (jeden pod drugim) */
        width: 100% !important; /* Rozciąga na pełną szerokość ekranu telefonu */
        text-align: center !important; /* Środkuje tekst na przycisku */
        box-sizing: border-box !important;
    }

    /* Przycisk Aktualizacji Koszyka ląduje na górze i dostaje margines od dołu */
    .woocommerce-cart table.cart td.actions button[name="update_cart"],
    .woocommerce-cart table.cart td.actions .button[name="update_cart"] {
        margin-bottom: 12px !important; /* Tworzy bezpieczną przerwę między przyciskami */
    }
}


.single-product #pxl-content-area div.product .woocommerce-gallery-inner.flex-slider-active, .single-product > div.product .woocommerce-gallery-inner.flex-slider-active {
    padding-left: 0 !important;
}



#add_payment_method .cart-collaterals .cart_totals table small, .woocommerce-cart .cart-collaterals .cart_totals table small, .woocommerce-checkout .cart-collaterals .cart_totals table small {
    color: #d6d6d6;
}

.woocommerce .nice-select,
.woocommerce-page .nice-select {
    padding-right: 24px !important;
}

.single-product #pxl-content-area div.product .entry-summary .single_add_to_cart_button:hover, .single-product > div.product .entry-summary .single_add_to_cart_button:hover {
    color: #000;
}

.single-product #pxl-content-area div.product form.cart:not(.variations_form) label, .single-product > div.product form.cart:not(.variations_form) label, .single-product #pxl-content-area div.product form.cart:not(.grouped_form) label, .single-product > div.product form.cart:not(.grouped_form) label {
    line-height: inherit !important;
}

.variations_form table.variations tr.value {
    display: flex;
    flex-direction: column;
}

.variations_form table.variations th.label,
.variations_form table.variations td.value {
    display: block;
    width: 100%;
}