/*
 * KPA Refresh — storefront styling on top of Babystreet.
 * Everything is scoped to body.kpa so switching the plugin off restores the old look.
 * Brand colours come from the theme options (Appearance > Theme Options).
 */

body.kpa {
    --kpa-navy: #183a5c;
    --kpa-sky: #81d1e5;
    --kpa-sky-dark: #3eafcb;
    --kpa-coral: #ff8087;
    --kpa-coral-dark: #f2636b;
    --kpa-mist: #ebf7fa;
    --kpa-ink: #1f2d3d;
    --kpa-muted: #6b7a8c;
    --kpa-line: #e6edf2;
    --kpa-surface: #ffffff;
    --kpa-soft: #f6f9fb;
    --kpa-radius: 14px;
    --kpa-radius-sm: 10px;
    --kpa-shadow: 0 6px 24px rgba(24, 58, 92, .08);
    --kpa-header-h: 64px;
    color: var(--kpa-ink);
    -webkit-font-smoothing: antialiased;
}

/* ---------- Announcement bar ---------- */

body.kpa .kpa-announce {
    background: var(--kpa-navy);
    color: #fff;
    font: 600 12.5px/1.3 Quicksand, sans-serif;
    letter-spacing: .02em;
    text-align: center;
    padding: 9px 14px;
}

/* The old top bar only showed a support email and phone; the announcement replaces it. */
body.kpa #header_top {
    display: none !important;
}

/* ---------- Buttons: solid pills instead of dashed stitches ---------- */

body.kpa .button,
body.kpa button.button,
body.kpa input[type="submit"],
body.kpa .wpcf7-submit,
body.kpa .single_add_to_cart_button,
body.kpa .checkout-button,
body.kpa #place_order {
    border-radius: 999px !important;
    font-family: Quicksand, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: .02em;
    text-transform: none !important;
    box-shadow: 0 4px 14px rgba(255, 128, 135, .28);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease !important;
}

body.kpa .button:hover,
body.kpa .single_add_to_cart_button:hover,
body.kpa .checkout-button:hover,
body.kpa #place_order:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 128, 135, .34);
}

body.kpa .button,
body.kpa .single_add_to_cart_button,
body.kpa .checkout-button,
body.kpa #place_order {
    border: 0 !important;
    outline: 0;
}

/* the currency symbol falls back to a serif font in the theme */
body.kpa .woocommerce-Price-amount,
body.kpa .woocommerce-Price-currencySymbol,
body.kpa .price {
    font-family: Quicksand, sans-serif !important;
}

body.kpa .button:after,
body.kpa .button:before,
body.kpa .single_add_to_cart_button:after,
body.kpa .checkout-button:after,
body.kpa #place_order:after {
    border: 0 !important;
}

/* ---------- Form fields ---------- */

body.kpa input[type="text"],
body.kpa input[type="email"],
body.kpa input[type="tel"],
body.kpa input[type="password"],
body.kpa input[type="number"],
body.kpa input[type="search"],
body.kpa textarea,
body.kpa select {
    border: 1px solid var(--kpa-line) !important;
    border-radius: var(--kpa-radius-sm) !important;
    background: #fff !important;
    font-size: 16px !important; /* 16px stops iOS zooming into fields */
    color: var(--kpa-ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}

body.kpa input:focus,
body.kpa textarea:focus,
body.kpa select:focus {
    border-color: var(--kpa-sky-dark) !important;
    box-shadow: 0 0 0 3px rgba(129, 209, 229, .35) !important;
    outline: none;
}

/* ---------- Header: phones and tablets (theme switches to the mobile menu below 1280px) ---------- */

@media (max-width: 1279px) {
    body.kpa #header {
        box-shadow: 0 1px 0 var(--kpa-line);
    }

    body.kpa #header .main_menu_holder {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        min-height: var(--kpa-header-h);
        padding: 0 12px !important;
        position: relative;
    }

    body.kpa #header .main_menu_holder > * {
        float: none !important;
        margin: 0 !important;
    }

    /* menu button, pinned left (the theme positions it itself, so flex order alone is not enough) */
    body.kpa #header a.mob-menu-toggle {
        order: 1;
        position: absolute !important;
        left: 6px !important;
        right: auto !important;
        top: 50% !important;
        transform: translateY(-50%);
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0 !important;
    }

    /* the desktop menu is replaced by the drawer here; it only takes up room */
    body.kpa #header #main-menu {
        display: none !important;
    }

    /* three-line icon drawn in CSS (the theme's icon-font glyph renders at zero width) */
    body.kpa #header a.mob-menu-toggle i {
        position: relative !important;
        display: block !important;
        width: 22px !important;
        height: 2px !important;
        margin: 0 !important;
        border-radius: 2px !important;
        background: var(--kpa-navy) !important;
        box-shadow: 0 -7px 0 var(--kpa-navy), 0 7px 0 var(--kpa-navy);
        font-size: 0 !important;
    }

    body.kpa #header a.mob-menu-toggle i:after,
    body.kpa #header a.mob-menu-toggle i:before {
        display: none !important;
    }

    /* logo, centred. The theme hides it on phones because its "mobile logo" image was deleted. */
    body.kpa #header #logo {
        order: 2;
        position: absolute !important;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: block !important;
        clear: none !important;
    }

    body.kpa #header #logo a {
        display: block;
    }

    body.kpa #header #logo img:not(.transparent_logo):not(.babystreet_mobile_logo) {
        display: block !important;
        height: 36px !important;
        width: auto !important;
        max-height: none !important;
    }

    body.kpa #header #logo img.transparent_logo,
    body.kpa #header #logo img.babystreet_mobile_logo {
        display: none !important;
    }

    /* search + cart, right; wishlist and account move into the menu drawer on phones */
    body.kpa #header .babystreet-search-cart-holder {
        order: 3;
        margin-left: auto !important;
        display: flex !important;
        align-items: center;
        gap: 2px;
        padding: 0 !important;
        background: none !important;
    }

    body.kpa #header .babystreet-search-cart-holder:before,
    body.kpa #header .babystreet-search-cart-holder:after {
        display: none !important;
    }

    body.kpa #header .babystreet-search-cart-holder > * {
        float: none !important;
        margin: 0 !important;
        position: relative !important;
    }

    body.kpa #header .babystreet-search-cart-holder a {
        color: var(--kpa-navy) !important;
    }

    body.kpa #header .babystreet-search-trigger > a,
    body.kpa #header #cart-module a.cart-contents {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        background: none !important;
    }

    body.kpa #header .babystreet-search-trigger i,
    body.kpa #header #cart-module a.cart-contents:before {
        color: var(--kpa-navy) !important;
        font-size: 20px !important;
    }

    body.kpa #header #cart-module,
    body.kpa #header #cart-module li {
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.kpa #header #cart-module span.count {
        position: absolute !important;
        margin: 0 !important;
        top: 3px !important;
        right: 2px !important;
        left: auto !important;
        min-width: 18px;
        height: 18px;
        line-height: 18px !important;
        padding: 0 4px;
        border-radius: 999px;
        background: var(--kpa-coral) !important;
        color: #fff !important;
        font-size: 11px !important;
        font-weight: 700;
    }
}

@media (max-width: 767px) {
    body.kpa #header .babystreet-wishlist-counter,
    body.kpa #header #babystreet-account-holder {
        display: none !important;
    }
}

/* ---------- Header: desktop icons without the dashed pill ---------- */

@media (min-width: 1280px) {
    body.kpa #header .babystreet-search-cart-holder:before,
    body.kpa #header .babystreet-search-cart-holder:after {
        display: none !important;
    }

    body.kpa #header .babystreet-search-cart-holder a,
    body.kpa #header .babystreet-search-cart-holder i,
    body.kpa #header #cart-module a.cart-contents:before {
        color: var(--kpa-navy) !important;
    }

    body.kpa #header .babystreet-search-cart-holder a:hover,
    body.kpa #header .babystreet-search-cart-holder a:hover i {
        color: var(--kpa-coral) !important;
    }

    body.kpa #header #cart-module span.count,
    body.kpa #header .babystreet-wish-number {
        background: var(--kpa-coral) !important;
        color: #fff !important;
    }
}

/* ---------- Mobile menu drawer ---------- */

body.kpa #menu_mobile {
    background: #fff !important;
}

body.kpa #menu_mobile.active {
    box-shadow: 8px 0 32px rgba(24, 58, 92, .18);
}

body.kpa .kpa-scrim {
    position: fixed;
    inset: 0;
    z-index: 24999; /* just under the drawer (25000) */
    background: rgba(24, 58, 92, .35);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

body.kpa.kpa-drawer-open .kpa-scrim {
    opacity: 1;
    visibility: visible;
}

/* drawer top row: tabs for Menu / Account / Wishlist, plus close */
body.kpa #menu_mobile ul.babystreet-mobile-menu-tabs {
    background: var(--kpa-mist) !important;
    border: 0 !important;
}

body.kpa #menu_mobile ul.babystreet-mobile-menu-tabs li a.ui-tabs-anchor,
body.kpa #menu_mobile ul.babystreet-mobile-menu-tabs li a.mob-close-toggle {
    background: transparent !important;
    color: var(--kpa-navy) !important;
    border-bottom: 3px solid transparent !important;
}

body.kpa #menu_mobile ul.babystreet-mobile-menu-tabs li.ui-tabs-active a.ui-tabs-anchor {
    border-bottom-color: var(--kpa-coral) !important;
}

body.kpa #menu_mobile ul.babystreet-mobile-menu-tabs li a:before,
body.kpa #menu_mobile ul.babystreet-mobile-menu-tabs li a:after {
    color: var(--kpa-navy) !important;
}

body.kpa #menu_mobile a,
body.kpa #menu_mobile i,
body.kpa #menu_mobile span,
body.kpa #menu_mobile h4,
body.kpa #menu_mobile .mob-close-toggle {
    color: var(--kpa-navy) !important;
}

body.kpa #menu_mobile .mob-close-toggle:before,
body.kpa #menu_mobile .mob-close-toggle:after {
    background-color: var(--kpa-navy) !important;
}

body.kpa #menu_mobile ul#mobile-menu.menu li a {
    font-family: Quicksand, sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--kpa-navy);
    padding-top: 13px !important;
    padding-bottom: 13px !important;
    border-bottom: 1px solid var(--kpa-line) !important;
}

body.kpa #menu_mobile ul#mobile-menu.menu li ul li a {
    font-weight: 600;
    font-size: 15px;
    color: var(--kpa-muted);
}

/* ---------- Product page ---------- */

body.kpa.single-product .summary h1.product_title {
    font-size: clamp(22px, 5.6vw, 32px) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: var(--kpa-navy) !important;
    margin-bottom: 10px !important;
}

body.kpa.single-product .summary .woocommerce-product-details__short-description {
    color: var(--kpa-muted);
    font-size: 15px;
    line-height: 1.6;
}

body.kpa.single-product .summary p.price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 6px !important;
    font-size: 26px !important;
    font-weight: 700 !important;
}

body.kpa.single-product .summary p.price ins {
    order: -1;
    text-decoration: none;
    color: var(--kpa-coral-dark) !important;
}

body.kpa.single-product .summary p.price del {
    font-size: 16px !important;
    font-weight: 500;
    color: #9aa7b4 !important;
    opacity: 1 !important;
}

body.kpa.single-product .summary span.babystreet-separator {
    display: none !important;
}

/* variation options */
body.kpa .kpa-select-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.kpa table.variations,
body.kpa table.variations tbody,
body.kpa table.variations tr,
body.kpa table.variations th,
body.kpa table.variations td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    text-align: left !important;
}

body.kpa table.variations tr {
    margin-bottom: 16px !important;
}

body.kpa table.variations th.label label,
body.kpa table.variations td.label label {
    display: block;
    margin: 0 0 8px !important;
    font: 700 13px/1.2 Quicksand, sans-serif !important;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--kpa-navy) !important;
}

body.kpa .kpa-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.kpa .kpa-pill {
    min-width: 58px;
    min-height: 44px;
    padding: 0 14px;
    border: 1.5px solid var(--kpa-line);
    border-radius: 12px;
    background: #fff;
    color: var(--kpa-ink);
    font: 600 14px/1 Quicksand, sans-serif;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

body.kpa .kpa-pill:hover {
    border-color: var(--kpa-sky);
}

body.kpa .kpa-pill.is-on {
    border-color: var(--kpa-navy);
    background: var(--kpa-navy);
    color: #fff;
}

body.kpa .kpa-pill:disabled {
    color: #b7c1cb;
    background: repeating-linear-gradient(135deg, #fff 0 6px, #f4f6f8 6px 7px);
    cursor: not-allowed;
    text-decoration: line-through;
}

body.kpa a.reset_variations {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--kpa-muted) !important;
}

body.kpa form.variations_form.kpa-attention table.variations {
    animation: kpa-nudge .5s ease 2;
}

@keyframes kpa-nudge {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* quantity + add to cart on one row, button fills the space */
body.kpa.single-product .summary .woocommerce-variation-add-to-cart,
body.kpa.single-product .summary form.cart:not(.variations_form) {
    display: flex !important;
    align-items: stretch;
    gap: 10px;
    margin-top: 6px;
}

body.kpa.single-product .summary .quantity {
    flex: 0 0 auto;
    margin: 0 !important;
}

body.kpa.single-product .summary .quantity input.qty {
    width: 64px !important;
    height: 52px !important;
    border-radius: 999px !important;
    text-align: center;
    font-weight: 700;
}

body.kpa.single-product .summary .single_add_to_cart_button {
    flex: 1 1 auto;
    height: 52px !important;
    margin: 0 !important;
    font-size: 16px !important;
    background-color: var(--kpa-coral) !important;
}

body.kpa.single-product .summary .single_add_to_cart_button.disabled {
    opacity: .55 !important;
}

/* wishlist as a quiet text link under the button */
body.kpa.single-product .summary .yith-wcwl-add-to-wishlist {
    margin: 12px 0 0 !important;
    text-align: left !important;
}

body.kpa.single-product .summary .yith-wcwl-add-to-wishlist * {
    white-space: nowrap;
}

body.kpa.single-product .summary .yith-wcwl-add-to-wishlist a {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    color: var(--kpa-navy) !important;
    font: 600 14px/1 Quicksand, sans-serif;
}

/* delivery / payment reassurance */
body.kpa .kpa-perks {
    list-style: none !important;
    margin: 18px 0 !important;
    padding: 4px 16px !important;
    border-radius: var(--kpa-radius);
    background: var(--kpa-soft);
    border: 1px solid var(--kpa-line);
}

body.kpa .kpa-perk:before {
    display: none !important;
}

body.kpa .kpa-perk {
    margin: 0 !important;
    padding-left: 0 !important;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--kpa-line);
    font-size: 14px;
    line-height: 1.35;
    color: var(--kpa-ink);
}

body.kpa .kpa-perk:last-child {
    border-bottom: 0;
}

body.kpa .kpa-perk strong {
    display: block;
    font-weight: 700;
    color: var(--kpa-navy);
}

body.kpa .kpa-perk small {
    display: block;
    font-size: 13px;
    color: var(--kpa-muted);
}

body.kpa .kpa-perk small a {
    color: var(--kpa-sky-dark) !important;
    text-decoration: underline;
}

body.kpa .kpa-perk__icon {
    flex: 0 0 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff center / 20px no-repeat;
    box-shadow: 0 0 0 1px var(--kpa-line);
}

body.kpa .kpa-perk--truck .kpa-perk__icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23183a5c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3zM14 9h4l3 3v4h-7'/%3E%3Ccircle cx='7' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E");
}

body.kpa .kpa-perk--cash .kpa-perk__icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23183a5c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6' width='19' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3Cpath d='M6 9.5v5M18 9.5v5'/%3E%3C/svg%3E");
}

body.kpa .kpa-perk--swap .kpa-perk__icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23183a5c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h13l-3-3M20 15H7l3 3'/%3E%3C/svg%3E");
}

/* categories / SKU: quieter */
body.kpa.single-product .summary .product_meta {
    font-size: 13px !important;
    color: var(--kpa-muted) !important;
    border: 0 !important;
    padding-top: 4px !important;
}

/* bottom buy bar (phones) */
body.kpa .kpa-buybar {
    display: none;
}

@media (max-width: 767px) {
    body.kpa .kpa-buybar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9990;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -6px 20px rgba(24, 58, 92, .12);
        transform: translateY(110%);
        transition: transform .25s ease;
    }

    body.kpa .kpa-buybar.is-visible {
        transform: translateY(0);
    }

    body.kpa .kpa-buybar__price p.price {
        margin: 0 !important;
        display: flex;
        flex-direction: column;
        font-size: 18px !important;
        font-weight: 700;
        line-height: 1.15;
    }

    body.kpa .kpa-buybar__price ins {
        text-decoration: none;
        color: var(--kpa-coral-dark);
    }

    body.kpa .kpa-buybar__price del {
        order: 2;
        font-size: 12px;
        color: #9aa7b4;
    }

    body.kpa .kpa-buybar__btn {
        flex: 1;
        height: 48px;
        border: 0;
        border-radius: 999px;
        background: var(--kpa-coral);
        color: #fff;
        font: 700 16px/1 Quicksand, sans-serif;
        box-shadow: 0 4px 14px rgba(255, 128, 135, .3);
    }

    /* keep the footer's last lines visible above the bar */
    body.kpa.kpa-buybar-on #footer {
        padding-bottom: 72px;
    }
}

/* tighter stack under the size buttons: the theme leaves 35 + 25 + 20px of empty space */
body.kpa.single-product .summary table.variations {
    margin-bottom: 6px !important;
}

body.kpa.single-product .summary .woocommerce-variation {
    margin: 0 0 10px !important;
}

body.kpa.single-product .summary .woocommerce-variation-availability {
    margin: 0 !important;
}

body.kpa.single-product .summary .woocommerce-variation-availability p.stock,
body.kpa.single-product .summary > p.stock {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    font: 600 13.5px/1.3 Quicksand, sans-serif !important;
    color: #2e9e62 !important;
}

body.kpa.single-product .summary p.stock.in-stock:before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3fb97a;
}

body.kpa.single-product .summary p.stock.out-of-stock {
    color: #d6454e !important;
}

/* wishlist: left-aligned under the button, heart and label on one line */
body.kpa.single-product .summary .yith-wcwl-add-to-wishlist,
body.kpa.single-product .summary .yith-wcwl-add-to-wishlist > div,
body.kpa.single-product .summary .yith-wcwl-add-to-wishlist .yith-wcwl-add-button {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center;
    width: auto !important;
    text-align: left !important;
}

body.kpa.single-product .summary .yith-wcwl-add-to-wishlist a {
    width: auto !important;
    height: auto !important;
    padding: 8px 0 !important;
    font-size: 14px !important;
}

/* the theme draws its own heart (icon font, :before); the plugin's SVG heart would be a second one */
body.kpa.single-product .summary .yith-wcwl-add-to-wishlist a svg.yith-wcwl-icon-svg {
    display: none !important;
}

body.kpa.single-product .summary .yith-wcwl-add-to-wishlist a:before {
    position: static !important;
    font-size: 20px !important;
    line-height: 1 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
}

body.kpa.single-product .summary .yith-wcwl-add-to-wishlist a {
    gap: 8px;
}

/* size guide link + chart popup */
body.kpa .kpa-sizeguide-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    height: 40px !important;
    margin: 4px 0 0;
    padding: 0 16px 0 12px !important;
    line-height: 1 !important;
    border: 1px solid var(--kpa-line) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--kpa-navy) !important;
    font: 700 13.5px/1 Quicksand, sans-serif !important;
    cursor: pointer;
    box-shadow: none !important;
}

body.kpa .kpa-sizeguide-btn svg {
    flex: 0 0 auto;
    width: 20px !important;
    height: 20px !important;
}

body.kpa .kpa-sizeguide-btn span {
    line-height: 1 !important;
}

/* the paragraph that holds the button adds its own gap */
body.kpa .summary p:has(> .kpa-sizeguide-btn) {
    margin: 6px 0 0 !important;
    line-height: 1 !important;
}

body.kpa .kpa-modal {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(24, 58, 92, .45);
}

body.kpa .kpa-modal[hidden] {
    display: none !important;
}

body.kpa .kpa-modal__box {
    position: relative;
    width: min(760px, 100%);
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 18px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

body.kpa .kpa-modal__box h3 {
    margin: 0 40px 12px 0 !important;
    font: 700 17px/1.3 Quicksand, sans-serif !important;
    color: var(--kpa-navy) !important;
}

body.kpa .kpa-modal__body {
    overflow-x: auto; /* wide charts can be swiped sideways on phones */
}

body.kpa .kpa-modal__body img {
    display: block;
    width: 100%;
    min-width: 560px;
    height: auto;
}

body.kpa .kpa-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--kpa-soft);
    color: var(--kpa-navy);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

body.kpa.kpa-modal-open {
    overflow: hidden;
}

/* related / up-sell products as a grid */
body.kpa .kpa-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
}

@media (min-width: 768px) {
    body.kpa .kpa-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 30px 22px;
    }
}

body.kpa .kpa-grid > .prod_hold {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

body.kpa.single-product .related h2,
body.kpa.single-product .upsells h2 {
    font: 700 22px/1.25 Quicksand, sans-serif !important;
    color: var(--kpa-navy) !important;
    margin: 0 0 16px !important;
}

/* WhatsApp bubble would sit on the Add to cart button: on product pages it only shows with the buy bar */
@media (max-width: 767px) {
    body.kpa.single-product:not(.kpa-buybar-on) .kpa-wa-float {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    body.kpa.single-product .kpa-wa-float {
        transition: opacity .2s ease, visibility .2s ease, bottom .25s ease;
    }
}

/* reviews */
body.kpa .kpa-folded {
    display: none !important;
}

body.kpa .kpa-write-review {
    display: inline-block;
    margin: 8px 0 4px;
    padding: 12px 22px;
    border: 1.5px solid var(--kpa-navy);
    border-radius: 999px;
    background: #fff;
    color: var(--kpa-navy);
    font: 700 15px/1 Quicksand, sans-serif;
    cursor: pointer;
}

body.kpa.single-product .woocommerce-tabs {
    background: var(--kpa-soft) !important;
}

body.kpa.single-product .woocommerce-tabs.kpa-one-tab ul.tabs {
    display: none !important; /* a single tab needs no tab bar */
}

body.kpa.single-product #reviews h2 {
    font-size: 22px !important;
    color: var(--kpa-navy) !important;
}

/* ---------- Collection pages (shop, categories) + all product grids ---------- */

/* product grid: 2 / 3 / 4 columns (shop pages use .box-products, WPBakery product blocks use .woocommerce.columns-N) */
body.kpa .woocommerce[class*="columns-"]:has(> .prod_hold) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
}

@media (min-width: 768px) {
    body.kpa .woocommerce[class*="columns-"]:has(> .prod_hold) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px 22px;
    }
}

@media (min-width: 1100px) {
    body.kpa .woocommerce.columns-4:has(> .prod_hold) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

body.kpa .woocommerce[class*="columns-"]:has(> .prod_hold):before,
body.kpa .woocommerce[class*="columns-"]:has(> .prod_hold):after {
    display: none !important;
}

body.kpa .woocommerce[class*="columns-"] > .prod_hold {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
}

body.kpa .box-products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
    margin: 0 !important;
}

@media (min-width: 768px) {
    body.kpa .box-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px 22px;
    }
}

@media (min-width: 1100px) {
    body.kpa .box-products.columns-4,
    body.kpa .box-products.columns-5 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

body.kpa .box-products:before,
body.kpa .box-products:after {
    display: none !important; /* clearfix pseudo-elements would become grid cells */
}

body.kpa .box-products > .prod_hold {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
}

/* owl carousels (related products) keep their slider layout */
body.kpa .owl-carousel .prod_hold {
    padding: 0 6px !important;
}

/* card */
body.kpa .prod_hold .image {
    position: relative;
    width: auto !important;
    margin: 0 0 10px !important;
    border-radius: var(--kpa-radius);
    overflow: hidden;
    background: var(--kpa-soft);
    aspect-ratio: 1 / 1;
}

body.kpa .prod_hold .image a,
body.kpa .prod_hold .image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

body.kpa .prod_hold .babystreet-list-prod-summary {
    width: auto !important;
    padding: 0 2px !important;
    text-align: left !important;
}

body.kpa .prod_hold .babystreet-list-prod-summary .name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font: 600 14.5px/1.35 Quicksand, sans-serif !important;
    color: var(--kpa-ink) !important;
    text-align: left !important;
    min-height: 2.7em;
}

body.kpa .prod_hold .price_hold {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    margin-top: 4px;
    font: 700 15px/1.2 Quicksand, sans-serif !important;
    color: var(--kpa-navy) !important;
    text-align: left !important;
}

body.kpa .prod_hold .price_hold ins {
    order: -1;
    text-decoration: none;
    color: var(--kpa-coral-dark) !important;
}

body.kpa .prod_hold .price_hold del {
    font-size: 12.5px;
    font-weight: 500;
    color: #9aa7b4 !important;
}

/* sale / new badges */
body.kpa div.prod_hold .sale,
body.kpa div.prod_hold .new_prod,
body.kpa .prod_hold .onsale {
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 5px 9px !important;
    border-radius: 999px !important;
    font: 700 11.5px/1 Quicksand, sans-serif !important;
    line-height: 1 !important;
}

body.kpa div.prod_hold .sale:before,
body.kpa div.prod_hold .sale:after,
body.kpa .prod_hold .onsale:before,
body.kpa .prod_hold .onsale:after {
    display: none !important;
}

/* hover buttons: on touch screens only the wishlist heart remains, top-right on the photo */
@media (hover: none), (max-width: 767px) {
    body.kpa .prod_hold .links {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        left: auto !important;
        bottom: auto !important;
        width: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: none !important;
        padding: 0 !important;
        z-index: 3;
    }

    body.kpa .prod_hold .links > a.button,
    body.kpa .prod_hold .links > a.babystreet-quick-view-link {
        display: none !important;
    }

    body.kpa .prod_hold .links .yith-wcwl-add-to-wishlist a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 34px !important;
        height: 34px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, .92) !important;
        box-shadow: 0 2px 8px rgba(24, 58, 92, .12);
        font-size: 0 !important;
        color: var(--kpa-navy) !important;
    }

    body.kpa .prod_hold .links .yith-wcwl-add-to-wishlist a i,
    body.kpa .prod_hold .links .yith-wcwl-add-to-wishlist a svg {
        font-size: 16px !important;
        width: 16px;
        height: 16px;
        margin: 0 !important;
    }

    body.kpa .prod_hold .links .yith-wcwl-add-to-wishlist a span {
        display: none !important;
    }

    body.kpa .prod_hold .image {
        position: relative;
    }
}

/* the card wrapper must be the positioning context for the heart */
body.kpa .prod_hold {
    position: relative;
}

/* page gutters on phones */
@media (max-width: 767px) {
    /* collection pages only (single products have their own theme gutters) */
    body.kpa.woocommerce-page:not(.single-product) #products-wrapper,
    body.kpa.woocommerce-page:not(.single-product) #products-wrapper #main {
        width: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.kpa.woocommerce-page:not(.single-product) #products-wrapper {
        padding: 0 14px !important;
    }

    body.kpa.woocommerce-page #products-wrapper .sidebar {
        display: none !important; /* category chips at the top replace it on phones */
    }

    body.kpa.woocommerce-page .term-description {
        width: auto !important;
        padding: 0 14px !important;
        font-size: 13.5px;
        color: var(--kpa-muted);
    }
}

/* compact title block */
body.kpa.woocommerce-page .babystreet_title_holder {
    padding-top: 22px !important;
    padding-bottom: 22px !important;
    min-height: 0 !important;
}

body.kpa.woocommerce-page .babystreet_title_holder h1 {
    font-size: clamp(24px, 6.5vw, 40px) !important;
    line-height: 1.15 !important;
    margin: 6px 0 0 !important;
}

@media (max-width: 767px) {
    body.kpa.woocommerce-page .babystreet_title_holder .inner {
        padding: 0 14px !important;
    }

    body.kpa.woocommerce-page .babystreet_title_holder:before,
    body.kpa.woocommerce-page .babystreet_title_holder:after {
        opacity: .35; /* soften the decorative clouds behind the title */
    }
}

/* sub-category chips (built from the theme's category carousel) */
body.kpa .kpa-subcats {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -14px 18px;
    padding: 4px 14px 6px;
}

body.kpa .kpa-subcats::-webkit-scrollbar {
    display: none;
}

body.kpa .kpa-subcat {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 5px;
    border: 1px solid var(--kpa-line);
    border-radius: 999px;
    background: #fff;
    color: var(--kpa-navy) !important;
    font: 700 14px/1 Quicksand, sans-serif;
    text-decoration: none !important;
    white-space: nowrap;
}

body.kpa .kpa-subcat img {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50%;
    object-fit: cover;
    background: var(--kpa-soft);
}

body.kpa .kpa-subcat small {
    font-weight: 600;
    color: var(--kpa-muted);
}

body.kpa .kpa-has-subcats .babystreet_woo_categories_shop {
    display: none !important;
}

/* filter bar: [Filter] [Sort], then the price slider as a slim card */
body.kpa .box-sort-filter {
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: 0 !important;
}

body.kpa .box-sort-filter .product-filter {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: 0 !important;
}

/* the theme replaces the sort <select> with a "nice-select" widget */
body.kpa .woocommerce-ordering .nice-select {
    float: none !important;
    width: 100% !important;
    height: 44px !important;
    line-height: 42px !important;
    padding: 0 38px 0 18px !important;
    border: 1px solid var(--kpa-line) !important;
    border-radius: 999px !important;
    background: #fff !important;
    font: 700 14px/42px Quicksand, sans-serif !important;
    color: var(--kpa-navy) !important;
}

body.kpa .woocommerce-ordering .nice-select:after {
    right: 18px !important;
    border-color: var(--kpa-navy) !important;
}

body.kpa .woocommerce-ordering .nice-select .list {
    width: 100%;
    border-radius: var(--kpa-radius-sm) !important;
    box-shadow: var(--kpa-shadow) !important;
    z-index: 50;
}

body.kpa .woocommerce-ordering .nice-select .option {
    font: 600 14px/40px Quicksand, sans-serif !important;
    min-height: 40px;
}

body.kpa .box-sort-filter .product-filter > .woocommerce-notices-wrapper:empty,
body.kpa .box-sort-filter .product-filter > .clear {
    display: none !important;
}

/* no filter widgets configured: the Filter button would open an empty panel */
body.kpa .box-sort-filter .product-filter:has(#babystreet-filter-widgets:empty) > a.babystreet-filter-widgets-triger,
body.kpa .box-sort-filter .product-filter:has(#babystreet-filter-widgets:empty) > .babystreet-filter-widgets-holder {
    display: none !important;
}

body.kpa .box-sort-filter .babystreet-filter-widgets-holder {
    flex: 1 1 100%;
    order: 4;
}

body.kpa #babystreet-price-filter-form {
    order: 3;
    flex: 1 1 100%;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 12px 16px 16px !important;
    border: 1px solid var(--kpa-line);
    border-radius: var(--kpa-radius);
    background: #fff;
}

body.kpa #babystreet-price-filter-form .price_label p {
    margin: 0 0 12px !important;
    font: 600 14px/1.3 Quicksand, sans-serif !important;
    color: var(--kpa-muted);
    white-space: nowrap;
}

body.kpa #babystreet-price-filter-form .price_label span {
    color: var(--kpa-navy) !important;
    font-family: Quicksand, sans-serif !important;
    font-weight: 700;
}

body.kpa #babystreet-price-filter-form .price_slider {
    margin: 0 8px !important;
    width: auto !important;
}

body.kpa .woocommerce-ordering .sort b,
body.kpa .woocommerce-ordering .limit b {
    display: none !important;
}

@media (max-width: 767px) {
    body.kpa .woocommerce-ordering .limit {
        display: none !important;
    }
}

body.kpa .woocommerce-ordering .sort,
body.kpa .woocommerce-ordering .limit {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

body.kpa a.babystreet-filter-widgets-triger {
    order: 1;
    flex: 1 1 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    width: auto !important;
    margin: 0 !important;
    border: 1px solid var(--kpa-line) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--kpa-navy) !important;
    font: 700 14px/1 Quicksand, sans-serif !important;
}

body.kpa .woocommerce-ordering {
    order: 2;
    flex: 1 1 0;
    display: flex;
    gap: 10px;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

body.kpa .woocommerce-ordering select {
    width: 100% !important;
    height: 44px !important;
    padding: 0 36px 0 16px !important;
    border-radius: 999px !important;
    font: 700 14px/1 Quicksand, sans-serif !important;
    color: var(--kpa-navy) !important;
    -webkit-appearance: none;
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23183a5c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat !important;
}

body.kpa .woocommerce-ordering:after,
body.kpa .woocommerce-ordering:before {
    display: none !important;
}

/* ---------- Mobile spacing: WPBakery sections were built with desktop-sized gaps ---------- */

@media (max-width: 767px) {
    /* section padding 80–160px -> 32px; side padding 25px -> 14px (beats the inline "stretch row" style) */
    body.kpa #content .vc_row[class*="vc_custom_"] {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }

    body.kpa #content .vc_row[data-vc-full-width] {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    body.kpa #content .vc_row.vc_row-no-padding[data-vc-full-width] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* columns add another 35px (and 150px in banner rows) on top */
    body.kpa #content .vc_row > .wpb_column > .vc_column-inner {
        padding-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.kpa #content .vc_row.vc_row-no-padding > .wpb_column > .vc_column-inner[class*="vc_custom_"] {
        padding: 48px 20px !important;
    }

    body.kpa #content .vc_row + .vc_row-full-width + .vc_row,
    body.kpa #content .kpa-trust + .vc_row-full-width + .vc_row {
        margin-top: 0 !important;
    }

    /* section headings a little closer to their content */
    body.kpa #content .vc_custom_heading {
        margin-bottom: 14px !important;
    }

    /* footer: 80px empty band above the logo, big gaps between widget blocks */
    body.kpa #footer > .inner:first-child {
        padding-top: 32px !important;
        padding-bottom: 8px !important;
    }

    body.kpa #footer #babystreet_footer_logo {
        margin-top: 0 !important;
    }

    body.kpa #footer > .inner {
        padding-bottom: 24px !important;
    }

    body.kpa #footer .widget {
        margin-bottom: 22px !important;
    }

    body.kpa #footer .widget h3,
    body.kpa #footer .widget .widget-title {
        margin-bottom: 10px !important;
    }

    body.kpa #footer .widget ul li {
        margin: 0 !important;
        padding: 6px 0 !important;
        line-height: 1.4 !important;
    }

    body.kpa #footer .widget ul li a {
        padding: 0 !important;
    }

    body.kpa #footer #powered .inner {
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }
}

/* ---------- Desktop dropdown menu ---------- */

@media (min-width: 1280px) {
    body.kpa #main-menu li ul.sub-menu {
        width: auto !important;
        min-width: 210px;
        padding: 8px !important;
        border-radius: 14px;
        box-shadow: 0 12px 32px rgba(24, 58, 92, .14) !important;
    }

    body.kpa #main-menu li ul.sub-menu li {
        width: auto !important;
    }

    body.kpa #main-menu li ul.sub-menu li a {
        display: block;
        width: auto !important;
        padding: 10px 14px !important;
        border-radius: 10px;
        font: 600 14.5px/1.2 Quicksand, sans-serif !important;
        color: var(--kpa-navy) !important;
        white-space: nowrap;
        transition: background-color .15s ease, color .15s ease;
    }

    body.kpa #main-menu li ul.sub-menu li a:hover {
        background: var(--kpa-mist);
        color: var(--kpa-coral-dark) !important;
    }
}

/* ---------- Home ---------- */

@media (max-width: 767px) {
    /* the full-screen hero: shorter on phones (less of the wide photo is cropped away), text larger */
    body.kpa.home .vc_row.kpa-hero {
        min-height: 58vh !important;
        padding-top: 40px !important;
        padding-bottom: 56px !important;
        background-size: cover !important;
        background-position: 50% 30% !important;
    }

    body.kpa.home .vc_row.kpa-hero h2.vc_custom_heading {
        font-size: 54px !important;
        line-height: 1.05 !important;
    }

    body.kpa.home .vc_row.kpa-hero h4.vc_custom_heading {
        font-size: 24px !important;
    }

    body.kpa.home .vc_row.kpa-hero .vc_btn3-container {
        display: inline-block;
        margin: 6px 4px 0 !important;
    }

    body.kpa.home .vc_row.kpa-hero a.vc_general {
        padding: 14px 22px !important;
        font-size: 16px !important;
    }

}

/* trust strip under the hero (inserted by kpa.js) */
body.kpa .kpa-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 1180px;
    margin: 18px auto 8px !important;
    padding: 0 14px !important;
    list-style: none;
}

@media (max-width: 899px) {
    body.kpa .kpa-trust li {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px !important;
    }
}

@media (min-width: 900px) {
    body.kpa .kpa-trust {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
        margin: 34px auto 10px;
    }
}

body.kpa .kpa-trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    padding-left: 12px !important;
    padding: 12px;
    border-radius: var(--kpa-radius);
    background: var(--kpa-soft);
    border: 1px solid var(--kpa-line);
    font: 700 13px/1.25 Quicksand, sans-serif;
    color: var(--kpa-navy);
}

body.kpa .kpa-trust li:before {
    display: none !important;
}

body.kpa .kpa-trust li small {
    display: block;
    font-weight: 500;
    font-size: 12px;
    color: var(--kpa-muted);
}

body.kpa .kpa-trust .kpa-perk__icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
}

body.kpa .kpa-perk--free .kpa-perk__icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23183a5c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12v8H4v-8M2 7h20v5H2zM12 20V7M12 7H7.5a2.5 2.5 0 010-5C11 2 12 7 12 7zM12 7h4.5a2.5 2.5 0 000-5C13 2 12 7 12 7z'/%3E%3C/svg%3E");
}

/* ---------- WhatsApp + call ---------- */

body.kpa .kpa-wa-float {
    position: fixed;
    right: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 9980;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, .4);
    transition: transform .15s ease, bottom .25s ease;
}

body.kpa .kpa-wa-float:hover {
    transform: scale(1.06);
}

body.kpa .kpa-wa-float svg {
    width: 30px;
    height: 30px;
}

/* keep clear of the reCAPTCHA badge (bottom-right, added by the contact form's spam protection) */
body.kpa:has(.grecaptcha-badge) .kpa-wa-float {
    bottom: calc(88px + env(safe-area-inset-bottom));
}

/* lift it above the product page's bottom buy bar */
@media (max-width: 767px) {
    body.kpa.kpa-buybar-on .kpa-wa-float {
        bottom: calc(86px + env(safe-area-inset-bottom));
    }
}

body.kpa .kpa-wa-ask {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: #128c4a !important;
    font: 700 14px/1.2 Quicksand, sans-serif;
    text-decoration: none !important;
}

body.kpa .kpa-wa-ask svg {
    width: 22px;
    height: 22px;
    color: #25d366;
}

body.kpa .kpa-contact-cta {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
}

@media (min-width: 600px) {
    body.kpa .kpa-contact-cta {
        grid-template-columns: 1fr 1fr;
    }
}

body.kpa .kpa-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 54px;
    border-radius: 999px;
    font: 700 16px/1 Quicksand, sans-serif;
    text-decoration: none !important;
}

body.kpa .kpa-cta svg {
    width: 22px;
    height: 22px;
}

body.kpa .kpa-cta--wa {
    background: #25d366;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, .3);
}

body.kpa .kpa-cta--call {
    border: 1.5px solid var(--kpa-navy);
    color: var(--kpa-navy) !important;
    background: #fff;
}

/* ---------- Newsletter box (home) ---------- */

body.kpa .kpa-subscribe {
    display: flex;
    gap: 8px;
    max-width: 520px;
    margin: 0 auto;
}

/* Contact Form 7 wraps the fields in a <p> (with a <br>): make that the flex row */
body.kpa .kpa-subscribe > p {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0 !important;
}

body.kpa .kpa-subscribe br {
    display: none;
}

body.kpa .kpa-subscribe .wpcf7-form-control-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

body.kpa .wpcf7:has(.kpa-subscribe) .wpcf7-spinner {
    position: absolute;
}

body.kpa .wpcf7:has(.kpa-subscribe) form .wpcf7-response-output {
    max-width: 520px;
    margin: 10px auto 0 !important;
    text-align: center;
}

body.kpa .wpcf7 .kpa-subscribe input[type="email"] {
    width: 100% !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
}

body.kpa .wpcf7 .kpa-subscribe input[type="submit"] {
    flex: 0 0 auto;
    width: auto !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 22px !important;
    background: var(--kpa-coral) !important;
}

body.kpa .wpcf7:has(.kpa-subscribe) {
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

/* ---------- Contact form (Contact Form 7) ---------- */

body.kpa .wpcf7 {
    padding: 20px !important;
    border: 1px solid var(--kpa-line) !important;
    border-radius: var(--kpa-radius) !important;
    background: #fff !important;
    box-shadow: var(--kpa-shadow);
}

body.kpa .wpb_wrapper:has(> .wpcf7),
body.kpa .vc_column-inner:has(.wpcf7) {
    border: 0 !important;
}

body.kpa .wpcf7 label,
body.kpa .wpcf7 p {
    font: 700 13px/1.3 Quicksand, sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: var(--kpa-navy) !important;
}

body.kpa .wpcf7 input:not([type="submit"]),
body.kpa .wpcf7 textarea {
    width: 100% !important;
    margin-top: 6px !important;
    min-height: 50px;
    padding: 0 14px !important;
}

body.kpa .wpcf7 textarea {
    min-height: 130px;
    padding: 12px 14px !important;
}

body.kpa .wpcf7 form,
body.kpa .wpcf7 form > div,
body.kpa .wpcf7 form > fieldset {
    border: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.kpa input[type="submit"] {
    border: 0 !important;
}

body.kpa .wpcf7 input[type="submit"] {
    width: 100% !important;
    height: 54px !important;
    background: var(--kpa-coral) !important;
    font-size: 16px !important;
}

body.kpa .wpcf7 .wpcf7-not-valid-tip {
    font: 600 12.5px/1.3 Quicksand, sans-serif;
    color: #d6454e;
}

body.kpa .wpcf7 form .wpcf7-response-output {
    margin: 14px 0 0 !important;
    padding: 12px 14px !important;
    border-radius: var(--kpa-radius-sm) !important;
    font: 600 14px/1.4 Quicksand, sans-serif;
}

/* ---------- Free delivery progress ---------- */

body.kpa .kpa-freebar {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: var(--kpa-radius);
    background: var(--kpa-mist);
    color: var(--kpa-navy);
}

body.kpa .kpa-freebar p {
    margin: 0 0 10px !important;
    font: 500 14px/1.4 Quicksand, sans-serif;
}

body.kpa .kpa-freebar strong {
    font-weight: 700;
}

body.kpa .kpa-freebar__track {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}

body.kpa .kpa-freebar__track span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--kpa-sky), var(--kpa-sky-dark));
    transition: width .4s ease;
}

body.kpa .kpa-freebar.is-done .kpa-freebar__track span {
    background: linear-gradient(90deg, #7fd8a6, #3fb97a);
}

body.kpa tr.kpa-freebar-row td {
    padding: 0 0 6px !important;
    border: 0 !important;
}

/* ---------- Cart ---------- */

@media (max-width: 767px) {
    body.kpa.woocommerce-cart #content .inner,
    body.kpa.woocommerce-checkout #content .inner {
        padding-left: 14px !important;
        padding-right: 14px !important;
        width: auto !important;
    }

    /* each cart line as a compact card: image left, details right */
    body.kpa.woocommerce-cart table.shop_table.cart,
    body.kpa.woocommerce-cart table.shop_table.cart tbody {
        display: block !important;
        border: 0 !important;
    }

    body.kpa.woocommerce-cart table.shop_table.cart thead {
        display: none !important;
    }

    body.kpa.woocommerce-cart table.shop_table.cart tr.cart_item {
        position: relative;
        display: grid !important;
        grid-template-columns: 92px 1fr;
        grid-template-areas:
            "thumb name"
            "thumb price"
            "thumb qty"
            "thumb subtotal";
        column-gap: 14px;
        row-gap: 2px;
        margin: 0 0 14px !important;
        padding: 12px !important;
        border: 1px solid var(--kpa-line) !important;
        border-radius: var(--kpa-radius);
        background: #fff;
    }

    body.kpa.woocommerce-cart tr.cart_item td {
        display: block !important;
        width: auto !important;
        padding: 0 !important;
        border: 0 !important;
        text-align: left !important;
        background: none !important;
    }

    body.kpa.woocommerce-cart tr.cart_item td:before {
        display: none !important; /* WooCommerce's "Product:" / "Price:" row labels */
    }

    body.kpa.woocommerce-cart tr.cart_item td,
    body.kpa.woocommerce-cart tr.cart_item td * {
        text-align: left !important;
    }

    body.kpa.woocommerce-cart tr.cart_item td .quantity {
        float: none !important;
        margin: 0 !important;
        justify-content: flex-start !important;
    }

    body.kpa.woocommerce-cart tr.cart_item td.product-remove a.remove:before,
    body.kpa.woocommerce-cart tr.cart_item td.product-remove a.remove:after {
        display: none !important; /* theme draws a second icon on top of the × */
    }

    body.kpa.woocommerce-cart tr.cart_item td.product-thumbnail {
        grid-area: thumb;
        display: block !important;
    }

    body.kpa.woocommerce-cart tr.cart_item td.product-thumbnail img {
        width: 92px !important;
        height: 92px !important;
        max-width: none !important;
        object-fit: cover;
        border-radius: var(--kpa-radius-sm);
        background: var(--kpa-soft);
    }

    body.kpa.woocommerce-cart tr.cart_item td.product-name {
        grid-area: name;
        padding-right: 30px !important;
        font: 700 15px/1.3 Quicksand, sans-serif;
    }

    body.kpa.woocommerce-cart tr.cart_item td.product-name a {
        color: var(--kpa-navy) !important;
    }

    body.kpa.woocommerce-cart tr.cart_item td.product-name dl.variation {
        display: flex;
        flex-wrap: wrap;
        gap: 2px 10px;
        margin: 4px 0 0 !important;
        border: 0 !important;
        font: 500 12.5px/1.3 Quicksand, sans-serif;
        color: var(--kpa-muted);
    }

    body.kpa.woocommerce-cart tr.cart_item td.product-name dl.variation dt,
    body.kpa.woocommerce-cart tr.cart_item td.product-name dl.variation dd {
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    body.kpa.woocommerce-cart tr.cart_item td.product-name dl.variation dd p {
        margin: 0 !important;
    }

    body.kpa.woocommerce-cart tr.cart_item td.product-price {
        grid-area: price;
        font-size: 13px;
        color: var(--kpa-muted);
    }

    body.kpa.woocommerce-cart tr.cart_item td.product-quantity {
        grid-area: qty;
        margin-top: 4px !important;
    }

    body.kpa.woocommerce-cart tr.cart_item td.product-quantity input.qty {
        width: 70px !important;
        height: 38px !important;
        border-radius: 999px !important;
        text-align: center;
        font-weight: 700;
    }

    body.kpa.woocommerce-cart tr.cart_item td.product-subtotal {
        grid-area: subtotal;
        margin-top: 4px !important;
        font: 700 16px/1.2 Quicksand, sans-serif;
        color: var(--kpa-navy);
    }

    body.kpa.woocommerce-cart tr.cart_item td.product-remove {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    body.kpa.woocommerce-cart tr.cart_item td.product-remove a.remove {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 28px !important;
        height: 28px !important;
        border-radius: 50% !important;
        background: var(--kpa-soft) !important;
        color: var(--kpa-muted) !important;
        font-size: 18px !important;
        line-height: 1 !important;
    }

    body.kpa.woocommerce-cart table.shop_table.cart tr:not(.cart_item) {
        display: block !important;
    }

    body.kpa.woocommerce-cart table.shop_table.cart td.actions {
        display: block !important;
        padding: 0 !important;
        border: 0 !important;
    }
}

/* coupon: folded behind a link; "Update cart" happens automatically */
body.kpa.woocommerce-cart td.actions .coupon {
    display: flex !important;
    gap: 8px;
    float: none !important;
    width: 100% !important;
    margin: 0 0 16px !important;
}

body.kpa.woocommerce-cart td.actions .coupon.kpa-folded-coupon {
    display: none !important;
}

body.kpa.woocommerce-cart td.actions .coupon input#coupon_code {
    flex: 1 1 auto;
    width: auto !important;
    height: 46px !important;
    margin: 0 !important;
}

body.kpa.woocommerce-cart td.actions .coupon .button {
    flex: 0 0 auto;
    width: auto !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    background: var(--kpa-navy) !important;
    box-shadow: none !important;
}

body.kpa .kpa-coupon-toggle {
    display: inline-block;
    margin: 4px 0 16px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--kpa-sky-dark);
    font: 700 14px/1.2 Quicksand, sans-serif;
    text-decoration: underline;
    cursor: pointer;
}

body.kpa.woocommerce-cart.kpa-autoupdate button[name="update_cart"] {
    display: none !important;
}

/* totals card */
body.kpa.woocommerce-cart .cart-collaterals .cart_totals {
    float: none !important;
    width: 100% !important;
    padding: 18px !important;
    border: 1px solid var(--kpa-line) !important;
    border-radius: var(--kpa-radius);
    background: #fff;
}

body.kpa.woocommerce-cart .cart_totals h2 {
    margin: 0 0 8px !important;
    font: 700 18px/1.2 Quicksand, sans-serif !important;
    text-transform: none !important;
    color: var(--kpa-navy) !important;
}

body.kpa.woocommerce-cart .cart_totals table,
body.kpa.woocommerce-cart .cart_totals table tr,
body.kpa.woocommerce-cart .cart_totals table th,
body.kpa.woocommerce-cart .cart_totals table td {
    border: 0 !important;
    background: none !important;
}

body.kpa.woocommerce-cart .cart_totals table tr {
    display: flex !important;
    justify-content: space-between;
    padding: 10px 0 !important;
    border-bottom: 1px solid var(--kpa-line) !important;
}

body.kpa.woocommerce-cart .cart_totals table tr:last-child {
    border-bottom: 0 !important;
}

body.kpa.woocommerce-cart .cart_totals table th,
body.kpa.woocommerce-cart .cart_totals table td {
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    font: 600 15px/1.3 Quicksand, sans-serif !important;
}

body.kpa.woocommerce-cart .cart_totals table td:before {
    display: none !important;
}

body.kpa.woocommerce-cart .cart_totals tr.order-total th,
body.kpa.woocommerce-cart .cart_totals tr.order-total td {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--kpa-navy) !important;
}

body.kpa.woocommerce-cart .wc-proceed-to-checkout {
    padding: 14px 0 0 !important;
}

body.kpa.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 54px;
    margin: 0 !important;
    font-size: 17px !important;
    background: var(--kpa-coral) !important;
}

/* ---------- Checkout ---------- */

body.kpa .kpa-hidden-field {
    display: none !important;
}

body.kpa.woocommerce-checkout .woocommerce-form-login-toggle,
body.kpa.woocommerce-checkout .woocommerce-form-coupon-toggle {
    margin: 0 0 10px !important;
}

body.kpa.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info,
body.kpa.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    margin: 0 !important;
    padding: 12px 14px 12px 42px !important;
    border: 1px solid var(--kpa-line) !important;
    border-radius: var(--kpa-radius-sm) !important;
    background: #fff !important;
    font: 500 13.5px/1.4 Quicksand, sans-serif !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: var(--kpa-muted) !important;
}

body.kpa.woocommerce-checkout .woocommerce-info a {
    color: var(--kpa-sky-dark) !important;
    font-weight: 700;
    text-transform: none !important;
}

body.kpa.woocommerce-checkout #customer_details,
body.kpa.woocommerce-checkout #order_review {
    padding: 18px !important;
    border: 1px solid var(--kpa-line) !important;
    border-radius: var(--kpa-radius);
    background: #fff !important;
}

body.kpa.woocommerce-checkout #customer_details {
    margin-bottom: 18px !important;
}

body.kpa.woocommerce-checkout #customer_details .col-1,
body.kpa.woocommerce-checkout #customer_details .col-2 {
    float: none !important;
    width: 100% !important;
}

body.kpa.woocommerce-checkout h3,
body.kpa.woocommerce-checkout #order_review_heading {
    font: 700 19px/1.25 Quicksand, sans-serif !important;
    color: var(--kpa-navy) !important;
    text-transform: none !important;
    margin: 0 0 14px !important;
}

body.kpa.woocommerce-checkout .form-row {
    margin: 0 0 14px !important;
    padding: 0 !important;
}

body.kpa.woocommerce-checkout .form-row label {
    margin: 0 0 6px !important;
    font: 700 13px/1.2 Quicksand, sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: var(--kpa-navy) !important;
}

body.kpa.woocommerce-checkout .form-row input.input-text,
body.kpa.woocommerce-checkout .form-row textarea,
body.kpa.woocommerce-checkout .form-row select,
body.kpa.woocommerce-checkout .select2-container .select2-selection--single {
    min-height: 50px !important;
    padding: 0 14px !important;
    line-height: 48px;
    background: #fff !important;
}

body.kpa.woocommerce-checkout .form-row textarea {
    min-height: 90px !important;
    padding: 12px 14px !important;
    line-height: 1.5;
}

body.kpa.woocommerce-checkout .select2-container .select2-selection--single {
    border: 1px solid var(--kpa-line) !important;
    border-radius: var(--kpa-radius-sm) !important;
}

body.kpa.woocommerce-checkout .select2-container .select2-selection__rendered {
    line-height: 48px !important;
    padding: 0 !important;
    color: var(--kpa-ink) !important;
}

body.kpa.woocommerce-checkout .select2-container .select2-selection__arrow {
    height: 48px !important;
}

/* order summary */
body.kpa.woocommerce-checkout table.woocommerce-checkout-review-order-table {
    border: 0 !important;
    margin: 0 0 14px !important;
}

body.kpa.woocommerce-checkout table.woocommerce-checkout-review-order-table th,
body.kpa.woocommerce-checkout table.woocommerce-checkout-review-order-table td {
    padding: 10px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--kpa-line) !important;
    background: none !important;
    font: 600 14px/1.35 Quicksand, sans-serif !important;
    text-transform: none !important;
    vertical-align: top;
}

body.kpa.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-total,
body.kpa.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot td {
    text-align: right !important;
    white-space: nowrap;
}

body.kpa.woocommerce-checkout table.woocommerce-checkout-review-order-table dl.variation {
    margin: 4px 0 0 !important;
    font: 500 12.5px/1.35 Quicksand, sans-serif;
    color: var(--kpa-muted);
}

body.kpa.woocommerce-checkout table.woocommerce-checkout-review-order-table dl.variation dt,
body.kpa.woocommerce-checkout table.woocommerce-checkout-review-order-table dl.variation dd {
    display: inline;
    float: none !important;
    margin: 0 4px 0 0 !important;
    padding: 0 !important;
}

body.kpa.woocommerce-checkout table.woocommerce-checkout-review-order-table dl.variation dd p {
    display: inline;
    margin: 0 !important;
}

body.kpa.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total th,
body.kpa.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total td {
    border-bottom: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--kpa-navy) !important;
}

/* payment: the Cash on Delivery choice as a highlighted card */
body.kpa.woocommerce-checkout #payment {
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
}

body.kpa.woocommerce-checkout #payment ul.payment_methods {
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: 0 !important;
}

body.kpa.woocommerce-checkout #payment ul.payment_methods li {
    margin: 0 0 8px !important;
    padding: 14px 16px !important;
    border: 1.5px solid var(--kpa-sky) !important;
    border-radius: var(--kpa-radius-sm);
    background: var(--kpa-mist) !important;
    list-style: none !important;
}

body.kpa.woocommerce-checkout #payment ul.payment_methods li:before {
    display: none !important;
}

body.kpa.woocommerce-checkout #payment ul.payment_methods li label {
    display: inline !important;
    font: 700 15px/1.3 Quicksand, sans-serif !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: var(--kpa-navy) !important;
}

body.kpa.woocommerce-checkout #payment div.payment_box {
    margin: 8px 0 0 !important;
    padding: 0 !important;
    background: none !important;
    font-size: 13.5px;
    color: var(--kpa-muted);
}

body.kpa.woocommerce-checkout #payment div.payment_box:before {
    display: none !important;
}

body.kpa.woocommerce-checkout #payment .place-order {
    padding: 0 !important;
    margin: 0 !important;
}

body.kpa.woocommerce-checkout .woocommerce-privacy-policy-text {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--kpa-muted);
}

body.kpa.woocommerce-checkout #place_order {
    float: none !important;
    display: block;
    width: 100% !important;
    height: 56px !important;
    margin: 12px 0 0 !important;
    font-size: 17px !important;
    background: var(--kpa-coral) !important;
}

@media (min-width: 992px) {
    /* two columns on desktop: details left, summary right (sticky) */
    body.kpa.woocommerce-checkout form.checkout {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        grid-template-rows: auto auto 1fr;
        column-gap: 28px;
        align-items: start;
    }

    body.kpa.woocommerce-checkout form.checkout > * {
        grid-column: 1;
    }

    body.kpa.woocommerce-checkout form.checkout #order_review_heading {
        grid-column: 2;
        grid-row: 1;
    }

    body.kpa.woocommerce-checkout form.checkout #order_review {
        grid-column: 2;
        grid-row: 2 / span 2;
        position: sticky;
        top: 120px;
        float: none !important;
        width: auto !important;
    }

    body.kpa.woocommerce-checkout form.checkout #customer_details {
        grid-row: 1 / span 3;
        float: none !important;
        width: auto !important;
    }
}

/* ---------- Order received ---------- */

body.kpa .woocommerce-order .woocommerce-thankyou-order-received,
body.kpa .woocommerce-notice--success.woocommerce-thankyou-order-received {
    margin: 0 0 18px !important;
    padding: 16px 18px !important;
    border-radius: var(--kpa-radius);
    background: #eaf8f0 !important;
    color: #1d7a4b !important;
    font: 700 17px/1.4 Quicksand, sans-serif !important;
}

body.kpa ul.woocommerce-order-overview {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px !important;
    padding: 0 !important;
    list-style: none !important;
}

body.kpa ul.woocommerce-order-overview li {
    margin: 0 !important;
    padding: 12px 14px !important;
    border: 1px solid var(--kpa-line) !important;
    border-radius: var(--kpa-radius-sm);
    background: #fff;
    font: 600 12px/1.4 Quicksand, sans-serif !important;
    text-transform: none !important;
    color: var(--kpa-muted) !important;
}

body.kpa ul.woocommerce-order-overview li:before {
    display: none !important;
}

body.kpa ul.woocommerce-order-overview li strong {
    display: block;
    margin-top: 2px;
    font-size: 15px !important;
    color: var(--kpa-navy) !important;
    word-break: break-word;
}

body.kpa .kpa-next {
    margin: 0 0 22px;
    padding: 18px;
    border-radius: var(--kpa-radius);
    background: var(--kpa-mist);
}

body.kpa .kpa-next h2 {
    margin: 0 0 12px !important;
    font: 700 19px/1.25 Quicksand, sans-serif !important;
    color: var(--kpa-navy) !important;
}

body.kpa .kpa-next ol {
    margin: 0 0 16px !important;
    padding: 0 !important;
    list-style: none !important;
    counter-reset: kpa-step;
}

body.kpa .kpa-next li {
    position: relative;
    margin: 0 0 12px !important;
    padding-left: 40px !important;
    counter-increment: kpa-step;
}

body.kpa .kpa-next li:before {
    content: counter(kpa-step) !important;
    position: absolute;
    left: 0;
    top: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--kpa-navy);
    color: #fff;
    font: 700 13px/1 Quicksand, sans-serif;
}

body.kpa .kpa-next li strong {
    display: block;
    font: 700 15px/1.3 Quicksand, sans-serif;
    color: var(--kpa-navy);
}

body.kpa .kpa-next li span {
    font-size: 14px;
    color: var(--kpa-muted);
}

body.kpa .woocommerce-order-details,
body.kpa .woocommerce-customer-details {
    margin-bottom: 18px !important;
    padding: 18px !important;
    border: 1px solid var(--kpa-line);
    border-radius: var(--kpa-radius);
    background: #fff;
}

body.kpa .woocommerce-order-details h2,
body.kpa .woocommerce-customer-details h2 {
    font: 700 18px/1.25 Quicksand, sans-serif !important;
    color: var(--kpa-navy) !important;
    text-transform: none !important;
}

body.kpa .woocommerce-customer-details address {
    border: 0 !important;
    padding: 0 !important;
    font-style: normal;
    line-height: 1.6;
}

/* ---------- My account (login / register / dashboard) ---------- */

/* login and register sit side by side in a slider: style the forms flat, the frame around them as the card */
body.kpa.woocommerce-account .woocommerce form.login,
body.kpa.woocommerce-account .woocommerce form.register {
    margin: 0 !important;
    padding: 4px 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

body.kpa.woocommerce-account #customer_login .u-column1,
body.kpa.woocommerce-account #customer_login .u-column2 {
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

body.kpa.woocommerce-account #customer_login h2 {
    margin: 0 0 14px !important;
    font: 700 22px/1.2 Quicksand, sans-serif !important;
    color: var(--kpa-navy) !important;
}

body.kpa.woocommerce-account #customer_login {
    padding: 18px !important;
    border: 1px solid var(--kpa-line) !important;
    border-radius: var(--kpa-radius) !important;
    background: #fff;
    overflow: hidden;
}

body.kpa .woocommerce form .form-row label,
body.kpa .woocommerce-form-login label,
body.kpa .woocommerce-form-register label {
    font: 700 13px/1.3 Quicksand, sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: var(--kpa-navy) !important;
}

body.kpa .woocommerce form .form-row input.input-text {
    min-height: 50px;
    padding: 0 14px !important;
}

body.kpa .woocommerce-form-login__submit,
body.kpa .woocommerce-form-register__submit {
    width: 100% !important;
    height: 52px !important;
    margin: 10px 0 0 !important;
    float: none !important;
    background: var(--kpa-coral) !important;
}

body.kpa .woocommerce-form-login__rememberme {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 4px 0 0 !important;
}

/* the password field's "show" toggle renders as an empty pill in this theme */
body.kpa .woocommerce form .password-input {
    position: relative;
    display: block;
}

body.kpa .woocommerce form .show-password-input {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    transform: translateY(-50%);
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: center / 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a8c' stroke-width='1.8'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") !important;
    box-shadow: none !important;
    font-size: 0 !important;
}

body.kpa .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px !important;
    padding: 0 !important;
    list-style: none !important;
}

body.kpa .woocommerce-MyAccount-navigation ul li {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

body.kpa .woocommerce-MyAccount-navigation ul li:before {
    display: none !important;
}

body.kpa .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 10px 16px !important;
    border: 1px solid var(--kpa-line);
    border-radius: 999px;
    background: #fff;
    color: var(--kpa-navy) !important;
    font: 700 14px/1 Quicksand, sans-serif;
}

body.kpa .woocommerce-MyAccount-navigation ul li.is-active a {
    border-color: var(--kpa-navy);
    background: var(--kpa-navy);
    color: #fff !important;
}

body.kpa .kpa-empty-cta {
    margin: 18px 0 0 !important;
    text-align: center;
}

body.kpa .wishlist-empty {
    text-align: center !important;
    color: var(--kpa-muted);
}

/* ---------- Blog list ---------- */

body.kpa.blog .blog-post,
body.kpa.archive:not(.woocommerce-page) .blog-post {
    margin: 0 0 22px !important;
    padding: 0 0 18px !important;
    border: 1px solid var(--kpa-line) !important;
    border-radius: var(--kpa-radius);
    overflow: hidden;
    background: #fff;
}

body.kpa .blog-post .post-unit-holder img {
    width: 100% !important;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

body.kpa .blog-post .babystreet_post_data_holder {
    padding: 14px 18px 0 !important;
}

body.kpa .blog-post h2.heading-title {
    font: 700 19px/1.3 Quicksand, sans-serif !important;
    margin: 0 0 8px !important;
}

body.kpa .blog-post h2.heading-title a {
    color: var(--kpa-navy) !important;
}

body.kpa .blog-post .blog-post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--kpa-muted);
}

body.kpa .blog-post .blog-post-excerpt p {
    margin: 0 !important;
}

/* ---------- 404 ---------- */

body.kpa .babystreet-404-content {
    text-align: center;
}

body.kpa .babystreet-404-lead {
    max-width: 520px;
    margin: 0 auto 18px !important;
    font-size: 16px;
    color: var(--kpa-muted);
}

body.kpa .babystreet-404-search {
    max-width: 480px;
    margin: 0 auto 16px;
}

body.kpa .babystreet-404-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 28px !important;
}

body.kpa .babystreet-404-actions .button.babystreet-404-home {
    background: var(--kpa-navy) !important;
    box-shadow: none;
}

body.kpa .babystreet-404-new {
    font: 700 20px/1.3 Quicksand, sans-serif !important;
    color: var(--kpa-navy) !important;
    margin: 10px 0 16px !important;
}

@media (max-width: 767px) {
    /* the theme's big 404 illustration: smaller on phones so the buttons stay near the top */
    body.kpa .babystreet-404 #main {
        background-size: 60% auto !important;
    }
}

/* ---------- Breadcrumbs and page titles ---------- */

@media (max-width: 767px) {
    body.kpa .breadcrumb,
    body.kpa .woocommerce-breadcrumb {
        font-size: 12px !important;
        letter-spacing: .02em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
