.cookie-consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    padding: 0.85rem;
    pointer-events: none;
}

.cookie-consent__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    width: min(100%, 72rem);
    margin: 0 auto;
    padding: 1rem;
    border: 1px solid rgba(111, 135, 161, 0.72);
    border-radius: 0.625rem;
    background: linear-gradient(145deg, rgba(16, 25, 37, 0.98) 0%, rgba(12, 20, 31, 0.98) 100%);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: #e7edf5;
    pointer-events: auto;
}

.cookie-consent__content {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.cookie-consent__title,
.cookie-consent-modal__title {
    margin: 0;
    color: #f6f9fc;
    font-size: 1rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.cookie-consent__body,
.cookie-consent-modal__intro {
    margin: 0;
    color: #b6c5d4;
    font-size: 0.9rem;
    line-height: 1.45;
}

.cookie-consent__actions,
.cookie-consent-modal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.cookie-consent__actions {
    display: grid;
    grid-template-columns: minmax(13rem, 1fr);
    align-content: center;
    gap: 0.45rem;
    width: min(100%, 26rem);
}

.cookie-consent__secondary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.cookie-consent__button {
    min-height: 2.55rem;
    border-radius: 0.375rem;
    padding: 0.65rem 0.9rem;
    white-space: nowrap;
}

.cookie-consent__actions > .cookie-consent__button--primary {
    width: 100%;
}

.cookie-consent__secondary-actions .cookie-consent__button {
    min-height: 2.2rem;
    padding: 0.5rem 0.62rem;
    font-size: 0.82rem;
}

.cookie-consent__link {
    color: #f3b45f;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

.cookie-consent__link:hover {
    color: #ffd08a;
}

.cookie-consent__button--primary {
    border-color: #df983a;
    background: linear-gradient(160deg, #f3b45f 0%, #eea849 100%);
    color: #101923;
}

.cookie-consent__button--primary:hover {
    border-color: #e4a24b;
    background: linear-gradient(160deg, #f6bf70 0%, #f0af58 100%);
    box-shadow: 0 8px 18px rgba(238, 168, 73, 0.26);
}

.cookie-consent__button--secondary {
    border-color: #4f657e;
    background: rgba(31, 46, 64, 0.95);
    color: #eef5fb;
}

.cookie-consent__button--secondary:hover {
    border-color: #6f87a1;
    background: #293d53;
}

.cookie-consent__button--outline {
    border-color: #4f657e;
    background: rgba(10, 18, 28, 0.72);
    color: #dce8f5;
}

.cookie-consent__button--outline:hover {
    border-color: #7f96ad;
    background: rgba(31, 46, 64, 0.88);
}

.cookie-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(5, 10, 16, 0.66);
}

.cookie-consent-modal[hidden] {
    display: none;
}

.cookie-consent-modal__dialog {
    display: grid;
    gap: 1rem;
    width: min(100%, 34rem);
    max-height: min(44rem, calc(100vh - 2rem));
    overflow: auto;
    padding: 1.1rem;
    border: 1px solid rgba(111, 135, 161, 0.76);
    border-radius: 0.625rem;
    background: linear-gradient(150deg, #121f2d 0%, #0d1723 100%);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.54), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: #e7edf5;
}

.cookie-consent-modal__options {
    display: grid;
    gap: 0.65rem;
}

.cookie-consent-modal__option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    margin: 0;
    padding: 0.8rem;
    border: 1px solid rgba(79, 101, 126, 0.78);
    border-radius: 0.5rem;
    background: rgba(20, 32, 46, 0.84);
}

.cookie-consent-modal__option-copy {
    display: grid;
    gap: 0.16rem;
    min-width: 0;
}

.cookie-consent-modal__option-title {
    color: #f4f8fc;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
}

.cookie-consent-modal__option-description {
    color: #aebdcb;
    font-size: 0.82rem;
    line-height: 1.35;
}

.cookie-consent-modal__switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.cookie-consent-modal__switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.cookie-consent-modal__switch-track {
    position: relative;
    width: 3rem;
    height: 1.65rem;
    border: 1px solid #4f657e;
    border-radius: 999px;
    background: #0a121c;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.cookie-consent-modal__switch-track::after {
    content: '';
    position: absolute;
    top: 0.2rem;
    left: 0.22rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    background: #dce8f5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
    transition: transform 160ms ease, background-color 160ms ease;
}

.cookie-consent-modal__switch input:checked + .cookie-consent-modal__switch-track {
    border-color: #df983a;
    background: #c9862f;
}

.cookie-consent-modal__switch input:checked + .cookie-consent-modal__switch-track::after {
    transform: translateX(1.32rem);
    background: #fffaf0;
}

.cookie-consent-modal__switch input:disabled + .cookie-consent-modal__switch-track {
    opacity: 0.7;
}

.cookie-consent-modal__switch input:focus-visible + .cookie-consent-modal__switch-track {
    outline: 2px solid rgba(243, 180, 95, 0.62);
    outline-offset: 2px;
}

@media (max-width: 820px) {
    .cookie-consent__panel {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .cookie-consent__actions,
    .cookie-consent-modal__actions {
        justify-content: stretch;
    }

    .cookie-consent__actions {
        width: 100%;
    }

    .cookie-consent__button {
        flex: 1 1 12rem;
    }
}

@media (max-width: 560px) {
    .cookie-consent {
        padding: 0.5rem;
    }

    .cookie-consent__panel,
    .cookie-consent-modal__dialog {
        border-radius: 0.5rem;
        padding: 0.85rem;
    }

    .cookie-consent-modal__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-consent__secondary-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cookie-consent__button {
        width: 100%;
        white-space: normal;
    }
}
