/* Cookie choices banner (Views/Shared/_ConsentBanner_Partial.cshtml, js/consent.js).
   Card style follows the enquiry wizard (AssemblySoft.Enquiry/wwwroot/enquiry.css). Bottom-left so it does not
   meet the enquiry bubble (bottom-right); full width along the bottom below 768px, where the bubble's launcher
   steps aside while the banner shows (css/enquiry-bubble.css, html.as-consent-open).
   z-index: same band as the bubble, below the showcase player's full-screen layers (2147483000+). */

.as-consent {
    position: fixed; z-index: 2147481990;
    left: calc(20px + env(safe-area-inset-left, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 40px); max-width: 420px; max-height: calc(100vh - 40px); overflow-y: auto;
    box-sizing: border-box; margin: 0; padding: 20px 22px 18px;
    background: #fff; color: #1e293b; text-align: left;
    border: 1px solid #e2e8f0; border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18), 0 10px 30px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
    font-family: 'Inter', 'Inter Fallback', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 15px; line-height: 1.55; outline: none;
}
.as-consent[hidden] { display: none; }
.as-consent *, .as-consent *::before, .as-consent *::after { box-sizing: border-box; }
.as-consent:focus-visible { box-shadow: 0 0 0 4px rgba(0, 191, 255, 0.35), 0 24px 60px rgba(15, 23, 42, 0.18); }

.as-consent .as-consent-title {
    margin: 0 0 8px; padding: 0;
    font-family: 'Space Grotesk', 'Space Grotesk Fallback', 'Inter', 'Segoe UI', sans-serif;
    font-size: 18px; font-weight: 700; line-height: 1.3; color: #0f172a;
    text-transform: none; letter-spacing: normal;
}
.as-consent .as-consent-text, .as-consent .as-consent-current {
    margin: 0 0 14px; padding: 0; font-size: 14.5px; line-height: 1.55; color: #334155;
    text-transform: none; letter-spacing: normal;
}
.as-consent .as-consent-current { margin-top: -6px; font-weight: 600; color: #075985; }
.as-consent .as-consent-current[hidden] { display: none; }

.as-consent .as-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
/* Both choices look and weigh the same. */
.as-consent .as-consent-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; min-width: 0; width: 100%; margin: 0; padding: 10px 14px;
    font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2;
    text-transform: none; letter-spacing: normal; white-space: normal; text-align: center;
    color: #fff; background: #0f172a; border: 1.5px solid #0f172a; border-radius: 12px;
    cursor: pointer; box-shadow: none;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.as-consent .as-consent-btn:hover { background: #1e293b; border-color: #1e293b; }
.as-consent .as-consent-btn:focus { outline: none; }
.as-consent .as-consent-btn:focus-visible { box-shadow: 0 0 0 4px rgba(0, 191, 255, 0.4); }
/* The stored choice, when the banner is reopened from "Cookie settings". */
.as-consent .as-consent-btn[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #0284c7; }
.as-consent .as-consent-btn[aria-pressed="true"]::before {
    content: ''; width: 9px; height: 5px; margin-top: -3px;
    border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg);
}

.as-consent .as-consent-link {
    display: inline-flex; align-items: center; min-height: 32px;
    font-size: 14px; font-weight: 600; color: #0369a1; text-decoration: underline;
    text-transform: none; letter-spacing: normal;
}
.as-consent .as-consent-link:hover { color: #075985; }

@media (max-width: 767.98px) {
    .as-consent {
        left: 0; right: 0; bottom: 0; width: 100%; max-width: none; max-height: 85vh;
        border-radius: 18px 18px 0 0; border-width: 1px 0 0;
        padding: 18px calc(16px + env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px));
    }
}
@media (pointer: coarse) {
    .as-consent .as-consent-link { min-height: 44px; }
}
@media print {
    .as-consent { display: none !important; }
}
