:root {
    --header-height: 90px;
    --footer-margin: 0px;
    --drawer-width: 500px;
    --drawer-radius: 12px;
    --animation-timing: 0.4s;
    --animation-curve: cubic-bezier(0.7, 0, 0.2, 1);
}

div.elementor[data-elementor-type="wp-page"] {
    position: relative;
    z-index: 1;
    background-color: white;
    transition: transform var(--animation-timing) var(--animation-curve), border-radius var(--animation-timing) var(--animation-curve);
    border-radius: 0;
}

header.elementor-location-header,
footer.elementor-location-footer {
    transition: transform var(--animation-timing) var(--animation-curve);
    position: relative;
    z-index: 2;
}

body.drawer-open {
    overflow: hidden;
}
body.drawer-open div.elementor[data-elementor-type="wp-page"] {
    transform: translateX(calc(-1 * var(--drawer-width)));
    border-top-right-radius: var(--drawer-radius);
    border-bottom-right-radius: var(--drawer-radius);
    overflow: hidden;
}

.hoopla-drawer-overlay {
    position: fixed;
    top: var(--header-height);
    bottom: var(--footer-margin);
    left: 0;
    right: 500px;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    border-top-right-radius: 12px;
    clip-path: inset(0 100% 0 0);
    transition: clip-path var(--animation-timing) var(--animation-curve);
}

body.drawer-open .hoopla-drawer-overlay {
    clip-path: inset(0 0 0 0);
}

.hoopla-drawer {
    position: fixed;
    top: var(--header-height);
    height: calc(100dvh - var(--header-height) - var(--footer-margin));
    right: 0;
    width: var(--drawer-width);
    max-width: 90vw;
    background-color: #fdf9f7;
    padding:0px 70px 18px 40px;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform var(--animation-timing) var(--animation-curve);
    display: flex;
    flex-direction: column;
    border-radius: var(--drawer-radius) 0 0 var(--drawer-radius);
}

.hoopla-drawer.is-open {
    transform: translateX(0);
}
.hoopla-drawer .price-container{
display: flex;
justify-content: space-between;
align-items: center;
width:100%;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0px 40px 0px;
    flex-shrink: 0;
}
.drawer-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}
button.drawer-close-button{
    border: none;
    border-radius: 1000px;
    font-size: 18px;
    line-height: 18px;
    color: black;
    background: #a72c3421;
    cursor: pointer;
    width: 28px;
    height: 28px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}


.drawer-close-button:hover {
    background: #a72c3421;
    color: black;
}

.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
}
.drawer-message {
    text-align: center;
    margin-top: 40px;
    color: #666;
}
.drawer-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- AANGEPAST VOOR VERWIJDERKNOP --- */
.drawer-item {
    position: relative; /* Nodig voor de absolute positionering van de knop */
    display: flex;
    gap: 15px;
    border-radius: 12px;
    padding: 10px 40px 10px 10px; /* Extra padding rechts voor de knop */
    margin-bottom: 15px;
	    border: solid 1px #00000029;
}

.item-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}
.item-details { flex-grow: 1; }
.item-name { font-weight: bold; margin: 0 0 5px; }
.item-meta, .item-price { margin: 0; font-size: 14px; color: black; }

/* --- NIEUW: STYLING VOOR VERWIJDERKNOP --- */
.item-remove-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #b0b0b0;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.item-remove-button:hover {
    color: #333;
    background: none!important;
}

.item-remove-button:disabled {
    cursor: not-allowed;
    color: #ccc;
}

.drawer-footer {
    flex-shrink: 0;
}
.subtotal-line {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 34px;
}
.checkout-button {
    display: block;
    width: fit-content;
    background-color: #A72C35;
    font-weight: 400;
    padding: 18px 62px;
    border-radius: 1000px;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    transition: ease 0.3s;
}
.checkout-button:hover {
    background-color: #c93540;
    color: white;
}
 img.arrow-icon{
    width: 16px;
}

.hoopla-drawer .item-quantity-selector {
    display: flex;
    align-items: center;
    background: white;
    border: solid 1px #0000004d;
    border-radius:50px;
    overflow: hidden;

}
.hoopla-drawer .quantity-display {
    padding: 0px 6px;
    font-size: 15px;
}
.hoopla-drawer .item-quantity-selector .quantity-btn {
    background: none;
    border: none;
    font-size: 12px;
    padding: 6px 12px;
    cursor: pointer;
    color: #333;
    transition: background-color 0.2s;
}
.hoopla-drawer .item-quantity-selector .quantity-btn:hover {
    background-color: #f0f0f0;

}
.hoopla-drawer span.woocommerce-Price-amount.amount {
    font-size: 16px;
    color: black;
}
.hoopla-cart-icon-button .item-counter {
    position: absolute;
    top: -8px;
    right: -11px;
    background-color: #9A0000;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 11px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* --- Styling voor icoon-wissel --- */
.hoopla-cart-icon-button .cart-image,
.hoopla-cart-icon-button .close-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}
.hoopla-cart-icon-button{
    border: none;
}

.hoopla-cart-icon-button .close-icon {
    opacity: 0; /* Standaard verborgen */
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 24px;
    color: black;
    background: #a72c3421;
    cursor: pointer;
    width: 38px;
    height: 38px;
    padding: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
}


@media(max-width: 767px){
    .hoopla-cart-icon-button .item-counter{
        top: -2px;
        right: -6px;
    }

    .hoopla-cart-icon-button{
        border: none;
        border-radius: 50%;
        font-size: 24px;
        line-height: 24px;
        color: black;
        background: #a72c3421!important;
        cursor: pointer;
        width: 38px;
        height: 38px;
        display: flex;
        padding-bottom: 4px;
        justify-content: center;
        align-items: center;
    }
    .hoopla-cart-icon-button img{
        width: 20px;
    }

    .hoopla-drawer-overlay {
        right: 78dvw;
    }
    .drawer-close-button{
        display: none;
    }
    .hoopla-drawer .item-name{
        font-size: 15px;
    }
    .drawer-header{
        
    }
    .subtotal-line{
        font-size: 18px;
    }
    .drawer-title{
        font-size: 18px;
    }
    .hoopla-drawer .quantity-display{
        font-size: 13px;
    }
    .hoopla-drawer .item-quantity-selector .quantity-btn{
        padding: 4px 8px;
        font-size: 13px;
    }
    .hoopla-drawer p{
        margin-block-end: 0px;
    }
    .hoopla-drawer .item-short-description{
        font-size: 13px;
    }
   .hoopla-drawer .subtotal-line .woocommerce-Price-amount.amount{
        font-size: 16px;
    }
	.hoopla-drawer span.woocommerce-Price-amount.amount{
		font-size:14px;
	}
    .hoopla-drawer{
        padding: 28px 28px 18px 18px;
    }
    .hoopla-drawer .item-image{
        width: 50px;
        height: 50px;
    }
    :root {
        --header-height: 80px;
        --footer-margin: 0px;
        --drawer-width: 78dvw;
        --drawer-radius: 12px;
        --animation-timing: 0.4s;
        --animation-curve: cubic-bezier(0.7, 0, 0.2, 1);
    }
    
    /* --- NIEUWE CODE VOOR ICOON-WISSEL --- */

    /* Als de drawer open is, verberg de winkelwagen en de teller */
    body.drawer-open .hoopla-cart-icon-button .cart-image,
    body.drawer-open .hoopla-cart-icon-button .item-counter {
        opacity: 0;
        pointer-events: none;
    }

    /* Als de drawer open is, toon het sluit-icoon */
    body.drawer-open .hoopla-cart-icon-button .close-icon {
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Zorg ervoor dat de knop een hogere z-index heeft dan de overlay op mobiel */
    body.drawer-open .hoopla-cart-icon-button {
       z-index: 9999;
    }
}



/* Styling voor upsell-bericht in de footer */
.upsell-message-container {
    background-color: #a72c3512;
	padding: 4px 20px;
    margin-bottom: 20px; /* Ruimte tot de subtotaal-lijn */
    border-radius: 8px; /* Afgeronde hoeken */
    text-align: center;
    
    /* Animatie-eigenschappen */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 0.5s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.upsell-message {
    margin: 0;
    font-size: 14px;
    color: #A72C35;
    font-weight: 500;
}

.upsell-message strong {
    font-weight: 700;
}

/* Keyframes voor de animatie */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive aanpassing voor mobiel */
@media(max-width: 767px) {
    .upsell-message-container {
        margin:0 -12px 15px -12px;
    }
}