.immediate-delivery-badge {
    position: absolute;
    top: 8px;
    left: 0;
    z-index: 2;
    display: inline-block;
    padding: 4px 6px;
    background: #d93300;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.immediate-delivery-loop-badge {
    position: absolute;
    top: 24px;
    left: 0;
    z-index: 10;
    display: inline-block;
    padding: 2px 4px;
    background: #d93300;
    color: #fff;
    font-size: 11px;
}

.immediate-delivery-badge--below-sale {
    top: 36px !important;
}


.product-notice {
    box-sizing: border-box;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    background: #f5f5f5;
    color: inherit;
    font-size: 13px;
    line-height: 2;
}

.product-notice.imd-product-notice-transition {
    opacity: 1;
    visibility: visible;
    filter: none;
    transition: opacity .22s ease, filter .22s ease, visibility 0s linear 0s;
}

.product-notice.imd-product-notice-muted {
    opacity: .42;
    filter: saturate(.45);
}

.product-notice.imd-product-notice-reserved {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, filter .22s ease, visibility 0s linear .22s;
}

.product-notice.imd-product-notice-hidden {
    display: none !important;
}

.product-notice.imd-product-notice-mixed {
    opacity: 1;
    visibility: visible;
    filter: none;
}

.immediate-delivery-badge-pro,
.imd-product-status {
    margin: 12px 0 16px;
}

.immediate-delivery-badge-pro,
.imd-status-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 24px;
    background: rgba(253, 129, 137, 0.2);
    color: #fd8189;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.imd-truck-icon {
    flex: 0 0 auto;
}

.imd-info-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.imd-info-toggle:hover,
.imd-info-toggle:focus {
    background: rgba(253, 129, 137, 0.12);
    color: inherit;
    outline: none;
}

.imd-info-panel {
    max-width: 560px;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(253, 129, 137, 0.25);
    border-radius: 10px;
    background: rgba(253, 129, 137, 0.08);
    color: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.9;
}

.imd-product-status--not-immediate .imd-status-line {
    background: rgba(120, 120, 120, 0.09);
    color: #666;
}

.imd-low-stock-message {
    margin: 8px 0 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fd8189;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.8;
}

.imd-mixed-cart-notice {
    margin: 6px 0;
    padding: 10px 12px;
    border: 1px solid rgba(253, 129, 137, 0.3);
    border-radius: 8px;
    background: rgba(253, 129, 137, 0.08);
    font-size: 13px;
    line-height: 1.9;
    text-align: right;
}

.imd-mixed-cart-notice__title,
.imd-mixed-cart-notice__text {
    display: block;
}

.imd-mixed-cart-notice__title {
    margin-bottom: 3px;
    color: inherit;
    font-size: 1.04em;
    font-weight: 700;
}

.imd-status-message {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
    text-align: right;
}

.imd-status-title {
    color: inherit;
    font: inherit;
    font-weight: 700;
}

.imd-status-detail {
    color: inherit;
    font-size: .9em;
    font-weight: 500;
    line-height: 1.75;
}

.imd-mixed-cart-notice--mini {
    margin: 12px 20px;
    padding: 12px 13px;
    border-radius: 12px;
    color: #333;
    font-size: 12px;
    line-height: 1.85;
}

.imd-filter-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 16px;
}

.imd-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    vertical-align: middle;
}

.imd-switch input {
    width: 0;
    height: 0;
    opacity: 0;
}

.imd-slider {
    position: absolute;
    inset: 0;
    border-radius: 26px;
    background: #e3e3e3;
    cursor: pointer;
    transition: 0.25s;
}

.imd-slider::before {
    position: absolute;
    bottom: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    content: "";
    transition: 0.25s;
}

.imd-switch input:checked + .imd-slider {
    background: #fd8189;
}

.imd-switch input:checked + .imd-slider::before {
    transform: translateX(22px);
}

.imd-switch-label {
    color: inherit;
    font-size: inherit;
    font-weight: 600;
    user-select: none;
}

@media (max-width: 767px) {
    .imd-product-status {
        width: 100%;
    }

    .imd-status-line {
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr) 24px;
        align-items: start;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 16px;
        font-size: 13.5px;
        line-height: 1.85;
    }

    .imd-status-line .imd-truck-icon {
        width: 22px;
        height: 22px;
        margin-top: 2px;
    }

    .imd-status-line .imd-info-toggle {
        width: 22px;
        height: 22px;
        margin-top: 2px;
    }

    .imd-info-panel {
        font-size: 12px;
    }

    .imd-mixed-cart-notice--mini {
        margin: 12px 16px;
    }
}


.imd-clear-immediate-filter {
    display: inline-block;
    margin-inline-start: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.imd-clear-immediate-filter:hover,
.imd-clear-immediate-filter:focus {
    color: inherit;
    opacity: 0.75;
    outline: none;
}


.imd-product-out-of-stock .product-notice {
    display: none !important;
}

/* Unified out-of-stock contact card on single-product pages. */
.imd-original-out-of-stock-hidden {
    display: none !important;
}

.imd-out-of-stock-contact {
    margin: 14px 0 18px;
    padding: 16px;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    background: #f5f5f5;
    color: #222;
    text-align: right;
}

.imd-out-of-stock-contact__title {
    display: block;
    margin: 0 0 5px;
    color: #222;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.9;
}

.imd-out-of-stock-contact__text {
    margin: 0 0 13px;
    color: #555;
    font-size: 13px;
    line-height: 2;
}

.imd-out-of-stock-contact__button,
.imd-out-of-stock-contact__button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid #111;
    border-radius: 7px;
    background: #111;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.imd-out-of-stock-contact__button:hover,
.imd-out-of-stock-contact__button:focus {
    background: #111;
    color: #fff !important;
    opacity: 0.82;
    outline: none;
}

.imd-out-of-stock-contact__icon {
    flex: 0 0 auto;
}

@media (max-width: 767px) {
    .imd-out-of-stock-contact {
        padding: 14px;
    }

    .imd-out-of-stock-contact__button {
        width: 100%;
    }
}
