.coverlet-delivery {
    clear: both;
    width: 100%;
    direction: rtl;
    margin: 0;
    color: inherit;
    font-family: inherit;
}
.coverlet-delivery__content[hidden] { display: none !important; }

/* Keep the established red archive badge instead of rendering plain text. */
.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;
    line-height: 1.4;
}
.immediate-delivery-badge--below-sale { top: 36px !important; }

.coverlet-delivery-locked-variation { cursor: default; }
.coverlet-delivery-quantity-disabled {
    cursor: not-allowed !important;
    opacity: .45;
}
.coverlet-delivery-quantity-awaiting { position: relative; }
.coverlet-delivery-quantity-awaiting::after {
    content: attr(data-coverlet-quantity-hint);
    position: absolute;
    right: 50%;
    bottom: calc(100% + 8px);
    z-index: 20;
    width: max-content;
    max-width: min(260px, 78vw);
    padding: 7px 10px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 8px;
    background: #fff;
    color: #555;
    box-shadow: 0 5px 18px rgba(0,0,0,.12);
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.7;
    text-align: right;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(50%, 4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.coverlet-delivery-quantity-awaiting:hover::after,
.coverlet-delivery-quantity-awaiting:focus-visible::after,
.coverlet-delivery-quantity-awaiting:focus-within::after {
    opacity: 1;
    visibility: visible;
    transform: translate(50%, 0);
}

.imd-low-stock-message {
    margin: 8px 0 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fd8189;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.8;
    text-align: right;
}
.imd-low-stock-message[hidden] { display: none !important; }

.product-price-table__row.coverlet-bundle-option-disabled {
    opacity: .48;
    cursor: not-allowed;
    user-select: none;
}
.product-price-table__row.coverlet-bundle-option-disabled * { cursor: not-allowed; }

/* Established Product Notice appearance. */
.coverlet-delivery__top {
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    background: #f5f5f5;
    color: inherit;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700 !important;
    line-height: 2;
    text-align: right;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}
.coverlet-delivery__top strong,
.coverlet-delivery__top b { font-weight: 700 !important; }
.coverlet-delivery--placement-top.coverlet-delivery--after-same-style { margin-top: 12px; }
.coverlet-delivery--placement-top .coverlet-delivery__card,
.coverlet-delivery--placement-top .coverlet-delivery__info { display: none !important; }
.coverlet-delivery--placement-status { margin: 12px 0 16px; }
.coverlet-delivery--placement-status .coverlet-delivery__top { display: none; }

/* Same compact typography and pill geometry as the previous IMD status. */
.coverlet-delivery__card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 7px 16px;
    border: 0;
    border-radius: 24px;
    box-sizing: border-box;
    background: rgba(120, 120, 120, .09);
    color: #666;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}
.coverlet-delivery__truck {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    color: currentColor;
}
.coverlet-delivery__truck svg { display: block; width: 22px; height: 22px; }
.coverlet-delivery__title {
    min-width: 0;
    color: inherit;
    font-family: inherit;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}
.coverlet-delivery__message {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    color: inherit;
}
.coverlet-delivery__detail {
    display: block;
    min-width: 0;
    margin-top: 1px;
    color: inherit;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}
.coverlet-delivery__detail[hidden] { display: none !important; }
.coverlet-delivery__info-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 0;
    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;
}
.coverlet-delivery__info-button:hover,
.coverlet-delivery__info-button:focus-visible {
    border-color: currentColor;
    background: rgba(120,120,120,.12);
    color: inherit;
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* In-flow panel: it pushes the add-to-cart area instead of covering it. */
.coverlet-delivery__info {
    position: static;
    width: min(100%, 560px);
    max-width: 560px;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(120,120,120,.28);
    border-radius: 10px;
    background: rgba(120,120,120,.08);
    color: #666;
    box-shadow: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.9;
    text-align: right;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}
.coverlet-delivery__info[hidden] { display: none !important; }
.coverlet-delivery--immediate .coverlet-delivery__card {
    background: rgba(253,129,137,.2);
    color: #fd8189;
}
.coverlet-delivery--immediate .coverlet-delivery__info-button:hover,
.coverlet-delivery--immediate .coverlet-delivery__info-button:focus-visible { background: rgba(253,129,137,.12); }
.coverlet-delivery--immediate .coverlet-delivery__info {
    border-color: rgba(253,129,137,.25);
    background: rgba(253,129,137,.08);
    color: inherit;
}
.coverlet-delivery--normal .coverlet-delivery__card,
.coverlet-delivery--custom_2_3_weeks .coverlet-delivery__card,
.coverlet-delivery--mixed .coverlet-delivery__card,
.coverlet-delivery--syncing .coverlet-delivery__card,
.coverlet-delivery--varies .coverlet-delivery__card {
    background: rgba(120,120,120,.09);
    color: #666;
}
.coverlet-delivery-unified .product-notice,
.coverlet-delivery-unified .imd-product-notice-reserved,
.coverlet-delivery-unified .imd-delivery-status { display: none !important; }

@media (max-width: 575px) {
    .coverlet-delivery__top { padding: 12px 14px; font-size: 13px; line-height: 2; }
    .coverlet-delivery__card {
        display: grid;
        grid-template-columns: auto minmax(0,1fr) auto;
        align-items: center;
        width: 100%;
        max-width: none;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 16px;
        font-size: 13.5px;
        line-height: 1.85;
    }
    .coverlet-delivery__title {
        width: 100%;
        min-width: 0;
        font-size: 13.5px !important;
        line-height: 1.85 !important;
        white-space: normal !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        hyphens: none;
        text-align: right;
    }
    .coverlet-delivery__message,
    .coverlet-delivery__detail {
        width: 100%;
        min-width: 0;
        white-space: normal !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        hyphens: none;
        text-align: right;
    }
    .coverlet-delivery__info { width: 100%; max-width: none; font-size: 12px; }
}
