/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.48);
    backdrop-filter: blur(16px) saturate(1.04);
    -webkit-backdrop-filter: blur(16px) saturate(1.04);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.cookie-consent.cookie-consent--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cookie-consent__inner {
    position: relative;
    width: min(100%, 820px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    display: grid;
    gap: 24px;
    padding: 34px 36px 32px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.26);
    text-align: left;
}

.cookie-consent__inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #2f8376;
}

.cookie-consent__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-consent__logo {
    display: block;
    width: 136px;
    height: auto;
    filter: invert(1);
}

.cookie-consent__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 999px;
    color: #111827;
    flex-shrink: 0;
}

.cookie-consent__icon svg {
    width: 21px;
    height: 21px;
}

.cookie-consent__content {
    display: grid;
    gap: 14px;
}

.cookie-consent__title {
    margin: 0;
    font-family: var(--font-primary, 'IBM Plex Sans', sans-serif);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    color: #050505;
}

.cookie-consent__text {
    font-family: var(--font-secondary, 'Inter', sans-serif);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.48;
    color: #111827;
    max-width: 40em;
    margin: 0;
}

.cookie-consent__text a {
    color: #6b7280;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s;
}

.cookie-consent__text a:hover {
    opacity: 0.8;
}

.cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cookie-consent__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    min-height: 58px;
    font-family: var(--font-primary, 'IBM Plex Sans', sans-serif);
    font-size: 17px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    border: none;
    line-height: 1;
    box-shadow: none;
}

.cookie-consent__btn--accept {
    background: #2f8376;
    color: #ffffff;
}

.cookie-consent__btn--accept:hover {
    background: #276f65;
    transform: translateY(-1px);
}

.cookie-consent__btn--reject {
    background: #e5e7eb;
    color: #111827;
    border: 1px solid #d1d5db;
}

.cookie-consent__btn--reject:hover {
    background: #d1d5db;
    border-color: #c3c8d0;
    transform: translateY(-1px);
}

/* Focus styles */
.cookie-consent__btn:focus-visible {
    outline: 3px solid rgba(47, 131, 118, 0.36);
    outline-offset: 2px;
}

/* Tablet */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 16px;
    }

    .cookie-consent__inner {
        width: min(100%, 540px);
        padding: 28px 22px 22px;
        gap: 20px;
    }

    .cookie-consent__logo {
        width: 122px;
    }

    .cookie-consent__title {
        font-size: 21px;
    }

    .cookie-consent__text {
        font-size: 15px;
    }

}

/* Small mobile */
@media (max-width: 480px) {
    .cookie-consent__actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cookie-consent__btn {
        width: 100%;
        min-height: 52px;
        font-size: 16px;
    }
}
