/* Cookie consent banner + floating reopen icon.
   Использует дизайн-токены сайта: шрифт "Gotham Pro", акцент #b4d3d3,
   box-shadow 0px 0px 4px 1px rgb(0 1 1 / 5%), border-radius 29.5px / 50%. */

:root {
    --cookie-consent-accent: #fafafa;
    --cookie-consent-accent-light: #c2dede;
    --cookie-consent-text: #5c3d2a;
    --cookie-consent-icon-offset-bottom: 90px;
    --cookie-consent-icon-offset-right: 20px;
}

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background-color: rgba(180, 211, 211, 0.875);
    backdrop-filter: blur(16px) saturate(3.8);
    box-shadow: 0px 0px 4px 1px rgb(0 1 1 / 5%);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.cookie-consent.is-visible {
    transform: translateY(0);
}

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

.cookie-consent__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.cookie-consent__text {
    font-family: "Gotham Pro", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--cookie-consent-text);
    margin: 0;
    flex: 1 1 320px;
}

.cookie-consent__link {
    color: var(--cookie-consent-text);
    text-decoration: none;
    border-bottom: 1px solid;
    transition: opacity 0.3s ease;
    font-size: 14px;
}

.cookie-consent__link:hover,
.cookie-consent__link:focus-visible {
    opacity: 0.7;
}

.cookie-consent__btn {
    font-family: "Gotham Pro", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(18, 18, 18, 0.875);
    background: #ffebeb;
    border: none;
    border-radius: 29.5px;
    padding: 14px 32px;
    cursor: pointer;
    flex: 0 0 auto;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-consent__btn:hover {
    opacity: 0.85;
}

.cookie-consent__btn:focus-visible {
    outline: 2px solid #ffebeb;
    outline-offset: 2px;
}

.cookie-consent-icon {
    position: fixed;
    right: var(--cookie-consent-icon-offset-right);
    bottom: var(--cookie-consent-icon-offset-bottom);
    z-index: 9998;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #b4d3d3;
    box-shadow: 0px 0px 4px 1px rgb(0 1 1 / 5%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
}

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

.cookie-consent-icon svg {
    width: 26px;
    height: 26px;
}

.cookie-consent-icon:hover,
.cookie-consent-icon:focus-visible {
    transform: scale(1.1);
}

.cookie-consent-icon:focus-visible {
    outline: 2px solid var(--cookie-consent-text);
    outline-offset: 2px;
}

@media (max-width: 766px) {
    .cookie-consent__inner {
        padding: 16px 0;
        gap: 16px;
    }

    .cookie-consent__btn {
        padding: 12px 24px;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    :root {
        --cookie-consent-icon-offset-bottom: 80px;
        --cookie-consent-icon-offset-right: 12px;
    }

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

    .cookie-consent-icon {
        width: 44px;
        height: 44px;
    }

    .cookie-consent-icon svg {
        width: 22px;
        height: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent,
    .cookie-consent-icon {
        transition: none;
    }
}
