/**
 * Delivery Engine v0.6 · shared storefront + admin preview styles.
 * Only whitelisted CSS vars override the selected preset; no extra frontend JS.
 */
 :is(body.single-product, .luxa-admin) .luxa-delivery-widget[hidden],
 :is(body.single-product, .luxa-admin) .luxa-delivery-widget [hidden] {
    display: none !important;
}
 :is(body.single-product .site-main, .luxa-admin) .luxa-delivery-widget {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    width: 100%;
    min-width: 0;
    margin: .7rem 0 1rem;
    padding: .8rem .95rem;
    border: 1px solid var(--luxa-delivery-border, #e9e2d7);
    border-radius: 10px;
    background: var(--luxa-delivery-bg, #fffdf9);
    box-shadow: none;
    color: var(--luxa-delivery-body, #26231f);
    line-height: 1.45;
}
 :is(body.single-product .site-main, .luxa-admin) .luxa-delivery-widget__icon {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--luxa-delivery-icon-bg, #f3ead6);
    color: var(--luxa-delivery-icon, #9a732d);
}
 :is(body.single-product .site-main, .luxa-admin) .luxa-delivery-widget__icon svg {
    display: block;
    width: 19px;
    height: 19px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}
 :is(body.single-product .site-main, .luxa-admin) .luxa-delivery-widget__content {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: .12rem;
    min-width: 0;
    flex: 1 1 auto;
}
 :is(body.single-product .site-main, .luxa-admin) .luxa-delivery-widget__heading {
    margin: 0;
    color: var(--luxa-delivery-heading, #2c2923);
    font-size: .93rem;
    font-weight: 750;
    letter-spacing: -.012em;
    line-height: 1.4;
}
 :is(body.single-product .site-main, .luxa-admin) .luxa-delivery-widget__detail {
    color: var(--luxa-delivery-body, #716a5d);
    font-size: .82rem;
    font-weight: 450;
    line-height: 1.5;
}
 :is(body.single-product .site-main, .luxa-admin) .luxa-delivery-widget__time {
    color: var(--luxa-delivery-timer, #8b6625);
    font-weight: 750;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
}

/* Compact: a single slim row on desktop, responsive wrap on narrow layouts. */
 :is(body.single-product .site-main, .luxa-admin) .luxa-delivery-widget--compact {
    align-items: center;
    padding: .73rem .88rem;
    border-color: var(--luxa-delivery-border, #ece5da);
    border-left: 2px solid var(--luxa-delivery-accent, #bf9b54);
    background: var(--luxa-delivery-bg, #fffdf9);
}
 :is(body.single-product .site-main, .luxa-admin) .luxa-delivery-widget--compact .luxa-delivery-widget__icon {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
    border-radius: 50%;
    background: var(--luxa-delivery-icon-bg, transparent);
}
 :is(body.single-product .site-main, .luxa-admin) .luxa-delivery-widget--compact .luxa-delivery-widget__icon svg {
    width: 20px;
    height: 20px;
}
 :is(body.single-product .site-main, .luxa-admin) .luxa-delivery-widget--compact .luxa-delivery-widget__content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: .55rem;
    row-gap: .06rem;
}
 :is(body.single-product .site-main, .luxa-admin) .luxa-delivery-widget--compact .luxa-delivery-widget__heading {
    font-size: .89rem;
}
 :is(body.single-product .site-main, .luxa-admin) .luxa-delivery-widget--compact .luxa-delivery-widget__detail {
    font-size: .79rem;
}

/* Elegant: distinct main promise and lower urgency line, restrained cream surface. */
 :is(body.single-product .site-main, .luxa-admin) .luxa-delivery-widget--sentence {
    border: 1px solid var(--luxa-delivery-border, #e5d9c3);
    border-left: 2px solid var(--luxa-delivery-accent, #e5d9c3);
    background: var(--luxa-delivery-bg, linear-gradient(115deg, #fcf9f1 0%, #f9f5eb 100%));
    padding: 1rem 1.05rem;
}
 :is(body.single-product .site-main, .luxa-admin) .luxa-delivery-widget--sentence .luxa-delivery-widget__icon {
    background: var(--luxa-delivery-icon-bg, #eadab9);
    color: var(--luxa-delivery-icon, #785b26);
}

/* Urgency: editorial contrast, not a fake sale or artificial deadline. */
 :is(body.single-product .site-main, .luxa-admin) .luxa-delivery-widget--urgency {
    border-color: var(--luxa-delivery-border, #3d382e);
    border-left: 2px solid var(--luxa-delivery-accent, #3d382e);
    background: var(--luxa-delivery-bg, #292824);
    color: var(--luxa-delivery-body, #fff7e7);
    padding: .94rem 1rem;
}
 :is(body.single-product .site-main, .luxa-admin) .luxa-delivery-widget--urgency .luxa-delivery-widget__icon {
    background: var(--luxa-delivery-icon-bg, #d9b567);
    color: var(--luxa-delivery-icon, #27231c);
}
 :is(body.single-product .site-main, .luxa-admin) .luxa-delivery-widget--urgency .luxa-delivery-widget__heading {
    color: var(--luxa-delivery-heading, #fff9ec);
}
 :is(body.single-product .site-main, .luxa-admin) .luxa-delivery-widget--urgency .luxa-delivery-widget__detail {
    color: var(--luxa-delivery-body, #e6dbca);
}
 :is(body.single-product .site-main, .luxa-admin) .luxa-delivery-widget--urgency .luxa-delivery-widget__time {
    color: var(--luxa-delivery-timer, #eac576);
}

/* The below-purchase position retains room above the existing assurance row. */
 :is(body.single-product .site-main, .luxa-admin) .summary form.cart + .luxa-delivery-widget,
 :is(body.single-product .site-main, .luxa-admin) .summary .luxa-delivery-widget--below {
    margin-top: .35rem;
    margin-bottom: 1rem;
}
@media (max-width: 780px) {
     :is(body.single-product .site-main, .luxa-admin) .luxa-delivery-widget {
        padding: .82rem .82rem;
        gap: .55rem;
        border-radius: 9px;
    }
     :is(body.single-product .site-main, .luxa-admin) .luxa-delivery-widget__heading {
        font-size: .91rem;
    }
     :is(body.single-product .site-main, .luxa-admin) .luxa-delivery-widget__detail {
        font-size: .78rem;
    }
     :is(body.single-product .site-main, .luxa-admin) .luxa-delivery-widget--compact .luxa-delivery-widget__content {
        column-gap: .35rem;
    }
     :is(body.single-product .site-main, .luxa-admin) .luxa-delivery-widget__icon {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
    }
}
