/* Logical properties so the layout mirrors correctly in Persian / RTL. */
.transit-shipping-method-icon {
    vertical-align: middle;
    max-height: 1.5em;
    width: auto;
    margin-inline-end: 6px;
}

.transit-shipping-method-description {
    display: block;
    margin-block-start: 4px;
    margin-inline-start: 0;
    font-size: 0.9em;
    opacity: 0.9;
}

/* =====================================================================
 * Shipment panel and the public lookup form.
 *
 * Both are drawn from the tokens in transit-ui.css, like the address picker
 * and the thank-you note. What was here before was a green info box with its
 * own hard-coded palette — #e8f5e9 on #a5d6a7 — which belonged to no other
 * surface in the plugin and to no theme it lands in.
 *
 * Two class names in most selectors: enough to hold against a theme's
 * "body.woocommerce p" without reaching for !important, so a shop's own CSS
 * can still win when it wants to.
 * ===================================================================== */

/* State the graphic carries in colour, said in words for a screen reader. */
.transit-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.transit-track {
    box-sizing: border-box;
    margin-block: 1.75rem;
    padding: 1.15rem 1.25rem 1.25rem;
    border: 1px solid var(--transit-line);
    border-radius: var(--transit-radius-card);
    background: var(--transit-paper);
    color: var(--transit-ink);
    font-size: 0.95rem;
    line-height: 1.7;
}

.transit-track .transit-track__title {
    margin: 0 0 1rem;
    color: var(--transit-ink);
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: normal;
    line-height: 1.4;
    text-transform: none;
}

/* Which order answered the lookup form. */
.transit-track .transit-track__order {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.85rem;
    margin: -0.55rem 0 1.1rem;
    color: var(--transit-muted);
    font-size: var(--transit-font-sm);
}

.transit-track .transit-track__order-number {
    color: var(--transit-ink);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.transit-track .transit-track__status {
    padding: 0.1rem 0.55rem;
    border-radius: var(--transit-radius-chip);
    background: var(--transit-wash);
    color: var(--transit-ink);
}

.transit-track .transit-track__closed {
    margin: 0 0 1rem;
    color: var(--transit-muted);
    font-size: var(--transit-font-sm);
}

/* ---------------------------------------------------------------------
 * The four steps.
 *
 * A grid of equal columns rather than flex, so the dots sit on a regular
 * pitch whatever the labels are; the rail between them is drawn by each
 * step after the first, reaching back half a column to the previous dot.
 * Filling the rail on the step it leads into means a run of done steps
 * joins up on its own, with no "which segment is this" arithmetic.
 * ------------------------------------------------------------------- */
.transit-track .transit-track__steps {
    display: grid;
    grid-template-columns: repeat(var(--transit-track-steps, 4), 1fr);
    margin: 0 0 1.3rem;
    padding: 0;
    list-style: none;
}

.transit-track .transit-track__step {
    position: relative;
    margin: 0;
    padding: 1.75rem 0.2rem 0;
    color: var(--transit-muted);
    font-size: 0.82rem;
    line-height: 1.4;
    text-align: center;
    list-style: none;
    overflow-wrap: anywhere;
}

/*
 * Raised above the rails. Each rail belongs to the step it leads into, so it
 * reaches back over the previous step's dot — and being a later sibling, it
 * painted on top of it: a grey slash across a finished dot, and a line drawn
 * straight through the hollow one. No z-index on the step itself, which would
 * make each one its own stacking context and put the dots back underneath.
 */
.transit-track .transit-track__marker {
    position: absolute;
    z-index: 1;
    inset-block-start: 0.3rem;
    /* Centred with auto margins, not a transform: it mirrors for free in RTL. */
    inset-inline: 0;
    width: 14px;
    height: 14px;
    margin-inline: auto;
    border: 2px solid var(--transit-line-strong);
    border-radius: 50%;
    background: var(--transit-paper);
}

.transit-track .transit-track__step + .transit-track__step::before {
    content: "";
    position: absolute;
    /* The dot's vertical centre: 0.3rem from the top, plus half of 14px. */
    inset-block-start: calc(0.3rem + 6px);
    inset-inline-end: 50%;
    inset-inline-start: -50%;
    height: 2px;
    background: var(--transit-line);
}

.transit-track .transit-track__step.is-done::before {
    background: var(--transit-seal);
}

.transit-track .transit-track__step.is-done .transit-track__marker {
    border-color: var(--transit-seal);
    background: var(--transit-seal);
}

.transit-track .transit-track__step.is-current .transit-track__marker {
    border-color: var(--transit-seal);
    box-shadow: 0 0 0 3px var(--transit-focus);
}

/* A finished order: the last step is both done and the latest word on it. */
.transit-track .transit-track__step.is-done.is-current .transit-track__marker {
    background: var(--transit-seal);
}

.transit-track .transit-track__step-label {
    display: block;
}

.transit-track .transit-track__step.is-done .transit-track__step-label,
.transit-track .transit-track__step.is-current .transit-track__step-label {
    color: var(--transit-ink);
    font-weight: 600;
}

.transit-track .transit-track__step-date {
    display: block;
    margin-block-start: 0.15rem;
    color: var(--transit-muted);
    font-size: 0.92em;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* ---------------------------------------------------------------------
 * The code itself.
 * ------------------------------------------------------------------- */
.transit-track .transit-track__code-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
    box-sizing: border-box;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--transit-line);
    border-radius: var(--transit-radius-control);
    background: var(--transit-wash);
}

.transit-track .transit-track__code-label {
    flex: 1 0 100%;
    color: var(--transit-muted);
    font-size: var(--transit-font-sm);
    font-weight: 600;
}

/*
 * Isolated and set LTR: a code typed into a Persian paragraph comes out
 * reordered otherwise. Tabular figures because this is a number someone reads
 * aloud, digit by digit, against a text message.
 */
.transit-track .transit-track__code {
    flex: 1 1 12ch;
    min-width: 0;
    padding: 0.35rem 0.6rem;
    border-radius: var(--transit-radius-chip);
    background: var(--transit-paper);
    color: var(--transit-ink);
    direction: ltr;
    unicode-bidi: isolate;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
}

.transit-track .transit-track__copy {
    box-sizing: border-box;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--transit-seal);
    border-radius: var(--transit-radius-control);
    background: var(--transit-seal);
    color: var(--transit-seal-ink);
    font-family: inherit;
    font-size: var(--transit-font-sm);
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.transit-track .transit-track__copy:hover,
.transit-track .transit-track__copy:focus {
    background: var(--transit-seal-hover);
    border-color: var(--transit-seal-hover);
    color: var(--transit-seal-ink);
}

.transit-track .transit-track__copy:focus-visible {
    outline: 2px solid var(--transit-seal);
    outline-offset: 2px;
}

.transit-track .transit-track__copy.is-copied {
    border-color: var(--transit-seal-hover);
    background: var(--transit-seal-hover);
}

.transit-track .transit-track__copy.is-failed {
    border-color: var(--transit-lacquer);
    background: var(--transit-lacquer);
}

/* ---------------------------------------------------------------------
 * Carrier, dates, and the one link that can answer for the code.
 * ------------------------------------------------------------------- */
.transit-track .transit-track__meta {
    display: grid;
    gap: 0.3rem;
    margin: 0.95rem 0 0;
}

.transit-track .transit-track__meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.6rem;
}

.transit-track .transit-track__meta dt {
    margin: 0;
    color: var(--transit-muted);
    font-size: var(--transit-font-sm);
    font-weight: 500;
}

.transit-track .transit-track__meta dd {
    margin: 0;
    color: var(--transit-ink);
    font-size: var(--transit-font-sm);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.transit-track .transit-track__actions {
    margin: 1.05rem 0 0;
}

.transit-track .transit-track__link {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: var(--transit-control);
    padding-inline: 1.05rem;
    border: 1px solid var(--transit-seal);
    border-radius: var(--transit-radius-control);
    background: transparent;
    color: var(--transit-seal);
    font-size: var(--transit-font);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.transit-track .transit-track__link:hover,
.transit-track .transit-track__link:focus {
    background: var(--transit-seal);
    color: var(--transit-seal-ink);
    text-decoration: none;
}

.transit-track .transit-track__link:focus-visible {
    outline: 2px solid var(--transit-seal);
    outline-offset: 2px;
}

.transit-track .transit-track__carriers {
    margin-block-start: 1.05rem;
}

.transit-track .transit-track__carriers-hint {
    margin: 0 0 0.5rem;
    color: var(--transit-muted);
    font-size: var(--transit-font-sm);
}

.transit-track .transit-track__carrier-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.transit-track .transit-track__carrier-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.transit-track .transit-track__carrier-list a {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--transit-line-strong);
    border-radius: var(--transit-radius-chip);
    color: var(--transit-ink);
    font-size: var(--transit-font-sm);
    text-decoration: none;
}

.transit-track .transit-track__carrier-list a:hover,
.transit-track .transit-track__carrier-list a:focus {
    border-color: var(--transit-seal);
    color: var(--transit-seal);
}

/* ---------------------------------------------------------------------
 * The public lookup form.
 * ------------------------------------------------------------------- */
.transit-track-form {
    box-sizing: border-box;
    max-inline-size: 26rem;
    margin-block: 1.5rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--transit-line);
    border-radius: var(--transit-radius-card);
    background: var(--transit-paper);
    color: var(--transit-ink);
}

.transit-track-form .transit-track-form__field {
    margin: 0 0 0.95rem;
}

.transit-track-form label {
    display: block;
    margin-block-end: 0.35rem;
    color: var(--transit-ink);
    font-size: var(--transit-font-sm);
    font-weight: 600;
}

.transit-track-form input[type="text"] {
    box-sizing: border-box;
    width: 100%;
    height: var(--transit-control);
    padding-inline: 12px;
    border: 1px solid var(--transit-line);
    border-radius: var(--transit-radius-control);
    background: var(--transit-paper);
    color: var(--transit-ink);
    font-family: inherit;
    font-size: var(--transit-font);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.transit-track-form input[type="text"]:focus {
    border-color: var(--transit-seal);
    box-shadow: 0 0 0 3px var(--transit-focus);
    outline: none;
}

.transit-track-form .transit-track-form__hint {
    display: block;
    margin-block-start: 0.3rem;
    color: var(--transit-muted);
    font-size: var(--transit-font-sm);
    font-weight: 400;
}

.transit-track-form .transit-track-form__error {
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--transit-lacquer);
    border-radius: var(--transit-radius-control);
    background: #fdf3f4;
    background: color-mix(in srgb, var(--transit-lacquer) 7%, #fff);
    color: var(--transit-lacquer);
    font-size: var(--transit-font-sm);
}

/*
 * The honeypot. Off-screen rather than display:none, because the scripts this
 * is meant for read the computed style and skip anything hidden outright.
 */
.transit-track-form .transit-track-form__trap {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
}

.transit-track-form .transit-track-form__actions {
    margin: 0;
}

.transit-track-form .transit-track-form__submit {
    box-sizing: border-box;
    min-height: var(--transit-control);
    padding-inline: 1.3rem;
    border: 1px solid var(--transit-seal);
    border-radius: var(--transit-radius-control);
    background: var(--transit-seal);
    color: var(--transit-seal-ink);
    font-family: inherit;
    font-size: var(--transit-font);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.transit-track-form .transit-track-form__submit:hover,
.transit-track-form .transit-track-form__submit:focus {
    background: var(--transit-seal-hover);
    border-color: var(--transit-seal-hover);
    color: var(--transit-seal-ink);
}

.transit-track-form .transit-track-form__submit:focus-visible {
    outline: 2px solid var(--transit-seal);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .transit-track {
        padding: 1rem;
    }

    .transit-track .transit-track__step {
        padding-block-start: 1.6rem;
        font-size: 0.76rem;
    }

    .transit-track .transit-track__code-row {
        padding: 0.65rem 0.7rem;
    }

    .transit-track .transit-track__copy,
    .transit-track .transit-track__link,
    .transit-track-form .transit-track-form__submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .transit-track .transit-track__copy,
    .transit-track .transit-track__link,
    .transit-track-form input[type="text"],
    .transit-track-form .transit-track-form__submit {
        transition: none;
    }
}

.transit-processing-time-meta {
    display: block;
    margin-top: 6px;
}

.transit-processing-time-meta .transit-processing-time-label {
    font-weight: 600;
}

.woocommerce-checkout .transit-processing-time th,
.woocommerce-cart .transit-processing-time th {
    font-weight: 700;
}

/* Block cart and checkout: the same row, inside the order summary totals. */
.transit-processing-time-block {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.transit-processing-time-block .wc-block-components-totals-item__label {
    font-weight: 700;
}

/*
 * The block checkout pads its summary rows through the inner blocks' own
 * wrapper — ".checkout-order-summary-block-fill .wc-block-components-totals-item"
 * gets 16px on each side. This row is rendered from the order-meta slot
 * instead, and that wrapper only carries WooCommerce's "padding: 16px 0", so
 * the label and the value sat flush against the card's edges while every row
 * above them was inset.
 *
 * Checkout only: the block cart deliberately zeroes the side padding on its
 * own summary rows, and this row already lines up with them there.
 */
.wp-block-woocommerce-checkout-order-summary-block .transit-processing-time-block {
    padding-left: 16px;
    padding-right: 16px;
}

.transit-pickup-store-block {
    margin-top: 16px;
}

.transit-pickup-store-map,
.transit-pickup-map-wrap {
    height: 280px;
    width: 100%;
    margin-top: 12px;
}

/* =====================================================================
 * The shop's note on the order-received page.
 *
 * What this is: whatever the shop typed into Thank you page content —
 * usually when they will call to confirm, the delivery window, a phone
 * number. It lands under WooCommerce's receipt, which is a wall of grey
 * table rows, so the note is set on a wash panel: clearly the shop talking
 * rather than more order data, without shouting over the confirmation.
 *
 * Deliberately no seal edge-bar here. That bar means "this is the address
 * the parcel goes to" on the picker; reusing it as decoration would cost it
 * that meaning. The identity carries through the palette and the seal-inked
 * links and list markers instead.
 *
 * The content is author-written rich text — headings, lists, links, a table
 * if they paste one — so every element it can contain is set here.
 *
 * Three class names in every selector, which is what the markup carries and
 * what it takes to hold: a theme writing "body.woocommerce .woocommerce-order
 * h3" lands at 0,2,2 and took the headings back when these rules named two.
 * At 0,3,1 they hold. Specificity rather than !important, so a shop's own CSS
 * can still win.
 * ===================================================================== */
.transit-note.transit-note--thankyou.transit-thankyou-content {
    box-sizing: border-box;
    margin-block: 1.75rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--transit-line);
    border-radius: var(--transit-radius-card);
    background: var(--transit-wash);
    color: var(--transit-ink);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* A measure short enough to read; Persian body text wants the leading above. */
.transit-note.transit-note--thankyou.transit-thankyou-content > * {
    max-inline-size: 68ch;
}

.transit-note.transit-note--thankyou.transit-thankyou-content > :first-child {
    margin-block-start: 0;
}

.transit-note.transit-note--thankyou.transit-thankyou-content > :last-child {
    margin-block-end: 0;
}

.transit-note.transit-note--thankyou.transit-thankyou-content p {
    margin-block: 0 0.85em;
    color: var(--transit-ink);
    font-size: inherit;
    line-height: inherit;
}

.transit-note.transit-note--thankyou.transit-thankyou-content h2,
.transit-note.transit-note--thankyou.transit-thankyou-content h3,
.transit-note.transit-note--thankyou.transit-thankyou-content h4,
.transit-note.transit-note--thankyou.transit-thankyou-content h5,
.transit-note.transit-note--thankyou.transit-thankyou-content h6 {
    margin-block: 1.5em 0.5em;
    color: var(--transit-ink);
    font-family: inherit;
    font-weight: 600;
    letter-spacing: normal;
    line-height: 1.45;
    text-transform: none;
}

.transit-note.transit-note--thankyou.transit-thankyou-content h2 {
    font-size: 1.05rem;
}

.transit-note.transit-note--thankyou.transit-thankyou-content h3 {
    font-size: 0.98rem;
}

.transit-note.transit-note--thankyou.transit-thankyou-content h4,
.transit-note.transit-note--thankyou.transit-thankyou-content h5,
.transit-note.transit-note--thankyou.transit-thankyou-content h6 {
    font-size: 0.92rem;
}

.transit-note.transit-note--thankyou.transit-thankyou-content strong,
.transit-note.transit-note--thankyou.transit-thankyou-content b {
    color: var(--transit-ink);
    font-weight: 600;
}

.transit-note.transit-note--thankyou.transit-thankyou-content a {
    color: var(--transit-seal);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.transit-note.transit-note--thankyou.transit-thankyou-content a:hover,
.transit-note.transit-note--thankyou.transit-thankyou-content a:focus {
    color: var(--transit-seal-hover);
}

.transit-note.transit-note--thankyou.transit-thankyou-content a:focus-visible {
    outline: 2px solid var(--transit-seal);
    outline-offset: 2px;
    border-radius: 2px;
}

.transit-note.transit-note--thankyou.transit-thankyou-content ul,
.transit-note.transit-note--thankyou.transit-thankyou-content ol {
    margin-block: 0 0.85em;
    padding-inline-start: 1.35em;
}

.transit-note.transit-note--thankyou.transit-thankyou-content li {
    margin-block-end: 0.3em;
}

.transit-note.transit-note--thankyou.transit-thankyou-content li::marker {
    color: var(--transit-seal);
}

.transit-note.transit-note--thankyou.transit-thankyou-content li:last-child {
    margin-block-end: 0;
}

/* Nested lists tighten instead of repeating the block spacing. */
.transit-note.transit-note--thankyou.transit-thankyou-content li > ul,
.transit-note.transit-note--thankyou.transit-thankyou-content li > ol {
    margin-block: 0.3em 0;
}

.transit-note.transit-note--thankyou.transit-thankyou-content blockquote {
    margin-block: 0 0.85em;
    margin-inline: 0;
    padding-inline-start: 0.9em;
    border-inline-start: 2px solid var(--transit-line-strong);
    color: var(--transit-muted);
    font-style: normal;
}

.transit-note.transit-note--thankyou.transit-thankyou-content hr {
    height: 0;
    margin-block: 1.25em;
    border: 0;
    border-top: 1px solid var(--transit-line);
}

.transit-note.transit-note--thankyou.transit-thankyou-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--transit-radius-control);
}

/*
 * Codes are the one thing in here that must not be reordered: a phone number
 * or a tracking code typed as 021-86556965 comes out as 86556965-021 when the
 * bidi algorithm runs it inside a Persian paragraph. Isolated and set LTR, the
 * way the card already treats a postcode.
 */
.transit-note.transit-note--thankyou.transit-thankyou-content code,
.transit-note.transit-note--thankyou.transit-thankyou-content kbd {
    display: inline-block;
    padding: 0.1em 0.35em;
    border-radius: var(--transit-radius-chip);
    background: var(--transit-paper);
    color: var(--transit-ink);
    font-size: 0.9em;
    direction: ltr;
    unicode-bidi: isolate;
}

/*
 * A pasted table is the one thing here that can be wider than the panel, so
 * it scrolls inside its own box rather than pushing the page sideways.
 */
.transit-note.transit-note--thankyou.transit-thankyou-content table {
    display: block;
    max-inline-size: 100%;
    margin-block: 0 0.85em;
    border-collapse: collapse;
    overflow-x: auto;
    font-size: 0.92rem;
}

.transit-note.transit-note--thankyou.transit-thankyou-content th,
.transit-note.transit-note--thankyou.transit-thankyou-content td {
    padding: 0.45em 0.7em;
    border: 1px solid var(--transit-line);
    background: var(--transit-paper);
    text-align: start;
}

.transit-note.transit-note--thankyou.transit-thankyou-content th {
    color: var(--transit-ink);
    font-weight: 600;
}

/*
 * Numbers the shopper checks against a message or a receipt — an order
 * number, a phone number, a tracking code — in tabular figures, the same as
 * the postcode on the address card.
 */
.transit-note.transit-note--thankyou.transit-thankyou-content code,
.transit-note.transit-note--thankyou.transit-thankyou-content td {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

@media (max-width: 480px) {
    .transit-note.transit-note--thankyou.transit-thankyou-content {
        margin-block: 1.25rem;
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .transit-note.transit-note--thankyou.transit-thankyou-content a {
        transition: none;
    }
}

/* =====================================================================
 * Free-shipping progress bar
 * ===================================================================== */
.transit-fsbar {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--transit-line);
    border-radius: var(--transit-radius-control);
    background: var(--transit-wash);
    color: var(--transit-ink);
}

.transit-fsbar[hidden] {
    display: none;
}

.transit-fsbar .transit-fsbar__text {
    margin: 0 0 0.5rem;
    font-size: var(--transit-font);
    line-height: 1.6;
}

.transit-fsbar .transit-fsbar__track {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--transit-line);
}

.transit-fsbar .transit-fsbar__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--transit-seal);
    transition: width 0.3s ease;
}

.transit-fsbar.is-qualified {
    border-color: var(--transit-seal);
}

.transit-fsbar--mini-cart {
    margin: 0.5rem 0;
    padding: 0.5rem 0.75rem;
}

.transit-fsbar--block {
    margin: 0 16px 16px;
}

/* =====================================================================
 * Delivery time and arrival estimates
 * ===================================================================== */
/*
 * The picker: the chosen day and time on one line, a strip of day cards, and
 * the windows of the day in focus as radio rows. Every rule names two plugin
 * classes so a theme's bare button and label styles do not reach in.
 */
.transit-slot-picker {
    margin: 0 0 1.5rem;
    color: var(--transit-ink);
}

.transit-slot-picker[hidden],
.transit-slot-blocks-root[hidden] {
    display: none;
}

.transit-slot-picker .transit-slot-picker__title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.transit-slot-picker .transit-slot-picker__title .required {
    border: 0;
    color: var(--transit-lacquer);
    text-decoration: none;
}

.transit-slot-picker .transit-slot-picker__summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 1rem;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}

.transit-slot-picker .transit-slot-picker__icon {
    flex: 0 0 auto;
    color: var(--transit-ink);
}

/*
 * One row of cards that scrolls sideways, however many days are offered. The
 * line under it separates the days from the hours of the day in focus.
 */
.transit-slot-picker .transit-slot-days {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 2px 2px 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    border-bottom: 1px solid var(--transit-line);
}

.transit-slot-picker .transit-slot-day {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 100px;
    min-height: 0;
    margin: 0;
    padding: 14px 10px;
    border: 1px solid var(--transit-line);
    border-radius: 10px;
    background: var(--transit-paper);
    box-shadow: none;
    color: var(--transit-muted);
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    scroll-snap-align: start;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.transit-slot-picker .transit-slot-day:hover {
    border-color: var(--transit-line-strong);
    background: var(--transit-paper);
    color: var(--transit-ink);
}

.transit-slot-picker .transit-slot-day.is-active {
    border-color: var(--transit-ink);
    box-shadow: inset 0 0 0 1px var(--transit-ink);
    color: var(--transit-ink);
}

.transit-slot-picker .transit-slot-day:focus-visible {
    outline: 2px solid var(--transit-seal);
    outline-offset: 2px;
}

.transit-slot-picker .transit-slot-day__name {
    font-size: 15px;
}

.transit-slot-picker .transit-slot-day.is-active .transit-slot-day__name {
    font-weight: 700;
}

.transit-slot-picker .transit-slot-day__date {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.transit-slot-picker .transit-slot-day__num {
    font-size: 22px;
    line-height: 1;
}

.transit-slot-picker .transit-slot-day.is-active .transit-slot-day__num {
    font-weight: 700;
}

.transit-slot-picker .transit-slot-windows[hidden] {
    display: none;
}

.transit-slot-picker .transit-slot-window {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 16px 4px;
    border-bottom: 1px solid var(--transit-line);
    color: var(--transit-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
}

/*
 * The native radio stays in the page for the keyboard, the screen reader and
 * the posted form; the ring beside it is what is seen.
 */
.transit-slot-picker .transit-slot-window__input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.transit-slot-picker .transit-slot-window__mark {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 22px;
    height: 22px;
    border: 2px solid var(--transit-line-strong);
    border-radius: 50%;
    background: var(--transit-paper);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.transit-slot-picker .transit-slot-window__input:checked + .transit-slot-window__mark {
    border-color: var(--transit-seal);
    box-shadow: inset 0 0 0 4px var(--transit-paper), inset 0 0 0 11px var(--transit-seal);
}

.transit-slot-picker .transit-slot-window__input:focus-visible + .transit-slot-window__mark {
    outline: 2px solid var(--transit-seal);
    outline-offset: 2px;
}

.transit-slot-picker .transit-slot-empty {
    margin: 0;
    color: var(--transit-lacquer);
    font-size: var(--transit-font-sm);
}

@media (prefers-reduced-motion: reduce) {
    .transit-slot-picker .transit-slot-day,
    .transit-slot-picker .transit-slot-window__mark {
        transition: none;
    }
}

.transit-eta {
    display: block;
    margin-block-start: 2px;
    color: var(--transit-muted);
    font-size: var(--transit-font-sm);
}

.transit-eta--order,
.transit-slot-note {
    margin: 0.75rem 0;
    color: var(--transit-ink);
    font-size: var(--transit-font);
}

/* =====================================================================
 * The courier on the way, on the customer's order
 * ===================================================================== */
.transit-live {
    margin-block-start: 1rem;
    padding-block-start: 1rem;
    border-top: 1px solid var(--transit-line);
}

.transit-live[hidden] {
    display: none;
}

.transit-live .transit-live__title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.transit-live .transit-live__text {
    margin: 0 0 0.5rem;
    color: var(--transit-muted);
    font-size: var(--transit-font-sm);
}

.transit-live .transit-live__map {
    height: 220px;
    border-radius: var(--transit-radius-control);
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .transit-fsbar .transit-fsbar__fill {
        transition: none;
    }
}
