.cookie-notice {
    position: fixed;
    left: max(16px, env(safe-area-inset-left));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 10000;
    width: min(560px, calc(100% - 32px));
    transform: translateY(calc(100% + 28px));
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.28s ease,
        opacity 0.28s ease;
}

.cookie-notice.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-notice__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    color: #fff8e8;
    background:
        linear-gradient(135deg, rgba(32, 41, 60, 0.96), rgba(15, 20, 31, 0.98)),
        rgba(17, 22, 34, 0.98);
    border: 1px solid rgba(255, 223, 143, 0.22);
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(10px);
}

.cookie-notice__title {
    margin: 0 0 5px;
    color: #ffdf8f;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 700;
}

.cookie-notice__text,
.cookie-notice__details {
    margin: 0;
    color: rgba(255, 248, 232, 0.82);
    font-size: 12.5px;
    line-height: 1.45;
}

.cookie-notice__details {
    grid-column: 1 / -1;
    display: none;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-notice.is-expanded .cookie-notice__details {
    display: block;
}

.cookie-notice__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.cookie-notice__button {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(255, 223, 143, 0.28);
    border-radius: 7px;
    color: #fff8e8;
    background: rgba(255, 255, 255, 0.06);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.cookie-notice__button:hover,
.cookie-notice__button:focus-visible {
    border-color: rgba(255, 223, 143, 0.58);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.cookie-notice__button--primary {
    color: #19140a;
    background: linear-gradient(135deg, #ffdf8f, #f0b94a);
    border-color: rgba(255, 223, 143, 0.76);
}

.cookie-notice__button--primary:hover,
.cookie-notice__button--primary:focus-visible {
    color: #120f08;
    background: linear-gradient(135deg, #ffe9ad, #f4c865);
}

@media (max-width: 640px) {
    .cookie-notice {
        width: calc(100% - 20px);
        left: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
    }

    .cookie-notice__panel {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
    }

    .cookie-notice__actions {
        justify-content: stretch;
    }

    .cookie-notice__button {
        flex: 1 1 0;
        padding: 0 10px;
    }
}
