.cookie-consent {
    position: fixed;
    left: 50%;
    bottom: max(22px, env(safe-area-inset-bottom));
    z-index: 1200;
    width: min(calc(100% - 32px), 520px);
    max-height: min(80vh, 360px);
    overflow-y: auto;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
    color: #111827;
    transform: translate(-50%, 18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
    -webkit-overflow-scrolling: touch;
}

.cookie-consent.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.cookie-consent__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.cookie-consent__title {
    margin: 0 0 5px;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.cookie-consent__copy {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.cookie-consent__action {
    min-width: 96px;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 0 16px;
    color: #ffffff;
    background: #2b6cb0;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s ease, transform 0.18s ease;
}

.cookie-consent__action:hover {
    background: #1f4f8a;
    transform: translateY(-1px);
}

.cookie-consent__action:focus-visible {
    outline: 3px solid rgba(43, 108, 176, 0.28);
    outline-offset: 2px;
}

@media (max-width: 560px) {
    .cookie-consent {
        bottom: max(14px, env(safe-area-inset-bottom));
        width: min(calc(100% - 24px), 520px);
        padding: 16px;
    }

    .cookie-consent__inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cookie-consent__action {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .cookie-consent {
        width: min(calc(100% - 16px), 520px);
        padding: 14px;
    }

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

    .cookie-consent__copy,
    .cookie-consent__action {
        font-size: 12px;
    }
}

@media (max-height: 420px) and (orientation: landscape) {
    .cookie-consent {
        bottom: 8px;
        max-height: calc(100vh - 16px);
    }
}

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