/* Siriraj Conference - PDPA cookie consent */
.cc-root {
    --cc-primary: #0b4f8a;
    --cc-primary-2: #1673c4;
    --cc-text: #1f2937;
    --cc-muted: #5b6474;
    --cc-surface: #ffffff;
    --cc-border: #e3e8ef;
    font-family: "Kanit", "Prompt", "Sarabun", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--cc-text);
    line-height: 1.55;
}
.cc-root[hidden], .cc-modal[hidden], .cc-fab[hidden] { display: none !important; }
/* Mobirise's scroll-reveal hides elements until they scroll into view; never apply it to the fixed consent UI. */
.cc-root .hidden.animate__animated { visibility: visible !important; animation: none !important; }
.cc-root p { line-height: 1.55; }
html.cc-lock, html.cc-lock body { overflow: hidden; }

.cc-banner {
    position: fixed; z-index: 2147483000; left: 16px; right: 16px; bottom: 16px;
    max-width: 1080px; margin: 0 auto;
    display: none; align-items: center; gap: 18px;
    padding: 18px 22px; border-radius: 16px;
    background: var(--cc-surface); border: 1px solid var(--cc-border);
    box-shadow: 0 18px 50px -12px rgba(15, 35, 70, .35);
    animation: cc-up .35s ease-out;
}
.cc-root--banner .cc-banner { display: flex; }
.cc-banner__icon {
    flex: 0 0 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
    color: #fff; background: linear-gradient(135deg, var(--cc-primary), var(--cc-primary-2));
}
.cc-banner__text { flex: 1 1 auto; min-width: 0; }
.cc-banner__text h2 { font-size: 1.05rem; font-weight: 600; margin: 0 0 4px; color: var(--cc-text); }
.cc-banner__text p { font-size: .9rem; margin: 0; color: var(--cc-muted); }
.cc-root a { color: var(--cc-primary-2); text-decoration: underline; text-underline-offset: 2px; }
.cc-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.cc-btn {
    appearance: none; cursor: pointer; font: inherit; font-size: .9rem; font-weight: 500;
    padding: 9px 18px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.cc-btn:focus-visible, .cc-close:focus-visible, .cc-fab:focus-visible { outline: 3px solid rgba(22, 115, 196, .45); outline-offset: 2px; }
.cc-btn--primary { color: #fff; background: var(--cc-primary); }
.cc-btn--primary:hover { background: var(--cc-primary-2); box-shadow: 0 6px 16px -6px rgba(11, 79, 138, .6); }
.cc-btn--outline { color: var(--cc-primary); background: #fff; border-color: var(--cc-primary); }
.cc-btn--outline:hover { background: #eef5fc; }
.cc-btn--ghost { color: var(--cc-text); background: #f1f4f8; }
.cc-btn--ghost:hover { background: #e4e9f0; }

.cc-modal { position: fixed; inset: 0; z-index: 2147483001; display: grid; place-items: center; padding: 16px; }
.cc-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 22, 40, .55); backdrop-filter: blur(2px); }
.cc-modal__panel {
    position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto;
    background: var(--cc-surface); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45);
    animation: cc-pop .25s ease-out;
}
.cc-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 8px; }
.cc-modal__head h2 { font-size: 1.2rem; font-weight: 600; margin: 0; }
.cc-close { border: 0; background: #f1f4f8; width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--cc-muted); }
.cc-modal__body { padding: 4px 24px 8px; font-size: .92rem; color: var(--cc-muted); }
.cc-modal__body > p { margin: 0 0 14px; }
.cc-cat { border: 1px solid var(--cc-border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.cc-cat p { margin: 6px 0 0; font-size: .86rem; }
.cc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--cc-text); }
.cc-badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 500; color: #0f7a3d; background: #e3f6eb; }
.cc-modal__foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 24px 22px; }

.cc-switch { position: relative; flex: 0 0 auto; width: 46px; height: 26px; margin: 0; cursor: pointer; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-switch span { position: absolute; inset: 0; border-radius: 999px; background: #cfd6df; transition: background .2s; }
.cc-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.cc-switch input:checked + span { background: var(--cc-primary-2); }
.cc-switch input:checked + span::after { transform: translateX(20px); }
.cc-switch input:focus-visible + span { outline: 3px solid rgba(22, 115, 196, .45); outline-offset: 2px; }
.cc-switch.is-locked { opacity: .65; cursor: not-allowed; }

.cc-fab {
    position: fixed; z-index: 2147482999; left: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%;
    border: 0; cursor: pointer; color: #fff; background: var(--cc-primary, #0b4f8a);
    background: linear-gradient(135deg, #0b4f8a, #1673c4); box-shadow: 0 8px 20px -6px rgba(11, 79, 138, .6);
    display: grid; place-items: center; opacity: .85; transition: opacity .15s, transform .15s;
}
.cc-fab:hover { opacity: 1; transform: translateY(-2px); }

@keyframes cc-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes cc-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

@media (max-width: 767px) {
    .cc-banner { flex-direction: column; align-items: stretch; left: 8px; right: 8px; bottom: 8px; padding: 16px; }
    .cc-banner__icon { display: none; }
    .cc-banner__actions { justify-content: stretch; }
    .cc-banner__actions .cc-btn { flex: 1 1 auto; }
    .cc-modal__foot .cc-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .cc-banner, .cc-modal__panel { animation: none; }
}

/* Policy pages */
.pdpa-page { padding: 36px 0 60px; background: linear-gradient(180deg, #f3f7fb 0, #fff 320px); }
.pdpa-breadcrumb { font-size: .9rem; color: #6b7280; margin-bottom: 10px; }
.pdpa-breadcrumb a { color: #1673c4; }
.pdpa-breadcrumb span { margin: 0 6px; }
.pdpa-title { font-size: 2rem; font-weight: 600; color: #0b2f55; margin-bottom: 4px; }
.pdpa-meta { color: #6b7280; margin-bottom: 24px; }
.pdpa-card { background: #fff; border: 1px solid #e3e8ef; border-radius: 18px; padding: 28px 32px; box-shadow: 0 10px 30px -18px rgba(15, 35, 70, .3); }
.pdpa-card h2 { font-size: 1.2rem; font-weight: 600; color: #0b4f8a; margin: 22px 0 10px; }
.pdpa-card h2:first-child { margin-top: 0; }
.pdpa-card p, .pdpa-card li { color: #374151; line-height: 1.75; }
.pdpa-table th { background: #f1f5fa; color: #0b2f55; font-weight: 600; }
.pdpa-table td, .pdpa-table th { vertical-align: top; padding: 12px; }
@media (max-width: 767px) { .pdpa-card { padding: 20px; } .pdpa-page { padding-top: 24px; } }
