/* Cookie consent UI */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 10001;
    background: #ffffff;
    border: 1px solid #d6e3f8;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    padding: 18px 18px 16px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner__title {
    margin: 0 0 8px;
    color: #05377e;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
}

.cookie-banner__text {
    margin: 0;
    color: #2c2f38;
    font-size: 15px;
    line-height: 1.6;
}

.cookie-banner__text a {
    color: #05377e;
    text-decoration: underline;
}

.cookie-banner__actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-btn {
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.cookie-btn--primary {
    background: #05377e;
    color: #ffffff;
}

.cookie-btn--primary:hover {
    background: #042d67;
}

.cookie-btn--outline {
    background: #ffffff;
    color: #05377e;
    border: 1px solid #05377e;
}

.cookie-btn--outline:hover {
    background: #e9f0ff;
}

.cookie-btn--ghost {
    background: #edf4ff;
    color: #05377e;
}

.cookie-btn--ghost:hover {
    background: #ddeaff;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10002;
    background: rgba(8, 13, 24, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cookie-modal.is-visible {
    display: flex;
}

.cookie-modal__panel {
    width: 100%;
    max-width: 680px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.24);
}

.cookie-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.cookie-modal__title {
    margin: 0;
    color: #05377e;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.cookie-modal__close {
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #edf4ff;
    color: #05377e;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.cookie-modal__text {
    margin: 0 0 18px;
    color: #2c2f38;
    font-size: 15px;
    line-height: 1.6;
}

.cookie-option {
    border: 1px solid #d6e3f8;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    align-items: start;
}

.cookie-option__title {
    margin: 0;
    color: #05377e;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
}

.cookie-option__desc {
    margin: 4px 0 0;
    color: #2c2f38;
    font-size: 14px;
    line-height: 1.55;
}

.cookie-switch {
    margin-top: 2px;
    position: relative;
    width: 46px;
    height: 26px;
    display: inline-block;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch__slider {
    position: absolute;
    inset: 0;
    background: #c7d8f5;
    border-radius: 20px;
    transition: 0.2s ease;
}

.cookie-switch__slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #ffffff;
    transition: 0.2s ease;
}

.cookie-switch input:checked + .cookie-switch__slider {
    background: #05377e;
}

.cookie-switch input:checked + .cookie-switch__slider::before {
    transform: translateX(20px);
}

.cookie-switch input:disabled + .cookie-switch__slider {
    background: #6f89b8;
}

.cookie-modal__actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (min-width: 768px) {
    .cookie-banner {
        left: auto;
        right: 20px;
        width: min(560px, calc(100vw - 40px));
    }
}

@media (max-width: 575px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 14px;
    }

    .cookie-banner__title {
        font-size: 18px;
    }

    .cookie-banner__text {
        font-size: 14px;
    }

    .cookie-modal {
        padding: 10px;
    }

    .cookie-modal__panel {
        padding: 14px;
        max-height: calc(100vh - 20px);
    }

    .cookie-modal__title {
        font-size: 20px;
    }
}
