/* ClaudeCode 2026-07-24: Cookie consent / "Your Privacy Choices" banner and
   preference center. US opt-out model (CCPA/CPRA + CO/CT/VA/UT and the rest of
   the state privacy laws). Loaded site-wide via _Head.cshtml style bundle.
   Behavior lives in Skins/Default/Scripts/cookie-consent.js. */

/* ---- Bottom notice banner ---- */
.pams-cc-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: #2d3a51;
    color: #f3f6fa;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.5;
}

.pams-cc-banner[hidden] { display: none; }

.pams-cc-banner__inner {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

.pams-cc-banner__text {
    flex: 1 1 320px;
    margin: 0;
}

.pams-cc-banner__text a {
    color: #b9d0ff;
    text-decoration: underline;
}

.pams-cc-banner__actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ---- Buttons (shared by banner + modal) ---- */
.pams-cc-btn {
    display: inline-block;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    background: #3b4a66;
    color: #fff;
}

.pams-cc-btn:hover,
.pams-cc-btn:focus { background: #4a5c7e; color: #fff; }

.pams-cc-btn--primary { background: #A41915; }
.pams-cc-btn--primary:hover,
.pams-cc-btn--primary:focus { background: #c22019; }

.pams-cc-btn--ghost {
    background: transparent;
    border-color: #b4b9c3;
    color: #f3f6fa;
}
.pams-cc-btn--ghost:hover,
.pams-cc-btn--ghost:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.pams-cc-btn:focus-visible,
.pams-cc-btn:focus {
    outline: 2px solid #b9d0ff;
    outline-offset: 2px;
}

/* ---- Preference center modal ---- */
.pams-cc-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 26, 38, 0.6);
}

.pams-cc-modal[hidden] { display: none; }

.pams-cc-modal__dialog {
    background: #fff;
    color: #2d3a51;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.pams-cc-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px 12px;
    border-bottom: 1px solid #e3e6eb;
}

.pams-cc-modal__header h2 {
    margin: 0;
    font-size: 20px;
    color: #2d3a51;
}

.pams-cc-modal__close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    padding: 0 4px;
}
.pams-cc-modal__close:hover { color: #2d3a51; }

.pams-cc-modal__body { padding: 12px 24px 4px; }
.pams-cc-modal__intro { font-size: 14px; line-height: 1.5; }
.pams-cc-modal__intro a { color: #265680; text-decoration: underline; }

/* GPC honored banner inside the modal */
.pams-cc-gpc {
    display: none;
    margin: 4px 0 12px;
    padding: 10px 14px;
    border-radius: 4px;
    background: #eef2f7;
    border-left: 4px solid #3b4a66;
    font-size: 13px;
}
.pams-cc-gpc.is-visible { display: block; }

/* Category rows */
.pams-cc-cat {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid #eef2f7;
}
.pams-cc-cat:first-of-type { border-top: none; }

.pams-cc-cat__info { flex: 1 1 auto; }
.pams-cc-cat__info h3 { margin: 0 0 4px; font-size: 15px; color: #2d3a51; }
.pams-cc-cat__info p { margin: 0; font-size: 13px; line-height: 1.5; color: #4a5568; }

.pams-cc-cat__control { flex: 0 0 auto; padding-top: 2px; }

/* Toggle switch */
.pams-cc-switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.pams-cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pams-cc-switch__slider {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #c7ccd6;
    border-radius: 26px;
    transition: background 0.15s ease;
    pointer-events: none;
}
.pams-cc-switch__slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.15s ease;
}
.pams-cc-switch input:checked + .pams-cc-switch__slider { background: #3b4a66; }
.pams-cc-switch input:checked + .pams-cc-switch__slider::before { transform: translateX(20px); }
.pams-cc-switch input:focus-visible + .pams-cc-switch__slider { outline: 2px solid #b9d0ff; outline-offset: 2px; }
.pams-cc-switch input:disabled + .pams-cc-switch__slider { background: #3b4a66; opacity: 0.5; }

.pams-cc-cat__locked { font-size: 12px; color: #6b7280; font-weight: 600; }

.pams-cc-modal__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding: 16px 24px 22px;
    border-top: 1px solid #e3e6eb;
    position: sticky;
    bottom: 0;
    background: #fff;
}

/* ---- Persistent footer "Your Privacy Choices" link ---- */
.pams-cc-footer-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.pams-cc-footer-link:hover { text-decoration: none; }
.pams-cc-privacy-links { margin-top: 6px; font-size: 13px; }
.pams-cc-privacy-links a,
.pams-cc-privacy-links .pams-cc-footer-link { margin: 0 6px; }

@media (max-width: 600px) {
    .pams-cc-banner__actions { width: 100%; }
    .pams-cc-banner__actions .pams-cc-btn { flex: 1 1 auto; }
    .pams-cc-modal__footer { justify-content: stretch; }
    .pams-cc-modal__footer .pams-cc-btn { flex: 1 1 100%; }
}
