/* NOTE: this file still has !important rules on purpose. Removing them changes how pages look (checked page by page with admin/tests/tools/css_check.php) because they override older rules; merge the overlapping rules before removing them. */
/* The first-visit notice (Live\AgeGate): 18+ and cookies. A blurred, darkened site behind a calm card in the site's colours. */
.ag-overlay { position: fixed; inset: 0; z-index: 9999; background: color-mix(in srgb, var(--msg-black) 78%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ag-box { position: fixed; top: 50%; left: 50%; z-index: 99999; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; }
.ag-overlay[hidden], .ag-box[hidden] { display: none; }
.ag-card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 34px 30px 26px; border: 1px solid color-mix(in srgb, var(--msg-white) 12%, transparent); border-radius: 22px; text-align: center; color: var(--msg-text); background: linear-gradient(180deg, color-mix(in srgb, var(--msg-surface) 96%, var(--msg-accent) 4%), var(--msg-surface)); box-shadow: 0 30px 80px color-mix(in srgb, var(--msg-black) 60%, transparent); }
.ag-logo { max-width: 70%; max-height: 54px; object-fit: contain; }
.ag-badge { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; border: 3px solid var(--msg-accent); color: var(--msg-accent); font-size: 26px; font-weight: 800; letter-spacing: -.02em; box-shadow: 0 0 0 6px color-mix(in srgb, var(--msg-accent) 14%, transparent); }
.ag-head { margin: 4px 0 0; font-size: 24px; line-height: 1.2; font-weight: 800; }
.ag-sub { margin: 0; max-width: 36ch; font-size: 15px; line-height: 1.55; color: color-mix(in srgb, var(--msg-text) 78%, transparent); }
.ag-btns { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 8px; }
.ag-btns button { min-height: 50px; padding: 12px 22px; border: 0; border-radius: var(--btn-r, 999px); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.ag-accept { background: linear-gradient(180deg, var(--msg-accent), var(--msg-accent-2)); color: var(--msg-on-accent); }
.ag-reject { background: transparent; color: color-mix(in srgb, var(--msg-text) 75%, transparent); border: 1px solid color-mix(in srgb, var(--msg-white) 18%, transparent) !important; }
.ag-accept:hover { filter: brightness(1.06); }
.ag-reject:hover { color: var(--msg-text); }
.ag-cookies { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: var(--msg-muted); }
.ag-cookies a { color: var(--msg-link); }
@media (max-width: 480px) { .ag-card { padding: 26px 20px 20px; } .ag-head { font-size: 21px; } }
