/* Rendered with the HTML so delivery never flashes an obsolete date while Ready loads. */
.rs-ready-placeholder,
.rs-ready-preview-active .rs-ready-placeholder.rs-ready-loading {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    min-height: 100px;
    margin: 16px 0 20px;
    padding: 20px 24px;
    border: 1px solid #e5ded4;
    border-left: 4px solid var(--rs-ready-accent, #f05a28);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(23, 50, 77, .045);
    color: #17324d;
    font-family: 'Poppins', Arial, sans-serif;
    opacity: 1;
}
.rs-ready-placeholder h2 {
    margin: 0 0 4px;
    color: #17324d;
    font: 700 17px/1.35 'Poppins', Arial, sans-serif;
}
.rs-ready-placeholder p {
    margin: 0;
    color: #526677;
    font: 400 12px/1.45 'Poppins', Arial, sans-serif;
}
.rs-ready-placeholder-spinner {
    box-sizing: border-box;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border: 3px solid var(--rs-ready-blue-border, #f9d1c1);
    border-top-color: var(--rs-ready-accent, #f05a28);
    border-radius: 50%;
    animation: rs-ready-spin .8s linear infinite;
}
@keyframes rs-ready-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .rs-ready-placeholder-spinner { animation: none; }
}
@media (max-width: 600px) {
    .rs-ready-placeholder { padding: 16px; }
}

.rs-ready-preview-active.rs-ready-cart-promise-live .rs-ready-legacy-cart-line,
.rs-ready-preview-active.rs-ready-cart-promise-live .cart-delivery-summary {
    display: none !important;
}
.rs-ready-preview-active .rs-ready-card {
    box-sizing: border-box;
    max-width: 100%;
    margin: 14px 0 20px;
    padding: 20px 22px;
    border: 1px solid #d7e2d9;
    border-left: 4px solid #168a4a;
    border-radius: 12px;
    background: #f7f5f0;
    color: #17324d;
    font-family: Inter, Arial, sans-serif;
    line-height: 1.5;
}
.rs-ready-preview-active .rs-ready-card h2 {
    margin: 0 0 8px;
    color: #168a4a;
    font: 700 1.25rem/1.3 Montserrat, Arial, sans-serif;
}
.rs-ready-preview-active .rs-ready-card p { margin: 7px 0; }
.rs-ready-preview-active .rs-ready-card .rs-ready-date {
    color: #17324d;
    font-size: 1.08rem;
    font-weight: 650;
}
.rs-ready-preview-active .rs-ready-card .rs-ready-detail,
.rs-ready-preview-active .rs-ready-card .rs-ready-evidence { color: #5f6f7b; }
.rs-ready-preview-active .rs-ready-card .rs-ready-prompt {
    color: #168a4a;
    font-weight: 700;
}
.rs-ready-preview-active .rs-ready-card .rs-ready-lines {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 12px 0;
    list-style: none;
}
.rs-ready-preview-active .rs-ready-card .rs-ready-lines li {
    display: grid;
    gap: 2px;
    padding: 8px 0;
    border-bottom: 1px solid #dce2dc;
}
.rs-ready-preview-active .rs-ready-card .rs-ready-lines span { color: #168a4a; font-weight: 650; }
.rs-ready-preview-active .rs-ready-card .rs-ready-lines small { color: #5f6f7b; }
.rs-ready-preview-active .rs-ready-card .rs-ready-ack {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 12px;
    border-radius: 8px;
    background: var(--rs-ready-blue-soft, #fff0e8);
    color: #17324d;
    cursor: pointer;
}
.rs-ready-preview-active .rs-ready-card .rs-ready-ack input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: var(--rs-ready-accent, #f05a28);
}
.rs-ready-preview-active .rs-ready-card .rs-ready-preview-note {
    color: #5f6f7b;
    font-size: .85rem;
}
.rs-ready-preview-active .rs-ready-loading { opacity: .65; }
.rs-ready-preview-pill {
    position: fixed;
    z-index: 99999;
    right: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 11px;
    border: 1px solid #17324d;
    border-radius: 100px;
    background: #17324d;
    color: #fff;
    box-shadow: 0 3px 14px rgba(0,0,0,.2);
    font: 600 .75rem/1.3 Inter, Arial, sans-serif;
}
.rs-ready-preview-pill button {
    border: 0;
    padding: 3px 0;
    background: transparent;
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}
.rs-ready-preview-pill button:focus-visible,
.rs-ready-preview-active .rs-ready-card .rs-ready-ack input:focus-visible {
    outline: 3px solid var(--rs-ready-accent, #f05a28);
    outline-offset: 3px;
}
@media (max-width: 600px) {
    .rs-ready-preview-active .rs-ready-card { padding: 16px; }
    .rs-ready-preview-pill { right: 8px; bottom: 8px; }
}
.rs-ready-confirm-dialog {
    box-sizing: border-box;
    width: min(92vw, 540px);
    max-height: 90vh;
    padding: 24px;
    border: 1px solid #d7e2d9;
    border-radius: 12px;
    color: #17324d;
    background: #fff;
    box-shadow: 0 14px 45px rgba(0, 0, 0, .24);
    font: 400 1rem/1.5 Inter, Arial, sans-serif;
}
.rs-ready-confirm-dialog::backdrop { background: rgba(12, 27, 39, .65); }
.rs-ready-confirm-dialog h2 { margin: 0 0 12px; font-size: 1.4rem; }
.rs-ready-confirm-dialog p { margin: 9px 0; }
.rs-ready-confirm-dialog label { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; }
.rs-ready-confirm-dialog input { flex: 0 0 auto; margin-top: 5px; accent-color: #168a4a; }
.rs-ready-confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.rs-ready-confirm-actions button { padding: 9px 14px; border-radius: 6px; cursor: pointer; }
.rs-ready-confirm-actions button:last-child { border: 1px solid #168a4a; background: #168a4a; color: #fff; }
.rs-ready-confirm-actions button:disabled { opacity: .5; cursor: not-allowed; }
.rs-ready-confirm-dialog :focus-visible { outline: 3px solid var(--rs-ready-accent, #f05a28); outline-offset: 2px; }
.rs-ready-preview-active #checkout-step-shipping_method .rs-shipping-date {
    display: block;
    color: #17324d;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}
.rs-ready-preview-active #checkout-step-shipping_method .rs-shipping-service {
    display: block;
    color: #5f6f7b;
    font-size: .87rem;
}
.rs-ready-preview-active #checkout-step-shipping_method td.col-carrier {
    color: #5f6f7b;
}
@media (max-width: 600px) {
    .rs-ready-preview-active #checkout-step-shipping_method .rs-shipping-date { font-size: .95rem; }
}

.rs-ready-preview-active #checkout-step-shipping_method td.col-method[data-rs-date] > .shipping-method-cell,
.rs-ready-preview-active #checkout-step-shipping_method td.col-carrier[data-rs-service] > .shipping-method-cell { display: none; }

/* BCS storefront palette: green readiness accents with the existing BCS blue. */
.rs-ready-preview-bcs .rs-ready-placeholder { border-left-color: #3d6611; }
.rs-ready-preview-bcs .rs-ready-placeholder-spinner {
    border-color: #dce9d3;
    border-top-color: #3d6611;
}
.rs-ready-preview-bcs .rs-ready-card { border-left-color: #3d6611; }
.rs-ready-preview-bcs .rs-ready-card h2,
.rs-ready-preview-bcs .rs-ready-card .rs-ready-prompt,
.rs-ready-preview-bcs .rs-ready-card .rs-ready-lines span { color: #3d6611; }
.rs-ready-preview-bcs .rs-ready-card .rs-ready-date { color: #0a263c; }
.rs-ready-preview-bcs .rs-ready-card .rs-ready-ack {
    border-left: 3px solid #1e7ec8;
    background: #eef6fc;
}
.rs-ready-preview-bcs .rs-ready-card .rs-ready-ack input,
.rs-ready-preview-bcs .rs-ready-confirm-dialog input { accent-color: #3d6611; }
.rs-ready-preview-bcs .rs-ready-preview-pill {
    border-color: #0a263c;
    background: #0a263c;
}
.rs-ready-preview-bcs .rs-ready-preview-pill button:focus-visible,
.rs-ready-preview-bcs .rs-ready-card .rs-ready-ack input:focus-visible,
.rs-ready-preview-bcs .rs-ready-confirm-dialog :focus-visible { outline-color: #1e7ec8; }
.rs-ready-preview-bcs .rs-ready-confirm-dialog { border-color: #cbd9e3; }
.rs-ready-preview-bcs .rs-ready-confirm-actions button:last-child {
    border-color: #3d6611;
    background: #3d6611;
}

@media (max-width: 600px) {
    body.rs-ready-preview-active.checkout-index-index .opc-wrapper #checkout-shipping-method-load .table-checkout-shipping-method,
    body.rs-ready-preview-active.checkout-index-index .opc-wrapper #checkout-shipping-method-load .table-checkout-shipping-method tbody {
        display: block !important;
        width: 100% !important;
    }
    body.rs-ready-preview-active.checkout-index-index .opc-wrapper #checkout-shipping-method-load .table-checkout-shipping-method thead {
        position: absolute !important;
        clip-path: inset(50%);
        height: 1px;
        width: 1px;
        overflow: hidden;
    }
    body.rs-ready-preview-active.checkout-index-index .opc-wrapper #checkout-shipping-method-load .table-checkout-shipping-method tbody tr.row:not(.row-error) {
        display: grid !important;
        grid-template-columns: 28px minmax(0, 1fr) auto;
        column-gap: 10px;
        row-gap: 4px;
        padding: 12px 0;
    }
    body.rs-ready-preview-active.checkout-index-index .opc-wrapper #checkout-shipping-method-load .table-checkout-shipping-method tbody tr.row:not(.row-error) td {
        display: block !important;
        border: 0;
        padding: 0 !important;
        width: auto !important;
        min-width: 0;
    }
    body.rs-ready-preview-active.checkout-index-index .opc-wrapper #checkout-shipping-method-load .table-checkout-shipping-method td.col-select {
        grid-column: 1;
        grid-row: 1 / 3;
        align-self: center;
    }
    body.rs-ready-preview-active.checkout-index-index .opc-wrapper #checkout-shipping-method-load .table-checkout-shipping-method td.col-price {
        grid-column: 3;
        grid-row: 1 / 3;
        align-self: start;
    }
    body.rs-ready-preview-active.checkout-index-index .opc-wrapper #checkout-shipping-method-load .table-checkout-shipping-method td.col-method {
        grid-column: 2;
        grid-row: 1;
    }
    body.rs-ready-preview-active.checkout-index-index .opc-wrapper #checkout-shipping-method-load .table-checkout-shipping-method td.col-carrier {
        grid-column: 2;
        grid-row: 2;
    }
    body.rs-ready-preview-active.checkout-index-index .opc-wrapper #checkout-shipping-method-load .table-checkout-shipping-method tbody tr.row-error {
        display: block !important;
    }
}
