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

.cookie-consent {
    position: fixed;
    z-index: 12000;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    left: 20px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-consent._visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-consent__panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 1396px;
    margin: 0 auto;
    padding: 20px 24px;
    border: 1px solid #E8E9EC;
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: 0 18px 60px rgba(59, 65, 75, 0.2);
}

.cookie-consent__icon {
    position: relative;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    overflow: hidden;
    border-radius: 50%;
    background: #F5F0FF;
}

.cookie-consent__icon::before {
    content: "";
    position: absolute;
    inset: 11px;
    border-radius: 50%;
    background: #7B20FF;
}

.cookie-consent__icon::after {
    content: "";
    position: absolute;
    top: 7px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFFFFF;
}

.cookie-consent__icon span,
.cookie-consent__icon span::before,
.cookie-consent__icon span::after {
    position: absolute;
    z-index: 1;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #FFFFFF;
}

.cookie-consent__icon span {
    top: 20px;
    left: 20px;
}

.cookie-consent__icon span::before,
.cookie-consent__icon span::after {
    content: "";
}

.cookie-consent__icon span::before {
    top: 11px;
    left: 8px;
}

.cookie-consent__icon span::after {
    top: -5px;
    left: 13px;
}

.cookie-consent__content h2 {
    margin: 0 0 6px;
    color: #3B414B;
    font-family: "Roboto", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 125%;
}

.cookie-consent__content p {
    max-width: 760px;
    margin: 0;
    color: #626872;
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    line-height: 145%;
}

.cookie-consent__content a {
    color: #7B20FF;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-consent__button {
    appearance: none;
    border: 0;
    cursor: pointer;
    font-family: "Roboto", sans-serif;
}

.cookie-consent__button {
    min-height: 46px;
    padding: 10px 20px;
    border: 1px solid #7B20FF;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    line-height: 130%;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.cookie-consent__button--primary {
    color: #FFFFFF;
    background: #7B20FF;
    box-shadow: 0 8px 22px rgba(123, 32, 255, 0.22);
}

.cookie-consent__button--secondary {
    color: #7B20FF;
    background: #FFFFFF;
}

.cookie-consent__button:hover {
    color: #FFFFFF;
    background: #6514DE;
}

.cookie-consent__button:focus-visible {
    outline: 3px solid rgba(31, 198, 223, 0.45);
    outline-offset: 3px;
}

@media (max-width: 1200px) {
    .cookie-consent__panel {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .cookie-consent__actions {
        grid-column: 2;
    }
}

@media (max-width: 767px) {
    .cookie-consent {
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        left: 10px;
    }

    .cookie-consent__panel {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px;
        border-radius: 16px;
    }

    .cookie-consent__icon {
        display: none;
    }

    .cookie-consent__content h2 {
        font-size: 20px;
    }

    .cookie-consent__content p {
        font-size: 14px;
    }

    .cookie-consent__actions {
        grid-column: auto;
        flex-direction: column-reverse;
        align-items: stretch;
    }

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

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