.notice-popups[hidden] { display: none; }
.notice-popups { --notice-popups-edge: 32px; position: fixed; inset: 0; z-index: 11000; font-family: var(--font-family-base, 'Pretendard', sans-serif); color: var(--color-gray5, #1c1c1c); }
.notice-popups__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.notice-popups__dialog { position: relative; width: 100%; height: 100%; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: none; box-sizing: border-box; padding: var(--notice-popups-edge) 24px; outline: none; }
.notice-popups__dialog::-webkit-scrollbar { display: none; }
.notice-popup__close { border: 1px solid var(--color-gray2, #e9e9e9); background: var(--color-white, white); color: var(--color-gray5, #1c1c1c); border-radius: 6px; padding: 10px 18px; font: inherit; cursor: pointer; }
.notice-popups__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 420px)); justify-content: center; align-items: start; gap: 20px; max-width: 1440px; margin: 0 auto; }
.notice-popup { --notice-popup-padding: 24px; --notice-popup-section-gap: 16px; display: flex; flex-direction: column; min-width: 0; min-height: 0; max-height: calc(100vh - var(--notice-popups-edge) * 2); max-height: calc(100dvh - var(--notice-popups-edge) * 2); overflow: hidden; background: var(--color-white, white); border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.15); padding: var(--notice-popup-padding) 0; box-sizing: border-box; }
/* Reuse the shared header; keep its content inset while dividers span the card. */
.notice-popup__header { padding-left: var(--notice-popup-padding); padding-right: calc(var(--notice-popup-padding) + 48px); margin: 0; }
.notice-popup__title { overflow-wrap: anywhere; }
.notice-popup__impression { flex: 0 0 auto; padding-bottom: 24px; }
.notice-popup__impression + .notice-popup__body { margin-top: -24px; }
.notice-popup__x { right: var(--notice-popup-padding); }
.notice-popup__body { flex: 1 1 auto; min-height: 0; padding: var(--notice-popup-section-gap) var(--notice-popup-padding); overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: none; overflow-wrap: anywhere; font-size: 15px; line-height: 1.7; }
.notice-popup__body::-webkit-scrollbar { display: none; }
.notice-popup__body:focus-visible { outline: 2px solid var(--color-orange, #ff6a06); outline-offset: -2px; }
.notice-popup__body p { margin: 0 0 10px; }
.notice-popup__body > :last-child { margin-bottom: 0; }
/* Expand only images; their surrounding text and links retain the card padding. */
.notice-popup .notice-popup__body.tte-rich-content img { display: block !important; width: calc(100% + var(--notice-popup-padding) * 2) !important; max-width: none !important; margin-left: calc(-1 * var(--notice-popup-padding)) !important; margin-right: calc(-1 * var(--notice-popup-padding)) !important; }
.notice-popup__body :is(h1,h2,h3,h4,h5,h6) { line-height: 1.4; margin: 8px 0; }
.notice-popup__body a { color: var(--color-orange, #ff6a06); text-decoration: underline; }
.notice-popup__body img[role="button"] { cursor: zoom-in; }
.notice-popup__body img[role="button"]:focus-visible { outline: 2px solid var(--color-orange, #ff6a06); outline-offset: -2px; }
.notice-popup__body a[href] img { cursor: pointer; }
.notice-popup__body .ql-size-small { font-size: .75em; }
.notice-popup__body .ql-size-large { font-size: 1.5em; }
.notice-popup__body .ql-size-huge { font-size: 2.5em; }
.notice-popup__body .ql-font-serif { font-family: Georgia, serif; }
.notice-popup__body .ql-font-monospace { font-family: monospace; }
.notice-popup__body ul, .notice-popup__body ol { padding-left: 1.5em; }
.notice-popup__footer { flex: 0 0 auto; display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 0; padding: var(--notice-popup-section-gap) var(--notice-popup-padding) 0; border-top: 1px solid var(--color-gray2, #e9e9e9); font-size: 14px; }
.notice-popup__hide { display: flex; align-items: center; gap: 6px; cursor: pointer; }
/* Native accent-color lets the browser choose a dark tick; specify both colors. */
.notice-popup__hide input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: 0 0 16px; width: 16px; height: 16px; margin: 0; box-sizing: border-box; border: 1px solid var(--color-gray3, #9e9e9e); border-radius: 3px; background-color: var(--color-white, #fff); background-position: center; background-repeat: no-repeat; background-size: 12px 12px; cursor: pointer; }
.notice-popup__hide input[type="checkbox"]:checked { border-color: var(--color-orange, #ff6a06); background-color: var(--color-orange, #ff6a06); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.notice-popup__hide input[type="checkbox"]:focus-visible { outline: 2px solid var(--color-orange, #ff6a06); outline-offset: 2px; }
@media (forced-colors: active) {
    .notice-popup__hide input[type="checkbox"], .notice-popup__hide input[type="checkbox"]:checked { appearance: auto; -webkit-appearance: auto; background: revert; border: revert; accent-color: auto; }
}
.notice-popup__close { margin-left: auto; }
.notice-popup button:focus-visible { outline: 2px solid var(--color-orange, #ff6a06); outline-offset: 3px; }
.notice-image-error { min-height: 72px; background: var(--color-gray1, #f8f9fa); }
body.notice-popups-open { overflow: hidden; }
.notice-popups--mobile .notice-popups__grid { grid-template-columns: minmax(0, 375px); }
.notice-popups--preview { z-index: 12000; }
@media (max-width: 767px) {
    .notice-popups { --notice-popups-edge: 16px; }
    .notice-popups__dialog { padding: var(--notice-popups-edge) 12px; }
    .notice-popups__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .notice-popup { --notice-popup-padding: 20px; }
}
