/**
 * WooCommerce custom styles
 */
.hide-price-hint span.wapf-pricing-hint {
    display: none !important;
}

/**
 * PhotoSwipe
 */
.pswp__top-bar {
    background-color: transparent !important;

    .pswp__button--share {
        display: none !important;
    }
}

/**
 * WAPF Swatches
 */
.wapf-swatch .wapf-swatch-label {
    width: 110px;
}

/*
    Selection cards
 */
.wapf-card > .wapf-card-inner {
    border: 2px solid transparent;
    border-radius: 6px;
    transition: border-color 0.2s ease;
}

.wapf-card.wapf-checked > .wapf-card-inner {
    border: 2px solid #4D83DE !important;
    background-color: #E5EFFC;
    border-radius: 6px;
    position: relative;
    overflow: visible !important;
}

.wapf-card.wapf-checked > .wapf-card-inner::before {
    content: '\2713';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    background-color: #4D83DE;
    border: 2px solid #4D83DE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 10px;
    z-index: 1;
}

.wapf-card:not(.wapf-checked):hover > .wapf-card-inner {
    border-color: #ddd;
}

/*
    RAL Color selector if it has label "Anders"
 */
.wapf-color.wapf--rounded:has(+ input[data-wapf-label="Anders"]) {
    background-image: url("/app/themes/bekleedjeraam/assets/img/color-wheel.png");
    background-size: contain;
}

/*
    RAL input before label
 */
.wapf-field-input:has(span.ral-color-before) {
    display: flex;
}

span.ral-color-before {
    background-color: #ddd;
    padding: 0.75rem;
    border: 2px solid #ddd;
    height: calc(2.15em + 0.975rem + 4px);
    line-height: 1.6;
}

/*
    Shopping cart variation styling
 */
.woocommerce-cart-form__cart-item div.col-12 dl.variation {
    display: block;
    margin-top: 5px;
}

.woocommerce-cart-form__cart-item div.col-12 dl dt {
    float: left;
    width: 40%;
}

@media only screen and (max-width: 782px) {
    .woocommerce-cart-form__cart-item div.col-12 dl dt {
        width: 50%;
    }
}

.woocommerce-cart-form__cart-item div.col-12 dl dd {
    border-right: none;
}

.woocommerce-cart-form__cart-item div.col-12 dl dd .wapf-pricing-hint {
    display: none;
}

/*
Product page
 */
.tab-title a.tab-link {
    transition: all .25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.wapf-section .next-tab {
    width: 100%;
}
.wapf-section .next-tab a {
    float: right;
    margin-right: 30px;
    transition: all .25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.wapf-section .next-tab a:after {
    content: "\e923";
    font-family: "et-icon", serif;
    margin-left: 10px;
    position: absolute;
}

.wapf-section .wapf-field-container input.error,
.wapf-section .wapf-field-container select.error
{
    border-color: #c84e44;
}
.tab-title.error a {
    color: #c84e44;
}
.tab-title.valid a {
    color: #44c890;
}
.tab-title a span.description span.extra {
    font-size: 12pt;
    margin-left: 10px;
}
.tab-title.valid a span.description:after {
    content: "\e92c";
    font-family: "et-icon", "serif";
    font-size: 14px;
    font-weight: 400;
    margin-left: 10px;
}
.tab-title.disabled a,
.wapf-section .next-tab a.next.disabled {
    color: #ddd;
    cursor: default;
}

.bjr-measuring-instructions-icon {
    width: 40px;
    height: 40px;
}
.bjr-measuring-instructions-icon:before {
    display: block;
    position: absolute;
    content: ' ';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 200px;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    border: 1px solid currentColor;
}
.bjr-measuring-instructions-icon:after {
    content: " ";
    height: 72px;
    width: 72px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 50%;
    background: transparent;
    opacity: 0;
    transition: background .5s linear;
}
.bjr-measuring-instructions-btn:hover .bjr-measuring-instructions-icon:after {
    animation: 1s circlePulse linear;
}
.bjr-measuring-instructions-icon svg {
    display: block;
    position: absolute;
    height: 13px;
    width: 13px;
    top: 50%;
    left: 50%;
    margin-left: 2px;
    -ms-transform: translateY(-50%) translateX(-50%);
    transform: translateY(-50%) translateX(-50%);
    -webkit-transform: translateY(-50%) translateX(-50%);
}
.bjr-measuring-instructions-btn:hover svg {
    fill: currentColor;
}
.bjr-measuring-instructions-label {
    margin: 0 .75em;
}

@media only screen and (max-width: 400px) {
    .wapf-swatch--color {
        margin-right: 10px !important;
    }
}

/*
 * Product meta
 */
.et-product-detail .product_meta {
    margin-top: 0px;
}

.et-product-detail .expected-delivery {
    clear: both;
    color: #848485;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    margin-top: 30px;
    font-size: 0.9em;
}

.et-product-detail .expected-delivery .after {
    color: #282828;
}

/*.et-product-detail .single_add_to_cart_button {*/
/*    background-color: #ffcb3a !important;*/
/*    color: #333;*/
/*}*/

/*.et-product-detail .single_add_to_cart_button:hover {*/
/*    color: #333;*/
/*    opacity: 0.6;*/
/*}*/

.et-feat-link-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.95em;
}

.et-featured-link-icon {
    display: inline-block;
    width: 34px;
    height: 34px;
    text-align: center;
    vertical-align: middle;
    z-index: 1;
    position: relative;

    svg {
        display: block;
        position: absolute;
        height: 23px;
        width: 23px;
        top: 50%;
        left: 50%;
        margin-left: 2px;
        -ms-transform: translateY(-50%) translateX(-50%);
        transform: translateY(-50%) translateX(-50%);
        -webkit-transform: translateY(-50%) translateX(-50%);
    }
}

/**
 * Checkout postcode validation
 */
.woocommerce-checkout p.form-row.postcode-invalid:after {
    content: attr(postcode-error) !important;
}

.woocommerce-checkout p.form-row span.postcode-status.validating {
    position: absolute;
    top: 50% !important;
    right: 30px !important;
}
.woocommerce-checkout p.form-row span.postcode-status.valid {
    position: absolute;
    top: 20%;
    right: 20px;
}
.woocommerce-checkout p.form-row span.postcode-status.valid::after {
    color: #44c890;
    content: "\e92c";
    font-family: "et-icon", "serif";
    font-size: 20px;
    font-weight: 400;
}
.woocommerce-checkout p.form-row span.postcode-status.validating::after {
    display: block;
    content: " ";
    position: absolute;
    top: 50%;
    right: 50%;
    left: auto;
    width: 16px;
    height: 16px;
    margin: -8px -8px 0 0;
    background-color: #b9a16b;
    background-image: none;
    border-radius: 100%;
    -webkit-animation: dotPulse .65s 0s infinite cubic-bezier(.21, .53, .56, .8);
    animation: dotPulse .65s 0s infinite cubic-bezier(.21, .53, .56, .8);
}

.woocommerce-checkout p.form-row input:disabled {
    background-color: #f8f8f8;
    color: currentColor;
}

/**
 * Google Recaptcha and Silktide badge adjustments
 */
.grecaptcha-badge, button#silktide-cookie-icon {
    visibility: hidden !important;
}
