.cookie-consent {
    position: fixed;
    z-index: 10050;
    left: 50%;
    bottom: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    width: min(960px, calc(100% - 32px));
    padding: 18px 20px;
    box-sizing: border-box;
    color: #2d3748;
    background: #ffffff;
    border: 1px solid #cbd5e0;
    border-left: 5px solid #3182ce;
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(26, 54, 93, 0.22);
    transform: translateX(-50%);
}

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

.cookie-consent__content {
    min-width: 0;
}

.cookie-consent__title {
    display: block;
    margin-bottom: 4px;
    color: #1a365d;
    font-size: 1rem;
}

.cookie-consent__description {
    margin: 0;
    color: #4a5568;
    font-size: 0.86rem;
    line-height: 1.5;
}

.cookie-consent__description a {
    color: #2b6cb0;
    font-weight: 700;
}

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

.cookie-consent__button {
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid #3182ce;
    border-radius: 6px;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cookie-consent__button--necessary {
    color: #2b6cb0;
    background: #ffffff;
}

.cookie-consent__button--necessary:hover,
.cookie-consent__button--necessary:focus-visible {
    color: #1a365d;
    background: #ebf8ff;
    border-color: #2b6cb0;
}

.cookie-consent__button--accept {
    color: #ffffff;
    background: #3182ce;
}

.cookie-consent__button--accept:hover,
.cookie-consent__button--accept:focus-visible {
    color: #ffffff;
    background: #2b6cb0;
    border-color: #2b6cb0;
}

.cookie-settings-button {
    padding: 0;
    color: #3182ce;
    background: none;
    border: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.cookie-settings-button:hover,
.cookie-settings-button:focus-visible {
    color: #2b6cb0;
    text-decoration: underline;
}

@media (max-width: 760px) {
    .cookie-consent {
        bottom: calc(76px + env(safe-area-inset-bottom));
        grid-template-columns: 1fr;
        gap: 14px;
        width: calc(100% - 24px);
        padding: 15px;
    }

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

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

@media (max-width: 420px) {
    .cookie-consent {
        gap: 12px;
        padding: 13px;
    }

    .cookie-consent__description {
        font-size: 0.8rem;
    }

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

@media (prefers-reduced-motion: no-preference) {
    .cookie-consent:not([hidden]) {
        animation: cookie-consent-in 0.25s ease-out;
    }

    @keyframes cookie-consent-in {
        from {
            opacity: 0;
            transform: translate(-50%, 14px);
        }
        to {
            opacity: 1;
            transform: translate(-50%, 0);
        }
    }
}
