:root {
    --scm-ink: #172033;
    --scm-muted: #64718a;
    --scm-line: #dce3ef;
    --scm-paper: #ffffff;
    --scm-soft: #f5f7fc;
    --scm-brand: #3e48e6;
    --scm-brand-dark: #2731bd;
    --scm-mint: #28c8aa;
    --scm-shadow: 0 24px 70px rgba(21, 31, 55, .18);
}

.scm, .scm * { box-sizing: border-box; }
.scm { font-family: "Plus Jakarta Sans", "Montserrat", sans-serif; color: var(--scm-ink); }
.scm [hidden] { display: none !important; }
.scm-is-open { overflow: hidden; }

.scm-banner {
    position: fixed;
    z-index: 2147482000;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 64px 1fr;
    background: var(--scm-paper);
    border: 1px solid rgba(62, 72, 230, .2);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    box-shadow: var(--scm-shadow);
    overflow: hidden;
    animation: scm-rise .36s cubic-bezier(.2, .7, .2, 1) both;
}

.scm-banner__marker {
    padding: 12px 14px;
    color: #fff;
    background: var(--scm-ink);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.scm-banner__marker span:first-child { color: var(--scm-mint); font-size: 1.1rem; font-weight: 800; letter-spacing: -.04em; }
.scm-banner__marker span:last-child { font-size: .58rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.scm-banner__content { min-width: 0; padding: 12px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 520px); gap: 24px; align-items: center; }
.scm-eyebrow { margin: 0 0 3px !important; color: var(--scm-brand) !important; font-size: .62rem !important; line-height: 1.35 !important; font-weight: 800 !important; letter-spacing: .12em; text-transform: uppercase; }
.scm-banner h2, .scm-dialog h2 { margin: 0; color: var(--scm-ink); font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; letter-spacing: -.035em; }
.scm-banner h2 { font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.15; }
.scm-banner__copy > p:not(.scm-eyebrow) { max-width: 820px; margin: 4px 0 7px; color: var(--scm-muted); font-size: .74rem; line-height: 1.45; }
.scm-banner__facts { display: flex; flex-wrap: wrap; gap: 5px 15px; align-items: center; font-size: .64rem; font-weight: 700; color: #58657d; }
.scm-banner__facts span { position: relative; padding-left: 13px; }
.scm-banner__facts span::before { content: ""; position: absolute; top: .42em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--scm-mint); }
.scm-banner__facts a { color: var(--scm-brand); text-decoration: underline; text-underline-offset: 3px; }
.scm-banner__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }

.scm-button {
    min-height: 38px;
    padding: 7px 13px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-size: .7rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}
.scm-button:hover { transform: translateY(-1px); }
.scm-button:focus-visible, .scm-close:focus-visible, .scm-category__expand:focus-visible, .scm-switch input:focus-visible + span { outline: 3px solid rgba(62, 72, 230, .25); outline-offset: 2px; }
.scm-button--primary { color: #fff; background: var(--scm-brand); border-color: var(--scm-brand); }
.scm-button--primary:hover { background: var(--scm-brand-dark); border-color: var(--scm-brand-dark); }
.scm-button--secondary { color: var(--scm-ink); background: #fff; border-color: #cbd4e4; }
.scm-button--secondary:hover { border-color: var(--scm-brand); color: var(--scm-brand); }
.scm-button--text { min-height: 38px; padding: 7px 10px; color: var(--scm-brand); background: transparent; }

.scm-dialog-shell { position: fixed; z-index: 2147483000; inset: 0; display: grid; place-items: center; padding: 22px; }
.scm-dialog-backdrop { position: absolute; inset: 0; background: rgba(14, 22, 38, .66); backdrop-filter: blur(5px); }
.scm-dialog {
    position: relative;
    width: min(940px, 100%);
    max-height: min(820px, calc(100vh - 44px));
    background: var(--scm-paper);
    border-radius: 22px;
    box-shadow: var(--scm-shadow);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    animation: scm-rise .28s ease both;
}
.scm-dialog__header { padding: 25px 28px 20px; display: flex; gap: 24px; justify-content: space-between; border-bottom: 1px solid var(--scm-line); }
.scm-dialog__header h2 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.16; }
.scm-dialog__header > div > p:last-child { max-width: 670px; margin: 8px 0 0; color: var(--scm-muted); font-size: .84rem; line-height: 1.55; }
.scm-close { flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border: 1px solid var(--scm-line); border-radius: 50%; color: var(--scm-ink); background: #fff; font: 300 1.7rem/1 sans-serif; cursor: pointer; }
.scm-dialog__body { overflow: auto; padding: 18px 28px; background: var(--scm-soft); }
.scm-category-list { display: grid; gap: 10px; }
.scm-category { background: #fff; border: 1px solid var(--scm-line); border-radius: 14px; overflow: hidden; }
.scm-category__top { min-height: 94px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
.scm-category__expand { min-width: 0; padding: 17px 18px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 16px; gap: 13px; align-items: center; text-align: left; color: inherit; border: 0; background: transparent; cursor: pointer; }
.scm-category__index { color: var(--scm-brand); font-size: .73rem; font-weight: 800; letter-spacing: .1em; }
.scm-category__copy { min-width: 0; display: grid; gap: 3px; }
.scm-category__copy strong { font-size: .92rem; }
.scm-category__copy small { color: var(--scm-muted); font-size: .73rem; line-height: 1.45; }
.scm-category__copy em { margin-top: 3px; color: var(--scm-brand); font-size: .66rem; font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.scm-category__chevron { width: 9px; height: 9px; border-right: 2px solid #7d899f; border-bottom: 2px solid #7d899f; transform: rotate(45deg); transition: transform .18s ease; }
.scm-category__expand[aria-expanded="true"] .scm-category__chevron { transform: rotate(225deg); }
.scm-switch { min-width: 132px; padding: 16px 18px; border-left: 1px solid var(--scm-line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; cursor: pointer; }
.scm-switch input { position: absolute; opacity: 0; pointer-events: none; }
.scm-switch span { position: relative; width: 44px; height: 24px; border-radius: 999px; background: #c8d0df; transition: background .18s ease; }
.scm-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(15, 25, 46, .22); transition: transform .18s ease; }
.scm-switch input:checked + span { background: var(--scm-brand); }
.scm-switch input:checked + span::after { transform: translateX(20px); }
.scm-switch b { color: #5c687e; font-size: .65rem; }
.scm-switch.is-unavailable { cursor: default; opacity: .65; }
.scm-switch.is-required { cursor: not-allowed; }
.scm .scm-switch.is-required span { background: var(--scm-brand) !important; }
.scm .scm-switch.is-required span::after { transform: translateX(20px) !important; }
.scm-category__detail { padding: 0 18px 18px 73px; border-top: 1px solid var(--scm-line); }
.scm-provider { padding: 17px 0; border-bottom: 1px solid #e7ebf3; }
.scm-provider:last-child { padding-bottom: 0; border-bottom: 0; }
.scm-provider__title { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; }
.scm-provider h3 { margin: 0; font-size: .86rem; font-weight: 800; }
.scm-provider__title span { color: var(--scm-brand); font-size: .65rem; font-weight: 800; white-space: nowrap; }
.scm-provider > p { margin: 6px 0 12px; color: var(--scm-muted); font-size: .72rem; line-height: 1.5; }
.scm-provider__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.scm-provider h4 { margin: 0 0 6px; color: #7a869a; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.scm-provider ul { margin: 0; padding-left: 17px; color: #47546a; font-size: .69rem; line-height: 1.55; }
.scm-cookie-list { margin: 0 !important; color: #47546a !important; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.scm-empty { margin: 18px 0 0; color: var(--scm-muted); font-size: .75rem; }
.scm-dialog__footer { padding: 16px 28px; display: flex; justify-content: space-between; gap: 24px; align-items: center; border-top: 1px solid var(--scm-line); }
.scm-dialog__footer p { max-width: 470px; margin: 0; color: var(--scm-muted); font-size: .68rem; line-height: 1.45; }
.scm-dialog__footer > div { display: flex; gap: 8px; }

@keyframes scm-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .scm-banner, .scm-dialog { animation: none; } .scm * { scroll-behavior: auto !important; transition-duration: .01ms !important; } }

@media (max-width: 760px) {
    .scm-banner { right: 0; bottom: 0; left: 0; grid-template-columns: 1fr; border-radius: 14px 14px 0 0; max-height: 100vh; overflow: auto; }
    .scm-banner__marker { padding: 7px 13px; flex-direction: row; align-items: center; }
    .scm-banner__marker span:first-child { font-size: .9rem; }
    .scm-banner__marker span:last-child { writing-mode: initial; transform: none; }
    .scm-banner__content { padding: 12px 13px 13px; grid-template-columns: 1fr; gap: 10px; }
    .scm-banner__actions { grid-template-columns: 1fr 1fr; }
    .scm-button--text { grid-column: 1 / -1; }
    .scm-dialog-shell { align-items: end; padding: 0; }
    .scm-dialog { width: 100%; max-height: 94vh; border-radius: 20px 20px 0 0; }
    .scm-dialog__header { padding: 20px 18px 16px; }
    .scm-dialog__body { padding: 12px; }
    .scm-category__top { grid-template-columns: minmax(0, 1fr) 95px; }
    .scm-category__expand { padding: 14px 12px; grid-template-columns: 28px minmax(0, 1fr) 12px; gap: 7px; }
    .scm-switch { min-width: 0; padding: 12px 8px; }
    .scm-category__detail { padding: 0 14px 14px; }
    .scm-provider__grid { grid-template-columns: 1fr; gap: 12px; }
    .scm-dialog__footer { padding: 13px 14px; display: block; }
    .scm-dialog__footer p { margin-bottom: 10px; }
    .scm-dialog__footer > div { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
    .scm-banner__facts span:nth-child(2) { display: none; }
    .scm-category__copy small { display: none; }
    .scm-category__top { min-height: 78px; }
    .scm-switch b { font-size: .58rem; }
}
