/* IAH Out-of-Stock Experience */

/* Catalogue / shop cards */
body.woocommerce ul.products li.product.iah-oos-product-card,
body.woocommerce-page ul.products li.product.iah-oos-product-card {
    position: relative !important;
}

body.woocommerce ul.products li.product.iah-oos-product-card img,
body.woocommerce-page ul.products li.product.iah-oos-product-card img {
    opacity: .48 !important;
    filter: grayscale(1) !important;
    transition: none !important;
}

body.woocommerce ul.products li.product.iah-oos-product-card:hover img,
body.woocommerce-page ul.products li.product.iah-oos-product-card:hover img {
    opacity: .48 !important;
    filter: grayscale(1) !important;
    transform: none !important;
}

body.woocommerce ul.products li.product.iah-oos-product-card .woocommerce-loop-product__title,
body.woocommerce-page ul.products li.product.iah-oos-product-card .woocommerce-loop-product__title,
body.woocommerce ul.products li.product.iah-oos-product-card .product-title,
body.woocommerce-page ul.products li.product.iah-oos-product-card .product-title {
    color: #777 !important;
    text-decoration: line-through !important;
    text-decoration-thickness: 1px !important;
}

body.woocommerce ul.products li.product.iah-oos-product-card .price,
body.woocommerce-page ul.products li.product.iah-oos-product-card .price,
body.woocommerce ul.products li.product.iah-oos-product-card .price *,
body.woocommerce-page ul.products li.product.iah-oos-product-card .price * {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #111 !important;
    text-decoration: none !important;
}

.iah-oos-catalogue-badge {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 12 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 29px !important;
    padding: 6px 11px !important;
    border: 1px solid rgba(0, 0, 0, .18) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .95) !important;
    color: #111 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    pointer-events: none !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12) !important;
}

/* Selectable unavailable variation swatches */
html body.single-product form.variations_form .cfvsw-swatches-option.iah-oos-swatch,
html body.single-product form.variations_form .variable-item.iah-oos-swatch,
html body.single-product form.variations_form .swatch.iah-oos-swatch,
html body.single-product form.variations_form .cfvsw-swatches-option.cfvsw-swatches-disabled.iah-oos-swatch,
html body.single-product form.variations_form .cfvsw-swatches-option.cfvsw-swatches-blur-disable.iah-oos-swatch,
html body.single-product form.variations_form .cfvsw-swatches-option.cfvsw-swatches-blur-cross-disable.iah-oos-swatch {
    position: relative !important;
    opacity: 1 !important;
    color: #888 !important;
    border-color: #cfcfcf !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    background:
        linear-gradient(
            to bottom right,
            transparent 48.5%,
            #d71920 49%,
            #d71920 51%,
            transparent 51.5%
        ),
        #f3f3f3 !important;
}

html body.single-product form.variations_form .iah-oos-swatch *,
html body.single-product form.variations_form .cfvsw-swatches-disabled.iah-oos-swatch * {
    color: #888 !important;
    pointer-events: none !important;
}

html body.single-product form.variations_form .iah-oos-swatch.cfvsw-selected-swatch,
html body.single-product form.variations_form .iah-oos-swatch.selected {
    outline: 2px solid #111 !important;
    outline-offset: 2px !important;
}

/* Selected unavailable variation price */
body.single-product .iah-oos-variation-price,
body.single-product .iah-oos-variation-price * {
    color: #777 !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

body.single-product .iah-oos-variation-price del {
    opacity: 1 !important;
    text-decoration-thickness: 1.5px !important;
}

/* Hide the live purchase controls only while an unavailable variation is selected */
body.single-product form.variations_form.iah-oos-selected .woocommerce-variation-add-to-cart,
body.single-product form.variations_form.iah-oos-selected .single_add_to_cart_button,
body.single-product form.variations_form.iah-oos-selected .iah-buy-now-button,
body.single-product form.variations_form.iah-oos-selected .quantity {
    display: none !important;
}

body.single-product.iah-oos-state-active .summary .stock.out-of-stock {
    display: none !important;
}

/* Sold-out and stock-alert area */
body.single-product .iah-oos-experience {
    display: none;
    width: 100%;
    margin: 14px 0 20px;
    font-family: 'Poppins', sans-serif;
}

body.single-product .iah-oos-experience.is-visible {
    display: block !important;
}

body.single-product .iah-oos-sold-out-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 13px 16px !important;
    border: 1px solid #777 !important;
    border-radius: 0 !important;
    background: #777 !important;
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    cursor: default !important;
    pointer-events: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

body.single-product .iah-oos-sold-out-button:hover,
body.single-product .iah-oos-sold-out-button:focus,
body.single-product .iah-oos-sold-out-button:active {
    border-color: #777 !important;
    background: #777 !important;
    color: #fff !important;
    transform: none !important;
    box-shadow: none !important;
}

body.single-product .iah-oos-notify-form {
    margin: 12px 0 0 !important;
    padding: 16px !important;
    border: 1px solid #e2e2e2 !important;
    background: #fafafa !important;
}

body.single-product .iah-oos-notify-heading {
    margin: 0 0 10px !important;
    color: #111 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

body.single-product .iah-oos-notify-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
}

body.single-product .iah-oos-email {
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 10px 13px !important;
    border: 1px solid #d5d5d5 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #111 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    box-shadow: none !important;
}

body.single-product .iah-oos-email:focus {
    border-color: #111 !important;
    outline: none !important;
}

body.single-product .iah-oos-notify-button {
    min-width: 125px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 10px 16px !important;
    border: 1px solid #111 !important;
    border-radius: 0 !important;
    background: #111 !important;
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
}

body.single-product .iah-oos-notify-button:hover {
    background: #333 !important;
    border-color: #333 !important;
    color: #fff !important;
}

body.single-product .iah-oos-notify-button:disabled {
    opacity: .6 !important;
    cursor: wait !important;
}

body.single-product .iah-oos-notify-help {
    margin: 9px 0 0 !important;
    color: #777 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
}

body.single-product .iah-oos-notify-message {
    min-height: 18px !important;
    margin: 8px 0 0 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
}

body.single-product .iah-oos-notify-message.is-success {
    color: #247a38 !important;
}

body.single-product .iah-oos-notify-message.is-error {
    color: #b42318 !important;
}

body.single-product .iah-oos-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

@media (max-width: 767px) {
    body.single-product .iah-oos-notify-row {
        grid-template-columns: 1fr !important;
    }

    body.single-product .iah-oos-notify-button {
        width: 100% !important;
    }

    .iah-oos-catalogue-badge {
        top: 8px !important;
        left: 8px !important;
        padding: 5px 8px !important;
        font-size: 9px !important;
    }
}
