.cookie-consent {
    --cookie-primary: #182968;
    --cookie-accent: #c72c30;
    color: #24324d;
    font-family: "Proxima Nova", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.cookie-consent [hidden] { display: none !important; }
.cookie-consent *, .cookie-consent *::before, .cookie-consent *::after { box-sizing: border-box; }
.cookie-consent h2, .cookie-consent h3, .cookie-consent p { margin: 0; color: inherit; }
.cookie-consent h2 { font-size: 23px; line-height: 1.2; font-weight: 700; color: var(--cookie-primary); }
.cookie-consent p { font-size: 15px; line-height: 1.5; }
.cookie-consent button, .cookie-consent a { -webkit-tap-highlight-color: transparent; }
.cookie-consent button { font: inherit; cursor: pointer; }
.cookie-consent button:focus-visible, .cookie-consent a:focus-visible {
    outline: 3px solid var(--cookie-accent);
    outline-offset: 4px;
}

.cookie-consent__banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9100;
    width: min(720px, calc(100% - 112px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 24px;
    background: #fff;
    border: 1px solid #dce1ef;
    border-top: 4px solid var(--cookie-primary);
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(24, 41, 104, .2);
}

.cookie-consent__intro { display: flex; align-items: flex-start; gap: 16px; }
.cookie-consent__intro h2 { margin-bottom: 8px; }
.cookie-consent__mark {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: 12px;
    background: #f3f5fb;
    font-size: 26px;
}

.cookie-consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.cookie-consent__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid var(--cookie-primary);
    border-radius: 7px;
    background: #fff;
    color: var(--cookie-primary);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}
.cookie-consent__button:hover { background: #f3f5fb; }
.cookie-consent__button--primary { background: var(--cookie-primary); color: #fff; }
.cookie-consent__button--primary:hover { background: #2f3e77; }
.cookie-consent__policy { color: var(--cookie-primary); font-size: 14px; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }
.cookie-consent__policy:hover { color: var(--cookie-accent); }
.cookie-consent__banner .cookie-consent__policy {
    flex-basis: 100%;
    border-color: #dce1ef;
    background: #f3f5fb;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
}

.cookie-consent__reopen {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 8900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #dce1ef;
    border-radius: 24px;
    background: #fff;
    color: var(--cookie-primary);
    box-shadow: 0 4px 20px rgba(24, 41, 104, .14);
    font-size: 14px;
}
.cookie-consent__reopen:hover { background: #f3f5fb; }
.cookie-consent__overlay {
    position: fixed;
    inset: 0;
    z-index: 10010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(13, 23, 57, .58);
    overscroll-behavior: contain;
}
.cookie-consent__dialog {
    position: relative;
    width: 100%;
    max-width: 580px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 32px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(13, 23, 57, .25);
}
.cookie-consent__dialog h2 { margin: 8px 36px 12px 0; font-size: 28px; }
.cookie-consent__eyebrow { color: var(--cookie-accent); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.cookie-consent__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f3f5fb;
    color: var(--cookie-primary);
    font-size: 28px !important;
    line-height: 1;
}
.cookie-consent__category { margin: 20px 0; padding: 18px; border: 1px solid #dce1ef; border-radius: 10px; background: #f8f9fc; }
.cookie-consent__category-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cookie-consent__category h3, .cookie-consent__category-title { font-size: 16px; font-weight: 700; color: var(--cookie-primary); }
.cookie-consent__badge { font-size: 12px; color: #536080; text-align: right; }
.cookie-consent__switch { position: relative; flex: 0 0 44px; height: 26px; }
.cookie-consent__switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cookie-consent__switch-track { display: block; height: 100%; border-radius: 20px; background: #8b94ab; }
.cookie-consent__switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.cookie-consent__switch input:checked + span { background: var(--cookie-primary); }
.cookie-consent__switch input:checked + span::after { left: 21px; }
.cookie-consent__switch input:focus-visible + span { outline: 3px solid var(--cookie-accent); outline-offset: 4px; }

@media (max-width: 600px) {
    .cookie-consent__banner { bottom: 88px; left: 12px; width: calc(100% - 24px); padding: 18px; max-height: calc(100dvh - 112px); }
    .cookie-consent__mark { display: none; }
    .cookie-consent h2 { font-size: 21px; }
    .cookie-consent__actions .cookie-consent__button { flex: 1 1 auto; padding: 10px 12px; }
    .cookie-consent__reopen { bottom: 20px; left: 16px; }
    .cookie-consent__overlay { padding: 12px; }
    .cookie-consent__dialog { padding: 24px 18px; max-height: calc(100dvh - 24px); }
    .cookie-consent__dialog h2 { font-size: 25px; }
    .cookie-consent__category { padding: 14px; }
}
