/* =============================================================================
   PDP Sticky Cart Bar — pdp-sticky-cart-bar.css
   ============================================================================= */

.has-sticky-cart-bar .elementor-location-footer {
    padding-bottom: var(--pdp-sticky-bar-height, 80px);
}

/* ── Container ────────────────────────────────────────────────────────────── */

.pdp-sticky-container {
    max-width: var(--e-container-max-width, 1200px);
    margin-left: auto;
    margin-right: auto;
    /*padding-left: 24px;*/
    /*padding-right: 24px;*/
    box-sizing: border-box;
}


/* ── Sticky wrapper ───────────────────────────────────────────────────────── */

#pdp-sticky-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    box-shadow: 0 -4px 14px rgba(78, 98, 106, 0.25);
}


/* ── Toggle-wrap + drawer: rechts uitgelijnd, bewegen samen ──────────────── */

#pdp-staffel-toggle-wrap {
    position: fixed;
    right: max(24px, calc((100vw - var(--e-container-max-width, 1200px)) / 2 + 24px));
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    pointer-events: none;
    min-width: 220px;
}

#pdp-staffel-toggle-wrap > * {
    pointer-events: auto;
}


/* ── Staffel drawer ───────────────────────────────────────────────────────── */

#pdp-staffel-drawer {
    background: #fff;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
    border: 0;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
}

#pdp-staffel-drawer.open {
    max-height: 400px;
    border: 1px solid #ccc;
    padding:12px;
}

#pdp-staffel-drawer .pdp-staffel-inner {
    padding: 14px 14px 10px;
}

#pdp-staffel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #0F2027;
}

#pdp-staffel-close {
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #888;
    line-height: 1;
    padding: 2px 4px;
}

#pdp-staffel-close:hover {
    color: #0F2027;
    background: none;
}

/* Staffeltabel */
.staffelprijzen table {
    width: 100%;
    text-align:center;
}

.staffelprijzen thead td {
    font-weight: 700;
    padding: 10px 0;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.staffelprijzen tbody tr td {
    padding: 5px 0;
    color: #555;
}

.staffelprijzen tbody tr.selected td {
    color: #0F2027;
    font-weight: 700;
}

.staffelprijzen tbody tr.selected {
    background: #ffb600;
}


/* ── Toggle knop ──────────────────────────────────────────────────────────── */

#pdp-staffel-toggle {
    background: #fff !important;
    border: 1px solid #ccc !important;
    border-top: none !important;
    border-radius: 6px 6px 0 0 !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    color: #4E626A !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    white-space: nowrap !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    line-height: 1.4 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-transform: none !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
}
#pdp-sticky-cart-bar.drawer-open #pdp-staffel-toggle {
    border-radius: 0 !important;
}

#pdp-staffel-toggle:hover {
    color: #0F2027 !important;
    box-shadow: none !important;
    background: #f9f9f9 !important;
}

#pdp-staffel-toggle-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
}

#pdp-sticky-cart-bar.drawer-open #pdp-staffel-toggle-arrow {
    transform: rotate(180deg);
}


/* ── Witte sticky balk ────────────────────────────────────────────────────── */

#pdp-sticky-cart-inner {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 1rem 20px 0.5rem 20px;
}

#pdp-sticky-bar-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}


#pdp-sticky-price-block {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    flex-shrink: 1;
    min-width: 450px;
}

#pdp-sticky-total-price {
    font-size: 40px;
    font-weight: 700;
    color: #0F2027;
    line-height: 1.1;
    white-space: nowrap;
    flex-shrink: 0;
}

#pdp-sticky-price-detail {
    font-size: 16px;
    color: #666;
    white-space: nowrap;
}


/* ── Cart acties: qty + add-to-cart ───────────────────────────────────────── */

#pdp-sticky-cart-actions {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex-grow: 1;
    height: 42px;
    border: 0 !important;
    height: 0 !important;
}
.pdp-sticky-container #pdp-sticky-cart-actions {
    height: 48px !important;
}
#pdp-sticky-qty-placeholder {
    display: flex;
    align-items: stretch;
}

#pdp-sticky-btn-placeholder {
    display: flex;
    align-items: stretch;
    flex: 1;
}


/* ── Qty control: − input + ───────────────────────────────────────────────── */

.sticky-qty-control {
    display: flex;
    align-items: stretch;
    height: 42px;
}

.sticky-qty-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: unset !important;
    background: #ffffff !important;
    color: #0F2027 !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    letter-spacing: 0 !important;
    transition: background 0.15s !important;
    box-shadow: 0px 4px 4px 0px #00000040;
}

.sticky-qty-btn:hover {
    background: #ccc !important;
    box-shadow: none !important;
}

.sticky-qty-minus {
    border-radius: 6px 0 0 6px !important;
}

.sticky-qty-plus {
    border-radius: 0 6px 6px 0 !important;
}

.sticky-qty-input {
    width: 42px !important;
    height: 42px !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    -moz-appearance: textfield !important;
    box-sizing: border-box !important;
    background: #fff !important;
    color: #0F2027 !important;
    box-shadow: 0 4px 4px 0 #00000040;
}

.sticky-qty-input::-webkit-outer-spin-button,
.sticky-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
}


/* ── Add-to-cart knop ─────────────────────────────────────────────────────── */

#pdp-sticky-btn-placeholder .single_add_to_cart_button {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 24px !important;
    background: #F0A500 !important;
    color: #0F2027 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    transition: box-shadow 0.15s !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 14px  #00000040;
}

#pdp-sticky-btn-placeholder .single_add_to_cart_button:hover {
    box-shadow: 0 4px 12px rgba(240, 165, 0, 0.45) !important;
    background: #F0A500 !important;
}


/* ── Upsell balk ──────────────────────────────────────────────────────────── */

#pdp-sticky-upsell-bar {
    background: #fff;
    display: flex;
    justify-content: flex-end;
    padding-right: max(24px, calc((100vw - var(--e-container-max-width, 1200px)) / 2 + 24px));
}

#pdp-sticky-upsell-bar .pdp-sticky-container {
    max-width: none;
    margin: 0;
    width: fit-content;
    min-width: 220px;
    text-align: center;
}

#pdp-sticky-upsell-text {
    font-size: 13px;
    color: #444;
    white-space: nowrap;
}

#pdp-sticky-upsell-text strong {
    color: #0F2027;
    font-weight: 700;
}

#pdp-sticky-upsell-bar .pdp-sticky-container {
    display: flex;
    align-items: center;
    gap:2rem;
}

#pdp-sticky-upsell-bar .pdp-sticky-wishlist {
    flex-shrink: 0;
}

#pdp-sticky-upsell-bar .pdp-sticky-wishlist .yith-wcwl-add-button span:not(.yith-wcwl-icon),
#pdp-sticky-upsell-bar .pdp-sticky-wishlist .yith-wcwl-add-button span[class=""] {
    color: #444;
    font-size: 13px;
}

.add-wish {
    position: absolute;
    visibility: hidden;
    pointer-events: none;
}
.yith-wcwl-add-to-wishlist .yith-wcwl-add-button {
    margin-bottom:12px;
}
.yith-wcwl-wishlistaddedbrowse .feedback {
    color: #444;
    margin-top: 16px;
    font-size: 13px;
}

/* ── Mobiel ───────────────────────────────────────────────────────────────── */

@media (max-width: 840px) {
    #pdp-sticky-bar-layout {
        flex-wrap: wrap;
        gap: 4px;
    }

    #pdp-sticky-price-block {
        flex: 1 1 100%;
        align-items: center;
    }

    #pdp-sticky-total-price {
        font-size: 32px;
    }
    #pdp-sticky-price-detail {
        font-size: 14px;
    }
    #pdp-sticky-cart-actions {
        flex: 1 1 100%;
        height: 48px;
    }

    #pdp-staffel-toggle-wrap {
        right: 16px;
    }

    #pdp-sticky-upsell-bar {
        padding-right: 16px;
    }
}

/* Verberg de originele cart form op productpagina's —
   de sticky balk spiegelt alles via JS */
.has-sticky-cart-bar .single-product .woocommerce-variation-add-to-cart,
.has-sticky-cart-bar form.cart .quantity,
.has-sticky-cart-bar form.cart .single_add_to_cart_button,
.has-sticky-cart-bar form.cart .staffelprijzen,
.has-sticky-cart-bar .lamino_price {
    display: none !important;
}