/* ============ Site-wide Important Notice modal (ink + gold, FA5) ============ */
.tv-notice-overlay {
    position: fixed; inset: 0; z-index: 99000;
    display: flex; align-items: center; justify-content: center; padding: 18px;
    background: rgba(15, 13, 9, .66); backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.tv-notice-overlay.is-open { opacity: 1; visibility: visible; }

.tv-notice-modal {
    position: relative; width: 100%; max-width: 620px; max-height: 92vh;
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border-radius: 18px; box-shadow: 0 26px 70px rgba(15, 13, 9, .45);
    transform: translateY(16px) scale(.98); transition: transform .25s ease;
}
.tv-notice-overlay.is-open .tv-notice-modal { transform: translateY(0) scale(1); }

.tv-notice-x {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 32px; height: 32px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.14); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 15px;
    transition: all .18s ease;
}
.tv-notice-x:hover { background: var(--theme-color, #E8AA42); color: #1c1c1c; transform: rotate(90deg); }

.tv-notice-head { flex-shrink: 0; background: linear-gradient(135deg, #1c1c1c 0%, #2a2620 100%); padding: 20px 24px 18px; text-align: center; }
.tv-notice-eyebrow { color: var(--theme-color, #E8AA42); font-size: 10.5px; letter-spacing: 3px; text-transform: uppercase; font-weight: 800; }
.tv-notice-badge {
    display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 6px;
    background: rgba(232,170,66,.15); border: 1px solid var(--theme-color, #E8AA42);
    color: var(--theme-color, #E8AA42); border-radius: 16px; padding: 3px 14px; font-size: 12px; font-weight: 800;
}
.tv-notice-head h4 { color: #fff; font-size: 19px; margin: 4px 0 0; }

.tv-notice-body { overflow-y: auto; flex: 1 1 auto; padding: 16px 20px 6px; }
.tv-notice-card { border-radius: 12px; padding: 11px 14px; margin-bottom: 10px; border: 1px solid; }
.tv-notice-card-head { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 13.5px; margin-bottom: 4px; }
.tv-notice-card p { margin: 0; font-size: 13px; line-height: 1.55; color: #3a352b; }
.tv-notice-ok   { background: #eef7f0; border-color: #9fd4af; } .tv-notice-ok .tv-notice-card-head { color: #1e7a3a; }
.tv-notice-warn { background: #fdecea; border-color: #e7b3ac; } .tv-notice-warn .tv-notice-card-head { color: #b02a1c; }
.tv-notice-info { background: #fdf6e7; border-color: #e3c98a; } .tv-notice-info .tv-notice-card-head { color: #8a6414; }
.tv-notice-thanks { text-align: center; color: #6d6759; font-size: 13px; margin: 8px 0 10px; }

.tv-notice-foot { flex-shrink: 0; border-top: 1px solid #efe9d9; padding: 12px 20px 16px; }
.tv-notice-agree { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: #1c1c1c; cursor: pointer; margin-bottom: 10px; }
/* the theme's global form styles hide/skin native checkboxes — force this one visible */
.tv-notice-agree input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    appearance: auto !important;
    display: inline-block !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 19px !important;
    height: 19px !important;
    min-width: 19px;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: var(--theme-color, #E8AA42);
    border: 2px solid #c9b98a;
    border-radius: 4px;
    cursor: pointer;
    flex: 0 0 auto;
}
.tv-notice-agree span { user-select: none; }
.tv-notice-actions { display: flex; gap: 10px; }
.tv-notice-btn {
    flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 11px 14px; border: 0; border-radius: 10px; font-size: 13.5px; font-weight: 800; cursor: pointer;
    color: #1c1c1c; background: linear-gradient(135deg, #f3c96e, var(--theme-color, #E8AA42));
    transition: filter .15s ease, box-shadow .2s ease; text-align: center;
}
.tv-notice-btn:hover { filter: brightness(1.05); box-shadow: 0 8px 20px rgba(232,170,66,.35); color: #1c1c1c; }
.tv-notice-btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
.tv-notice-btn-ghost { background: #fff; color: #6b6452; border: 1px solid #e3dcc9; }
.tv-notice-btn-ghost:hover { box-shadow: 0 6px 16px rgba(28,28,28,.1); filter: none; color: #1c1c1c; }

@media (max-width: 575.98px) {
    .tv-notice-actions { flex-direction: column-reverse; }
    .tv-notice-head h4 { font-size: 17px; }
}
