/* ===== 每日活動通知邀請卡（st-push-subscribe.js + _PushInviteModal.cshtml）=====
   底部 slide-up sheet，與 st-a2hs 同一套視覺語言。
   子站 layout 不載 editorial 變數，故所有 var() 皆帶 fallback 值。 */
.st-push {
    position: fixed;
    inset: 0;
    z-index: 1080; /* 高於 sticky header 與 cookie banner */
}
.st-push__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 21, 48, .55);
    opacity: 0;
    transition: opacity .25s ease;
    border: none;
}
.st-push__sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 82vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--paper, #F8F4ED);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 32px rgba(26, 21, 48, .25);
    transform: translateY(100%);
    transition: transform .25s ease;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}
.st-push.is-open .st-push__backdrop { opacity: 1; }
.st-push.is-open .st-push__sheet    { transform: translateY(0); }

.st-push__head {
    padding: 20px 20px 6px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.st-push__bell {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold, #C8A45C);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.st-push__bell svg { width: 24px; height: 24px; }
.st-push__title {
    margin: 2px 0 0;
    font-family: var(--font-display, serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink-deep, #1A1530);
}
.st-push__sub {
    margin: 4px 0 0;
    font-size: .85rem;
    line-height: 1.55;
    color: var(--ink-mute, #6E6388);
}

/* 通知預覽（模擬一則實際推播的長相） */
.st-push__preview {
    margin: 12px 20px 4px;
    background: #fff;
    border: 1px solid var(--paper-edge, #E2D9C4);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 2px 8px rgba(26, 21, 48, .08);
}
.st-push__preview-app {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    color: var(--ink-mute, #6E6388);
    margin-bottom: 6px;
}
.st-push__preview-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: var(--ink-deep, #1A1530);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold, #C8A45C);
    font-size: .5rem;
    font-weight: 700;
}
.st-push__preview-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--ink-deep, #1A1530);
    margin: 0 0 4px;
}
.st-push__preview-body {
    font-size: .82rem;
    color: var(--ink, #2A2240);
    line-height: 1.6;
    margin: 0;
    white-space: pre-line;
}

.st-push__note {
    margin: 10px 20px 4px;
    font-size: .78rem;
    color: var(--ink-mute, #6E6388);
}
.st-push__actions {
    display: flex;
    gap: 10px;
    padding: 12px 20px 8px;
}
.st-push__btn {
    flex: 1;
    min-height: 48px; /* 行動端觸控目標 */
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}
.st-push__btn--primary {
    border: none;
    background: var(--ink-deep, #1A1530);
    color: #fff;
}
.st-push__btn--mute {
    border: 1px solid var(--paper-edge, #E2D9C4);
    background: transparent;
    color: var(--ink-mute, #6E6388);
}
/* 訂閱成功 toast（自帶樣式不依賴 Swal，子站 layout 也可用） */
.st-push-toast {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translate(-50%, 12px);
    z-index: 1090;
    max-width: min(90vw, 360px);
    background: var(--ink-deep, #1A1530);
    color: #fff;
    font-size: .9rem;
    line-height: 1.5;
    padding: 10px 18px;
    border-radius: 999px;
    box-shadow: 0 6px 24px rgba(26, 21, 48, .3);
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
    text-align: center;
}
.st-push-toast.is-show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.st-push__later {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 0 10px;
    padding: 6px;
    font-size: .85rem;
    color: var(--ink-mute, #6E6388);
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
