/* MenuFlow Public Checkout Branch + Scheduling UX v3 */
.checkout-branch-context {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--brand) 20%, #dfe9e5);
    border-radius: 13px;
    background: color-mix(in srgb, var(--brand) 5%, #fff);
}
.checkout-branch-context-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 11%, #fff);
}
.checkout-branch-context-copy { min-width: 0; display: grid; gap: 2px; }
.checkout-branch-context-copy small { color: #71807a; font-size: 9.5px; font-weight: 800; }
.checkout-branch-context-copy strong { overflow: hidden; color: #17231f; font-size: 13px; font-weight: 950; text-overflow: ellipsis; white-space: nowrap; }
.checkout-branch-context-copy span { color: #71807a; font-size: 9.5px; line-height: 1.5; }
.checkout-branch-change {
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid color-mix(in srgb, var(--brand) 20%, #dfe9e5);
    border-radius: 10px;
    color: var(--brand);
    background: #fff;
    font: inherit;
    font-size: 10.5px;
    font-weight: 900;
    cursor: pointer;
}
.checkout-branch-change:hover { background: color-mix(in srgb, var(--brand) 6%, #fff); }

.checkout-timing-field { gap: 8px !important; }
.checkout-timing-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.checkout-timing-choice { position: relative; cursor: pointer; }
.checkout-timing-choice > input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.checkout-timing-choice > span {
    min-height: 60px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px;
    grid-template-areas: "title check" "hint check";
    gap: 2px 8px;
    align-items: center;
    padding: 10px 11px;
    border: 1px solid #dde7e3;
    border-radius: 11px;
    background: #fff;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.checkout-timing-choice b { grid-area: title; color: #22302b; font-size: 11.5px; font-weight: 950; }
.checkout-timing-choice small { grid-area: hint; color: #7c8783; font-size: 9.5px; line-height: 1.4; }
.checkout-timing-choice i {
    grid-area: check;
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    border: 1px solid #cbd8d3;
    border-radius: 50%;
    color: transparent;
    font-size: 10px;
    font-style: normal;
}
.checkout-timing-choice > input:checked + span {
    border-color: color-mix(in srgb, var(--brand) 60%, #cdd8d4);
    background: color-mix(in srgb, var(--brand) 5%, #fff);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 6%, transparent);
}
.checkout-timing-choice > input:checked + span i { color: #fff; border-color: var(--brand); background: var(--brand); }
.checkout-timing-choice > input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 18%, transparent); outline-offset: 2px; }
.checkout-scheduled-panel {
    display: grid;
    gap: 7px;
    padding: 10px;
    border: 1px solid #e1e9e6;
    border-radius: 11px;
    background: #fbfdfc;
}
.checkout-scheduled-panel[hidden] { display: none !important; }
.checkout-scheduled-panel > label { color: #34423d; font-size: 10px; font-weight: 900; }

.theme-dark .checkout-branch-context,
.menu-display-dark_visual_grid .checkout-branch-context {
    border-color: #35453e;
    background: #17221e;
}
.theme-dark .checkout-branch-context-icon,
.menu-display-dark_visual_grid .checkout-branch-context-icon { background: #21312a; }
.theme-dark .checkout-branch-context-copy strong,
.menu-display-dark_visual_grid .checkout-branch-context-copy strong { color: #f3f6f4; }
.theme-dark .checkout-branch-context-copy small,
.theme-dark .checkout-branch-context-copy span,
.menu-display-dark_visual_grid .checkout-branch-context-copy small,
.menu-display-dark_visual_grid .checkout-branch-context-copy span { color: #9aa8a2; }
.theme-dark .checkout-branch-change,
.menu-display-dark_visual_grid .checkout-branch-change { color: #e9f2ee; border-color: #3c4c45; background: #1e2b26; }
.theme-dark .checkout-timing-choice > span,
.menu-display-dark_visual_grid .checkout-timing-choice > span { border-color: #35443e; background: #19241f; }
.theme-dark .checkout-timing-choice b,
.menu-display-dark_visual_grid .checkout-timing-choice b { color: #f1f5f3; }
.theme-dark .checkout-timing-choice small,
.menu-display-dark_visual_grid .checkout-timing-choice small { color: #9aa6a1; }
.theme-dark .checkout-scheduled-panel,
.menu-display-dark_visual_grid .checkout-scheduled-panel { border-color: #35443e; background: #17221e; }
.theme-dark .checkout-scheduled-panel > label,
.menu-display-dark_visual_grid .checkout-scheduled-panel > label { color: #e9f0ed; }

@media (max-width: 520px) {
    .checkout-branch-context { grid-template-columns: 38px minmax(0, 1fr); }
    .checkout-branch-context-icon { width: 38px; height: 38px; }
    .checkout-branch-change { grid-column: 1 / -1; width: 100%; }
    .checkout-timing-options { grid-template-columns: 1fr; }
}