:root {
    --cookie-navy: #071a33;
    --cookie-red: #d91f2a;
    --cookie-line: #d9e2ec;
}

.cookie-banner {
    background: rgba(7, 26, 51, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    bottom: 18px;
    box-shadow: 0 22px 56px rgba(2, 10, 23, 0.38);
    color: #f7fbff;
    left: 50%;
    max-width: 1040px;
    padding: 1.1rem;
    position: fixed;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    z-index: 3000;
}
.cookie-banner[hidden], .cookie-modal[hidden], [data-consent-placeholder][hidden] { display: none !important; }
.cookie-banner__content { align-items: center; display: flex; gap: 1.1rem; justify-content: space-between; }
.cookie-banner__copy { align-items: flex-start; display: flex; gap: 0.8rem; max-width: 580px; }
.cookie-banner__icon { align-items: center; background: rgba(255, 133, 140, 0.16); border-radius: 12px; color: #ff9aa0; display: flex; flex: 0 0 auto; font-size: 1rem; height: 38px; justify-content: center; width: 38px; }
.cookie-banner strong { color: #fff; display: block; font-size: 0.96rem; margin-bottom: 0.18rem; }
.cookie-banner p { color: rgba(241, 247, 255, 0.8); font-size: 0.83rem; line-height: 1.5; margin: 0; }
.cookie-banner a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.55rem; justify-content: flex-end; }
.cookie-action {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.68rem 0.78rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.cookie-action:hover, .cookie-action:focus-visible { background: #fff; border-color: #fff; color: var(--cookie-navy); transform: translateY(-1px); }
.cookie-action--primary { background: #fff; border-color: #fff; color: var(--cookie-navy); }
.cookie-action--primary:hover, .cookie-action--primary:focus-visible { background: #ffdde0; border-color: #ffdde0; }

.cookie-modal { align-items: center; background: rgba(3, 12, 25, 0.66); display: flex; inset: 0; justify-content: center; padding: 20px; position: fixed; z-index: 3100; }
.cookie-modal__dialog { background: #fff; border-radius: 20px; box-shadow: 0 28px 64px rgba(2, 10, 23, 0.36); color: #12243a; max-width: 620px; padding: clamp(1.35rem, 4vw, 2rem); width: 100%; }
.cookie-modal__top { align-items: flex-start; display: flex; gap: 1rem; justify-content: space-between; }
.cookie-modal h2 { color: var(--cookie-navy); font-size: clamp(1.45rem, 3vw, 2rem); margin: 0; }
.cookie-modal__top p { color: #536579; font-size: 0.9rem; line-height: 1.6; margin: 0.55rem 0 0; max-width: 490px; }
.cookie-close { background: #f1f4f8; border: 0; border-radius: 10px; color: #34495f; cursor: pointer; font-size: 1rem; height: 36px; width: 36px; }
.cookie-choice { align-items: flex-start; border: 1px solid var(--cookie-line); border-radius: 13px; display: flex; gap: 0.85rem; margin-top: 1rem; padding: 1rem; }
.cookie-choice input { accent-color: var(--cookie-red); height: 18px; margin-top: 0.18rem; width: 18px; }
.cookie-choice h3 { color: var(--cookie-navy); font-size: 0.96rem; margin: 0 0 0.15rem; }
.cookie-choice p { color: #5b6d80; font-size: 0.82rem; line-height: 1.5; margin: 0; }
.cookie-choice--necessary { background: #f8fafc; }
.cookie-modal__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; justify-content: flex-end; margin-top: 1.25rem; }
.cookie-modal__actions .cookie-action { border-color: #9baabb; color: var(--cookie-navy); }
.cookie-modal__actions .cookie-action:hover, .cookie-modal__actions .cookie-action:focus-visible { background: var(--cookie-navy); border-color: var(--cookie-navy); color: #fff; }
.cookie-modal__actions .cookie-action--primary { background: var(--cookie-red); border-color: var(--cookie-red); color: #fff; }
.cookie-modal__actions .cookie-action--primary:hover, .cookie-modal__actions .cookie-action--primary:focus-visible { background: #b81320; border-color: #b81320; }

.cookie-settings-link { background: transparent; border: 0; color: inherit; cursor: pointer; font: inherit; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { align-items: center; display: flex; flex-wrap: wrap; gap: 0.45rem 0.9rem; justify-content: center; margin-top: 0.45rem; }
.footer-legal a, .footer-legal button { color: inherit; font-size: 0.78rem; }

[data-consent-media] { background: #061124; position: relative; }
[data-consent-media] iframe { height: 100%; width: 100%; }
.consent-media-placeholder { align-items: center; color: #fff; display: flex; flex-direction: column; inset: 0; justify-content: center; padding: 1.5rem; position: absolute; text-align: center; }
.consent-media-placeholder i { align-items: center; background: rgba(255, 255, 255, 0.12); border-radius: 50%; color: #ff969c; display: flex; font-size: 1.1rem; height: 46px; justify-content: center; margin-bottom: 0.75rem; width: 46px; }
.consent-media-placeholder strong { font-size: 0.95rem; }
.consent-media-placeholder p { color: rgba(255, 255, 255, 0.72); font-size: 0.8rem; line-height: 1.5; margin: 0.35rem 0 0.8rem; max-width: 430px; }
.consent-media-placeholder button { background: transparent; border: 1px solid rgba(255, 255, 255, 0.66); border-radius: 999px; color: #fff; cursor: pointer; font: inherit; font-size: 0.77rem; font-weight: 800; padding: 0.5rem 0.7rem; }
.consent-media-placeholder button:hover, .consent-media-placeholder button:focus-visible { background: #fff; color: var(--cookie-navy); }

@media (max-width: 760px) {
    .cookie-banner { bottom: 10px; padding: 1rem; width: calc(100% - 20px); }
    .cookie-banner__content { align-items: stretch; flex-direction: column; }
    .cookie-banner__actions { justify-content: stretch; }
    .cookie-action { flex: 1 1 130px; }
    .cookie-modal { align-items: flex-end; padding: 10px; }
    .cookie-modal__dialog { border-radius: 18px 18px 12px 12px; max-height: calc(100vh - 20px); overflow-y: auto; }
    .cookie-modal__actions .cookie-action { flex: 1 1 150px; }
}
