.cookie-consent {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 10000;
    width: min(440px, calc(100vw - 32px));
    padding: 18px;
    color: #f5fff8;
    background: rgba(5, 18, 14, 0.96);
    border: 1px solid rgba(42, 255, 122, 0.24);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(14px);
}

.cookie-consent[hidden],
.cookie-preferences-btn[hidden] {
    display: none !important;
}

.cookie-consent__title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
}

.cookie-consent__text {
    margin: 0;
    color: #c4d6ce;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.55;
}

.cookie-consent__text a {
    color: #17e86f;
    text-decoration: none;
}

.cookie-consent__text a:hover {
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.cookie-consent__btn {
    min-height: 44px;
    flex: 1;
    border: 0;
    border-radius: 8px;
    padding: 0 14px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cookie-consent__btn:hover {
    transform: translateY(-1px);
}

.cookie-consent__btn--accept {
    color: #03120b;
    background: #17e86f;
}

.cookie-consent__btn--reject {
    color: #f5fff8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.cookie-preferences-btn {
    position: fixed;
    left: max(14px, env(safe-area-inset-left));
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 9999;
    min-height: 34px;
    padding: 0 12px;
    color: #c4d6ce;
    background: rgba(5, 18, 14, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 850;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.cookie-preferences-btn:hover {
    color: #17e86f;
    border-color: rgba(42, 255, 122, 0.28);
}

@media (max-width: 640px) {
    .cookie-consent {
        right: max(10px, env(safe-area-inset-right));
        bottom: max(10px, env(safe-area-inset-bottom));
        left: max(10px, env(safe-area-inset-left));
        width: auto;
        padding: 14px;
    }

    .cookie-consent__title {
        font-size: 0.95rem;
    }

    .cookie-consent__text {
        font-size: 0.82rem;
    }

    .cookie-consent__actions {
        gap: 8px;
    }

    .cookie-consent__btn {
        min-height: 42px;
        padding: 0 10px;
        font-size: 0.82rem;
    }

    .cookie-preferences-btn {
        left: max(10px, env(safe-area-inset-left));
        bottom: max(10px, env(safe-area-inset-bottom));
    }
}
