/* Cookie Consent v2 — TRIAL, new template only (see cookie-consent-v2.js).
   Styled to the new-template design language (tokens from lp.css:
   --lp-ink/--lp-muted/--lp-line/--lp-accent, pill buttons, 16px cards).
   Falls back to the literal values when lp.css is not on the page. */

#cc2-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 26, 0.6);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cc2-card {
    background: #fff;
    color: var(--lp-ink, #1a1a1a);
    border: 1px solid var(--lp-line, #ececec);
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    font-size: 15px;
    line-height: 1.5;
}

.cc2-title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--lp-ink, #1a1a1a);
}

.cc2-intro {
    margin: 0 0 18px;
    color: var(--lp-muted, #6b6b6b);
}

/* The three first-layer buttons are deliberately identical:
   regulators require the reject option to have the same prominence
   (size, colour, contrast) as accept. Do not restyle one of them. */
.cc2-btn {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 13px 24px;
    border: none;
    border-radius: 999px;
    background: var(--lp-accent, #fb8f2e);
    color: var(--lp-ink, #1a1a1a);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.cc2-btn:hover {
    background: var(--lp-ink, #1a1a1a);
    color: #fff;
    transform: translateY(-2px);
}

.cc2-back {
    background: none;
    border: none;
    padding: 0;
    margin: 0 0 12px;
    color: var(--lp-muted, #6b6b6b);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.cc2-back:hover {
    color: var(--lp-accent, #fb8f2e);
}

.cc2-cat {
    border-top: 1px solid var(--lp-line, #ececec);
    padding: 12px 0;
}
.cc2-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
}
.cc2-cat-title {
    font-weight: 700;
    color: var(--lp-ink, #1a1a1a);
}
.cc2-cat-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.cc2-chevron {
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--lp-muted, #6b6b6b);
    border-bottom: 2px solid var(--lp-muted, #6b6b6b);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.15s;
}
.cc2-cat.cc2-open .cc2-chevron {
    transform: rotate(225deg) translateY(-2px);
}
/* Descriptions collapsed by default, expanded via the category header. */
.cc2-cat-desc {
    display: none;
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--lp-muted, #6b6b6b);
}
.cc2-cat.cc2-open .cc2-cat-desc {
    display: block;
}

/* Toggle switch (unchecked by default — privacy by default). */
.cc2-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.cc2-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cc2-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #d8d8d8;
    border-radius: 999px;
    transition: background 0.15s;
}
.cc2-slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s;
}
.cc2-switch input:checked + .cc2-slider {
    background: var(--lp-accent, #fb8f2e);
}
.cc2-switch input:checked + .cc2-slider:before {
    transform: translateX(20px);
}
/* Essential: enabled-looking but locked — muted accent, no pointer. */
.cc2-switch input:disabled + .cc2-slider {
    background: #f6c290;
    cursor: default;
}

.cc2-links {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
}
.cc2-links a {
    color: var(--lp-accent, #fb8f2e);
    text-decoration: underline;
}
.cc2-links-sep {
    margin: 0 8px;
    color: var(--lp-muted, #6b6b6b);
}

@media (max-width: 480px) {
    .cc2-card {
        padding: 18px;
    }
}
