/*
Theme Name: WoodMart Child
Template: woodmart
Version: 1.0.0
*/

.wd-checkout-steps li span {
    text-transform: none !important;
}

/* INTEROL - lista kategorii w sidebarze */
.wd-nav-product-cat {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wd-nav-product-cat > li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wd-nav-product-cat .category-nav-link {
    display: block !important;
    width: 100%;
    padding: 7px 0 !important;
    color: #2b2b2b !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    text-transform: none !important;
}

.wd-nav-product-cat .nav-link-summary,
.wd-nav-product-cat .nav-link-text {
    display: block !important;
}

.wd-nav-product-cat .category-nav-link:hover {
    color: #000 !important;
}

.wd-nav-product-cat > li.wd-active > .category-nav-link {
    color: #000 !important;
    font-weight: 600;
}

/* INTEROL – zwężenie prawej części strony produktu */
@media (min-width: 1025px) {
    body.single-product .elementor-element-968cd07
    .elementor-element-8710ed2 {
        width: 80% !important;
        max-width: 80% !important;
        margin-right: auto !important;
    }
}

/* INTEROL – wishlist przy prawej krawędzi obszaru produktu */
@media (min-width: 1025px) {

    /* Kontener tytułu i wishlist */
    body.single-product .elementor-element-bb5ff8a {
        display: flex !important;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 30px;
        width: 100% !important;
    }

    /* Tytuł – zachowuje szerokość i może się zawijać */
    body.single-product .elementor-element-d7fbc0f {
        flex: 1 1 auto;
        min-width: 0;
        padding-right: 0 !important;
    }

    /* Wishlist – bezpośrednio za tytułem */
    body.single-product .elementor-element-61802c0 {
        position: static !important;
        flex: 0 0 44px;
        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
    }

    body.single-product .elementor-element-61802c0 .elementor-widget-container,
    body.single-product .elementor-element-61802c0 .wd-wishlist-btn {
        width: 44px;
        height: 44px;
        margin: 0 !important;
    }
}

/* Interol – licznik produktów w koszyku mobilnym */
@media (max-width: 1024px) {
    .wd-header-cart .wd-cart-number {
        background-color: #F5A623 !important;
        color: #111111 !important;
        border: 1px solid #F5A623 !important;
        border-radius: 50% !important;
    }
}


/* ==========================================
   INTEROL – NAGŁÓWEK DESKTOP
   Konto / Ulubione / Koszyk
   ========================================== */

@media (min-width: 1025px) {

    /* Wspólny układ elementów */
    .whb-main-header .whb-col-right .wd-tools-element > a {
        display: flex;
        align-items: center;
        gap: 9px;
    }

    /* Ikony */
    .whb-main-header .whb-col-right .wd-tools-icon {
        flex-shrink: 0;
        color: #fff;
    }

    /* Teksty główne */
    .whb-main-header .whb-col-right .wd-tools-text {
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.35;
    }

    /* Konto – podpis */
    .whb-main-header .whb-col-right
    .wd-header-my-account .wd-tools-text::after {
        content: "Zaloguj się";
        display: block;
        color: #bdbdbd;
        font-size: 10px;
        font-weight: 400;
        margin-top: 2px;
    }

    /* Ulubione – podpis */
    .whb-main-header .whb-col-right
    .wd-header-wishlist .wd-tools-text::before {
        content: "Ulubione";
        display: block;
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .whb-main-header .whb-col-right
    .wd-header-wishlist .wd-tools-text {
        color: #bdbdbd;
        font-size: 10px;
        font-weight: 400;
    }

    /* Koszyk – tekst obok ikony */
    .whb-main-header .whb-col-right
    .wd-header-cart > a::after {
        content: "Koszyk";
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.35;
    }

    /* Licznik produktów – pomarańczowy */
    .whb-main-header .whb-col-right
    .wd-header-cart .wd-cart-number {
        background-color: #f5a623;
        color: #111;
        border-radius: 50%;
    }

    /* Odstępy między elementami */
    .whb-main-header .whb-col-right
    .whb-space-element {
        width: 18px !important;
    }
}


/* INTEROL – usunięcie podkreśleń linków globalnie */
a,
a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none !important;
}

a *,
a:hover *,
a:focus *,
a:active * {
    text-decoration: none !important;
}

/* My Account: keep order actions readable on narrow screens. */
@media (max-width: 767px) {
    table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details tfoot tr:has(> th.order-actions--heading) > th.order-actions--heading {
        margin: 0;
        padding: 0;
        white-space: nowrap;
        text-align: start;
        vertical-align: middle;
    }

    table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details tfoot tr:has(> th.order-actions--heading) > td {
        text-align: end;
        vertical-align: top;
    }

    table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details tfoot tr:has(> th.order-actions--heading) > td::before {
        content: none;
    }

    table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details tfoot tr:has(> th.order-actions--heading) > td > a.order-actions-button {
        display: flex;
        float: none;
        position: static;
        width: 120px;
        max-width: 100%;
        margin: 0;
        margin-inline-start: auto;
        margin-inline-end: 0;
        box-sizing: border-box;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
    }

    table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details tfoot tr:has(> th.order-actions--heading) > td > a.order-actions-button + a.order-actions-button {
        margin-top: 8px;
    }
}



/* Readable legal documents supplied by the store owner. */
.interol-legal-content { max-width: 960px; margin: 0 auto; overflow-wrap: anywhere; }
.interol-legal-content h2 { margin-top: 32px; }
.interol-legal-content table { width: 100%; table-layout: fixed; }
.interol-legal-content td { padding: 12px; border: 1px solid #ddd; vertical-align: top; }
.interol-legal-content img { max-width: 100%; height: auto; }
