/* "Online ordering is closed" bottom sheet (js/quick-view.js openClosedSheet). Shown when the
   kassa has switched online ordering off and a guest tries to add a dish. Above the dish pop-up. */
.so-closed-sheet {
    --cs-paper: #fff;
    --cs-ink: #1d1b1a;
    --cs-text: #4a4542;
    --cs-muted: #6b6560;
    --cs-line: #ece8e4;
    --cs-grab: #d9d4cf;
    --cs-shade: rgba(20, 16, 14, 0.45);
    --cs-brand: var(--brand-primary, #c41e3a);
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
:root[data-saigon-theme="dark"] .so-closed-sheet {
    --cs-paper: #1c1e21;
    --cs-ink: #f2f0ee;
    --cs-text: #d6d2ce;
    --cs-muted: #a8a29d;
    --cs-line: #33363a;
    --cs-grab: #4a4d52;
    --cs-shade: rgba(0, 0, 0, 0.6);
}
.so-closed-sheet[hidden] {
    display: none;
}
.so-closed-sheet-shade {
    position: absolute;
    inset: 0;
    background: var(--cs-shade);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.so-closed-sheet-panel {
    position: relative;
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
    background: var(--cs-paper);
    color: var(--cs-ink);
    border-radius: 20px 20px 0 0;
    padding: 12px max(22px, env(safe-area-inset-right, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)) max(22px, env(safe-area-inset-left, 0px));
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
    transform: translateY(100%);
    transition: transform 0.22s ease-out;
}
.so-closed-sheet-panel:focus {
    outline: none;
}
.so-closed-sheet--open .so-closed-sheet-shade {
    opacity: 1;
}
.so-closed-sheet--open .so-closed-sheet-panel {
    transform: translateY(0);
}
.so-closed-sheet-grab {
    width: 40px;
    height: 5px;
    border-radius: 3px;
    background: var(--cs-grab);
    margin: 0 auto 18px;
}
.so-closed-sheet-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.so-closed-sheet-head--logo {
    justify-content: center;
    margin-bottom: 18px;
}
.so-closed-sheet-logo {
    flex: none;
    display: block;
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}
.so-closed-sheet-mark {
    flex: none;
    min-width: 44px;
    height: 44px;
    padding: 0 6px;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    background: var(--cs-brand);
    color: #fff;
    border-radius: 4px;
    font-family: "Noto Serif TC", "Songti TC", "Noto Serif CJK TC", serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}
.so-closed-sheet-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--cs-ink);
}
.so-closed-sheet-msg {
    margin: 0 0 18px;
    font-size: 19px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--cs-ink);
}
.so-closed-sheet-addr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    margin-bottom: 18px;
    border-top: 1px solid var(--cs-line);
    border-bottom: 1px solid var(--cs-line);
    font-size: 15px;
    color: var(--cs-text);
}
.so-closed-sheet-addr span {
    min-width: 0;
}
.so-closed-sheet-addr a {
    flex: none;
    color: var(--cs-brand);
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--cs-brand);
    border-radius: 999px;
    padding: 6px 14px;
}
.so-closed-sheet-ok {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 15px;
    background: var(--cs-brand);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
}
.so-closed-sheet-ok:focus-visible,
.so-closed-sheet-addr a:focus-visible {
    outline: 3px solid var(--cs-brand);
    outline-offset: 3px;
}
html.so-closed-sheet-lock,
html.so-closed-sheet-lock body {
    overflow: hidden;
}
@media (min-width: 768px) {
    .so-closed-sheet {
        align-items: center;
    }
    .so-closed-sheet-panel {
        border-radius: 16px;
        padding-bottom: 22px;
    }
    .so-closed-sheet-grab {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .so-closed-sheet-shade,
    .so-closed-sheet-panel {
        transition: none;
    }
}
