/* Cookie consent — modern bottom bar */

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 9990;
    padding: 0.875rem;
    pointer-events: none;
}

.cookie-consent:not([hidden]) {
    pointer-events: auto;
}

.cookie-consent__panel {
    display: flex;
    align-items: center;
    gap: clamp(0.875rem, 2vw, 1.25rem);
    max-width: 72rem;
    margin: 0 auto;
    padding: clamp(1rem, 2.2vw, 1.25rem) clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.125rem;
    background:
        linear-gradient(135deg, rgba(17, 25, 78, 0.97) 0%, rgba(20, 36, 135, 0.95) 52%, rgba(17, 25, 78, 0.94) 100%);
    color: rgba(255, 255, 255, 0.86);
    box-shadow:
        0 24px 48px rgba(0, 10, 31, 0.34),
        0 8px 20px rgba(0, 31, 81, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateY(calc(100% + 1.5rem));
    opacity: 0;
    transition:
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.32s ease;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.cookie-consent a {
    pointer-events: auto;
}

.cookie-consent.is-visible .cookie-consent__panel {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cookie-consent__icon svg {
    width: 1.375rem;
    height: 1.375rem;
}

.cookie-consent__content {
    flex: 1;
    min-width: 0;
}

.cookie-consent__title {
    margin: 0 0 0.375rem;
    font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.cookie-consent__message {
    margin: 0;
    font-size: clamp(0.8125rem, 1.6vw, 0.9375rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.74);
}

.cookie-consent__policy-link {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 2;
    transition: color 0.2s ease;
}

.cookie-consent__policy-link:hover {
    color: #93c5fd;
}

.cookie-consent__actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}

.cookie-consent__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.625rem;
    padding: 0.625rem 1.25rem;
    border: 0;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    white-space: nowrap;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.cookie-consent__btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.cookie-consent__btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.cookie-consent__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.cookie-consent__btn--primary {
    background: linear-gradient(135deg, #FE000B 0%, #c90009 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(254, 0, 11, 0.28);
}

.cookie-consent__btn--primary:hover {
    background: linear-gradient(135deg, #ff2a32 0%, #FE000B 100%);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(254, 0, 11, 0.24);
}

@media (max-width: 767px) {
    .cookie-consent {
        padding: 0.625rem;
    }

    .cookie-consent__panel {
        flex-direction: column;
        align-items: stretch;
        gap: 0.875rem;
        border-radius: 1rem;
    }

    .cookie-consent__icon {
        width: 2.375rem;
        height: 2.375rem;
    }

    .cookie-consent__actions {
        width: 100%;
    }

    .cookie-consent__btn {
        flex: 1;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent__panel,
    .cookie-consent__btn {
        transition: none;
    }
}
