/**
 * Guest alerts inbox (#notify-inbox): recent notifications from this restaurant.
 */

body.modal-open,
body.is-notify-opening,
body.is-notify-closing {
    overflow: hidden;
}

#notify-inbox.notify-inbox-panel {
    --notify-accent: color-mix(in srgb, var(--selected-button-color3) 55%, var(--scheme-white));
    --notify-ink: var(--main-text-color);
    --notify-ink-muted: color-mix(in srgb, var(--main-text-color) 62%, transparent);
    --notify-origin-x: 92%;
    --notify-origin-y: 8%;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: var(--ttms-z-notify-inbox, 10040);
    width: 100%;
    max-width: 400px;
    height: var(--ttms-overlay-height, 100dvh);
    max-height: var(--ttms-overlay-height, 100dvh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--main-bg, #070b16);
    color: var(--notify-ink);
    box-sizing: border-box;
    border-left: 1px solid color-mix(in srgb, var(--scheme-white) 12%, transparent);
    box-shadow: 0 18px 48px color-mix(in srgb, #000 42%, transparent);
}

#notify-inbox.notify-inbox-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#notify-inbox .notify-inbox-motion {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        radial-gradient(120% 70% at 50% -5%, color-mix(in srgb, var(--scheme-surface) 50%, transparent), transparent 52%),
        linear-gradient(180deg, color-mix(in srgb, var(--main-bg) 90%, #000) 0%, var(--main-bg) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    contain: layout paint;
    isolation: isolate;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-origin: var(--notify-origin-x, 92%) var(--notify-origin-y, 8%);
}

#notify-inbox.is-notify-opening,
#notify-inbox.is-notify-closing,
#notify-inbox.notify-inbox-hidden.is-notify-opening,
#notify-inbox.notify-inbox-hidden.is-notify-closing {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    background: transparent !important;
}

#notify-inbox.is-notify-closing {
    pointer-events: none !important;
}

#notify-inbox.is-notify-opening::before,
#notify-inbox.is-notify-closing::before {
    content: '';
    position: fixed;
    inset: 0;
    background: color-mix(in srgb, var(--main-bg, #070b16) 88%, #000);
}

#notify-inbox.is-notify-opening::before {
    animation: notify-scrim-in 0.32s ease both;
}

#notify-inbox.is-notify-closing::before {
    animation: notify-scrim-out 0.26s ease both;
}

#notify-inbox.is-notify-opening .notify-inbox-motion,
#notify-inbox.is-notify-closing .notify-inbox-motion {
    will-change: transform, opacity;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#notify-inbox.is-notify-opening .notify-inbox-motion {
    animation: notify-panel-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#notify-inbox.is-notify-closing .notify-inbox-motion {
    animation: notify-panel-out 0.26s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.notify-inbox-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 4.25rem;
    padding: 0.7rem 0.85rem 0.7rem 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--scheme-white) 10%, transparent);
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--scheme-surface) 78%, color-mix(in srgb, var(--scheme-white) 8%, transparent)) 0%,
        color-mix(in srgb, var(--scheme-surface) 92%, transparent) 100%
    );
}

.notify-inbox-heading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.notify-inbox-heading__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--scheme-white) 10%, transparent);
    color: var(--notify-ink);
    flex-shrink: 0;
}

.notify-inbox-heading__icon svg {
    width: 1.05rem;
    height: 1.05rem;
}

.notify-inbox-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.notify-inbox-subtitle {
    margin: 0.1rem 0 0;
    font-size: 0.78rem;
    color: var(--notify-ink-muted);
}

.notify-inbox-header-trailing {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.notify-inbox-header .account-panel-btn,
.notify-inbox-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    min-width: 2.65rem;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--scheme-white) 16%, transparent);
    background: color-mix(in srgb, var(--scheme-white) 8%, transparent);
    color: var(--notify-ink);
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.notify-inbox-header .account-panel-btn:hover,
.notify-inbox-header .account-panel-btn:focus-visible,
.notify-inbox-close:hover,
.notify-inbox-close:focus-visible {
    background: color-mix(in srgb, var(--scheme-white) 14%, transparent);
    border-color: color-mix(in srgb, var(--scheme-white) 24%, transparent);
    outline: none;
    transform: translateY(-1px);
}

.notify-inbox-header .account-panel-btn svg,
.notify-inbox-header .account-panel-btn svg.icon,
.notify-inbox-close img,
.notify-inbox-close svg {
    width: 1.15rem;
    height: 1.15rem;
    opacity: 0.88;
    color: inherit;
    fill: currentColor;
}

body.ttms-logged-in .notify-inbox-header .account-panel-btn,
.notify-inbox-header .account-panel-btn.account-btn--signed-in {
    color: var(--scheme-success, #3dd68c);
    border-color: color-mix(in srgb, var(--scheme-success, #3dd68c) 45%, transparent);
    background: color-mix(in srgb, var(--scheme-success, #3dd68c) 12%, transparent);
}

.notify-inbox-subscribe {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid color-mix(in srgb, var(--scheme-white) 8%, transparent);
}

.notify-inbox-subscribe__copy {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--notify-ink-muted);
}

.notify-inbox-subscribe__btn {
    flex-shrink: 0;
    min-height: 2.1rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--notify-accent) 45%, transparent);
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--notify-accent) 88%, var(--scheme-white)) 0%,
        color-mix(in srgb, var(--notify-accent) 72%, #000) 100%
    );
    color: var(--main-bg, #070b16);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.notify-inbox-subscribe.is-on .notify-inbox-subscribe__btn {
    background: color-mix(in srgb, var(--scheme-white) 10%, transparent);
    border-color: color-mix(in srgb, var(--scheme-white) 18%, transparent);
    color: var(--notify-ink);
}

.notify-inbox-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.6rem 0.75rem 1rem;
}

.notify-inbox-status {
    margin: 0 0 0.7rem;
    font-size: 0.78rem;
    color: var(--notify-ink-muted);
}

.notify-inbox-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notify-inbox-item {
    margin: 0 0 0.55rem;
    animation: notify-card-in 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--i, 0) * 55ms);
}

.notify-ios {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.12rem;
    width: 100%;
    margin: 0;
    padding: 0.72rem 0.85rem 0.78rem;
    border: 0;
    border-radius: 1.2rem;
    background: color-mix(in srgb, var(--scheme-surface, #141820) 88%, var(--scheme-white));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    transition:
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.32s ease;
}

.notify-ios:hover,
.notify-ios:focus-visible {
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.notify-ios:active {
    transform: scale(0.985);
}

.notify-ios.is-unread {
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--notify-accent) 40%, transparent),
        0 10px 24px rgba(0, 0, 0, 0.18);
}

.notify-ios__meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.notify-ios__icon,
.notify-ios__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 0.38rem;
    background: var(--notify-accent);
    color: var(--main-bg, #070b16);
    flex-shrink: 0;
}

.notify-ios__step {
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: 0;
}

.notify-ios__app {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--notify-ink-muted);
}

.notify-ios__role {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.08rem 0.38rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--notify-accent) 20%, transparent);
    color: var(--notify-ink);
}

.notify-ios__time {
    margin-left: auto;
    font-size: 0.68rem;
    color: var(--notify-ink-muted);
}

.notify-ios__title {
    margin: 0.08rem 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
}

.notify-ios__body {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--notify-ink-muted);
}

.notify-inbox-item--stack {
    margin: 0 0 1.2rem;
}

.notify-stack {
    position: relative;
}

.notify-stack__pile {
    position: relative;
    max-height: 16rem;
    overflow: visible;
    opacity: 1;
    transform: none;
    transition:
        max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease,
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        margin 0.42s ease;
}

.notify-stack__peeks {
    position: absolute;
    inset: 0 0 auto;
    height: calc(100% + 0.7rem);
    pointer-events: none;
}

.notify-stack__peek {
    position: absolute;
    left: 0.72rem;
    right: 0.72rem;
    top: 0.55rem;
    height: calc(100% - 0.55rem);
    border-radius: 1.2rem;
    background: color-mix(in srgb, var(--scheme-white) 8%, var(--scheme-surface, #141820));
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
    animation: notify-peek-float 3.8s ease-in-out infinite;
}

.notify-stack__peek--1 {
    left: 0.38rem;
    right: 0.38rem;
    top: 0.3rem;
    height: calc(100% - 0.3rem);
    background: color-mix(in srgb, var(--scheme-white) 12%, var(--scheme-surface, #141820));
    animation-delay: 0.18s;
}

.notify-stack__peek--2 {
    opacity: 0.78;
}

.notify-stack__front {
    position: relative;
    z-index: 2;
}

.notify-stack__hint {
    margin-top: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--notify-accent);
}

.notify-stack__sheet {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition:
        max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.32s ease,
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.notify-stack.is-open .notify-stack__pile {
    max-height: 0;
    opacity: 0;
    margin: 0;
    overflow: hidden;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
}

.notify-stack.is-open .notify-stack__sheet {
    max-height: 92rem;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.notify-stack__sheet-label {
    margin: 0 0 0.5rem 0.15rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--notify-ink-muted);
}

.notify-stack__flow {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notify-stack__flow > li {
    position: relative;
    margin: 0 0 0.5rem;
}

.notify-stack.is-open .notify-stack__flow > li {
    animation: notify-step-in 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--i, 0) * 58ms);
}

.notify-stack__collapse {
    display: block;
    width: 100%;
    margin: 0.2rem 0 0;
    padding: 0.58rem 0.75rem;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--scheme-white) 10%, transparent);
    color: var(--notify-ink);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.24s ease,
        background 0.24s ease;
}

.notify-stack__collapse:hover,
.notify-stack__collapse:focus-visible {
    outline: none;
    transform: translateY(-1px);
    background: color-mix(in srgb, var(--scheme-white) 16%, transparent);
}

.notify-inbox-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: min(42dvh, 18rem);
    padding: 1.5rem 1rem;
    text-align: center;
}

.notify-inbox-empty__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    border: 1px dashed color-mix(in srgb, var(--scheme-white) 18%, transparent);
    color: var(--notify-ink-muted);
}

.notify-inbox-empty__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.notify-inbox-empty__hint {
    margin: 0;
    max-width: 18rem;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--notify-ink-muted);
}

.notify-inbox-manage {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.82rem;
}

.notify-inbox-manage a {
    color: var(--notify-accent);
    font-weight: 700;
    text-decoration: none;
}

.notify-inbox-manage a:hover,
.notify-inbox-manage a:focus-visible {
    text-decoration: underline;
}

.header-notify-btn-wrap,
.header-leading .header-notify-subscribe {
    position: relative;
}

.header-notify-badge {
    position: absolute;
    top: -0.15rem;
    right: -0.15rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.32rem;
    border-radius: 999px;
    background: var(--selected-button-color1, #7a1f2b);
    color: var(--header-text-color, #f6f1e6);
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.15rem;
    text-align: center;
    box-shadow: 0 0 0 2px var(--header-bg-color, #0b1c45);
}

.header-notify-badge[hidden] {
    display: none !important;
}

@keyframes notify-card-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes notify-step-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes notify-peek-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(3px);
    }
}

@keyframes notify-scrim-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes notify-scrim-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes notify-panel-in {
    0% {
        transform: scale(0.14);
        opacity: 0.55;
    }
    100% {
        transform: none;
        opacity: 1;
    }
}

@keyframes notify-panel-out {
    0% {
        transform: none;
        opacity: 1;
    }
    100% {
        transform: scale(0.14);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    #notify-inbox.notify-inbox-panel {
        max-width: 100%;
        border-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    #notify-inbox.is-notify-opening::before,
    #notify-inbox.is-notify-closing::before,
    #notify-inbox.is-notify-opening .notify-inbox-motion,
    #notify-inbox.is-notify-closing .notify-inbox-motion,
    .notify-inbox-item,
    .notify-stack__peek,
    .notify-stack.is-open .notify-stack__flow > li {
        animation: none;
    }

    .notify-ios,
    .notify-stack__pile,
    .notify-stack__sheet,
    .notify-stack__collapse {
        transition: none;
    }

    .notify-ios:hover,
    .notify-ios:focus-visible,
    .notify-ios:active,
    .notify-stack__collapse:hover,
    .notify-stack__collapse:focus-visible {
        transform: none;
    }
}
