/*
Theme Name: Haie De Bambou Direct
Theme URI: https://haiedebamboudirect.be/
Description: Haie de Bambou Direct est le fournisseur de haies de bambou pour les jardins privés, les entreprises et les projets commerciaux.
Author: Webs Media
Author URI: https://websmedia.nl
Template: shoptimizer
Version: 1.0.0
*/

// Carnaval melding
.product-notice-carnaval {
    background: #fff3cd;
    border: 1px solid #ffe69c;
    color: #664d03;
    padding: 10px 14px;
    margin-top: -35px;
    margin-bottom: 15px;
    font-weight: 600;
}

.woocommerce-product-details__short-description ul { margin: 0; padding: 0; padding-bottom: 10px; }
.woocommerce-product-details__short-description ul li { list-style-type: none; padding-left: 1.4em; text-indent: -2.2em; font-size: 12px; }
.woocommerce-product-details__short-description ul li::before { content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="12" fill="currentColor"><path d="m10.5,19c-.123,0-.245-.045-.341-.135-.202-.188-.212-.505-.024-.707l4.142-4.43c.471-.471.723-1.08.723-1.729s-.252-1.258-.711-1.717l-4.154-4.441c-.188-.202-.178-.519.024-.707.201-.187.518-.179.707.023l4.142,4.43c.636.636.993,1.496.993,2.412s-.357,1.776-1.004,2.424l-4.13,4.418c-.099.105-.232.158-.365.158Z"/></svg>'); margin-right: 10px; vertical-align: middle; }

#shoptimizer-modals-wrapper { display: flex !important; max-width: 510px; }
.theme-shoptimizer .commercekit-wishlist.full { margin-bottom: 0px; align-items: center; display: flex; min-width: 45%; }
.valued-widget { display: flex; align-items: center; min-width: 67%; }
.custom-discount-message { margin: 20px 0 35px 0; padding: 10px; border: 1px solid; border-radius: 3px; background: #247e6c; color: #fff; }
.month-code { color: #f2d165; }

// Delivery time + free shipping badges under price
.delivery-info {
    margin-top: 10px;
}

.delivery-time,
.free-shipping {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.single-icon {
    margin-right: 6px;
}

.single-icon svg {
    width: 22px;
    height: 22px;
    margin-bottom: -1px;
    margin-top: 0;
    color: #ffffff;
}

.delivery-badge {
    background: #e9f8ed;
    color: #247E6C;
    padding: 9px 15px 9px 10px;
    display: inline-flex;
    align-items: center;
}

.tooltip-wrapper {
    position: relative;
    margin-left: 8px;
    margin-bottom: -5px;
    display: inline-block;
    cursor: pointer;
}

.tooltip-wrapper svg {
    width: 16px;
    height: 16px;
}

.tooltip-box {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    bottom: 130%;
    left: -21px;
    margin-bottom: 5px;
    background: #fff;
    color: #333;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 250px;
    font-size: 13px;
    z-index: 100;
}

.tooltip-arrow {
    position: absolute;
    top: 100%;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ffffff;
    filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.1));
}

.tooltip-wrapper:hover .tooltip-box {
    visibility: visible;
    opacity: 1;
}

// Voorraad bericht

/* Shared styling for stock status */
.custom-stock-status {
    display: flex;
    align-items: center;
    font-size: 13px;
    margin-bottom: 10px;
}

/* Dot style */
.custom-stock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

/* Archive dot smaller */
.custom-stock-status:not(.custom-stock-status-single) .custom-stock-dot {
    width: 8px;
    height: 8px;
}

/* Colors */
.custom-stock-status.in-stock .custom-stock-dot {
    background-color: green;
}

.custom-stock-status.out-of-stock .custom-stock-dot {
    background-color: red;
}

.ccd-pu-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding-top: 3px;
    background: #247e6c;
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    z-index: 999;
}

.bh-maanddeal-badge {
    position: absolute;
    bottom: 0px;
    left: 8px;
    background: #de1717;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    z-index: 20;
    pointer-events: none !important;
    transform: none !important;
}

/* Add a class for products that have the badge */
.bh-has-maanddeal .shoptimizer-plp-image-wrapper img,
.bh-has-maanddeal:hover .shoptimizer-plp-image-wrapper img,
.bh-has-maanddeal:hover .woocommerce-image__wrapper img {
    transform: none !important;
}

.bh-disc-badge {
    position:absolute;
    top: 15px;
    right: 15px;
    padding-top: 3px;
    background: #ff0000;
    color: #fff;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display:flex;
    justify-content:center;
    align-items:center;
    box-shadow:0 4px 10px rgba(0,0,0,0.2);
    z-index:9999;
    pointer-events:none;
}

/* Potmaat uitleg */
    .potmaat-uitleg-wrapper {
        display: inline-flex;
        align-items: center;
        position: relative;
        margin-top: 5px;
        margin-left: 10px;
        vertical-align: middle;
    }
    .potmaat-uitleg-trigger {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        user-select: none;
        white-space: nowrap;
    }
    .potmaat-uitleg-trigger:hover,
    .potmaat-uitleg-trigger:focus {
        outline: none;
    }
    .potmaat-uitleg-icon {
        display: flex;
        align-items: center;
        color: #2d6a4f;
    }
    .potmaat-uitleg-label {
        font-size: 13px;
        color: #2d6a4f;
        text-decoration: underline dotted;
    }
    .potmaat-uitleg-popover {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 12px 14px;
        font-size: 13px;
        line-height: 1.5;
        color: #333;
        width: 240px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
        z-index: 999;
        white-space: normal;
    }
    .potmaat-uitleg-popover a {
        color: #2d6a4f;
        font-weight: 600;
    }
    .potmaat-uitleg-popover a:hover {
        text-decoration: underline;
    }
    .potmaat-uitleg-popover.is-open {
        display: block;
    }
    .potmaat-uitleg-chevron {
        position: absolute;
        top: -8px;
        right: 28px;
        width: 14px;
        height: 14px;
        background: #fff;
        border-left: 1px solid #ddd;
        border-top: 1px solid #ddd;
        transform: rotate(45deg);
    }
    /* Make the terms container inline-flex so the tooltip sits on the same row */
    .wpclv-attribute-pa_potmaat .wpclv-terms {
        display: inline-flex !important;
        flex-wrap: wrap;
        align-items: center;
    }

@media (max-width: 768px) {
.bh-md-title-badge { margin-top: 15px!important; margin-bottom: -5px !important; }
}

@media (max-width: 600px) {
    .tooltip-box {
        left: auto;
        right: -10px;
    }

    .tooltip-arrow {
        left: auto;
        right: 10px;
    }
}

@media (max-width: 529px) {
.potmaat-uitleg-popover.is-open { position-area: bottom!important; }
}