/* Overlay */
.cookie-banner {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    animation: cookie-overlay-in 0.35s ease both;
}

@keyframes cookie-overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Modal box */
.cookie-banner__inner {
    background: #fff;
    border-radius: 6px;
    max-width: 440px;
    width: calc(100% - 40px);
    padding: 36px 32px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: cookie-modal-in 0.4s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

@keyframes cookie-modal-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Icon */
.cookie-banner__icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
}

/* Title */
.cookie-banner__title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
}

/* Text */
.cookie-banner__text {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 24px;
}

.cookie-banner__text a {
    color: #0e6738;
    text-decoration: underline;
}

.cookie-banner__text a:hover {
    color: #086029;
}

/* Buttons */
.cookie-banner__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie-banner__btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.cookie-banner__btn:active {
    transform: scale(0.98);
}

.cookie-banner__btn--accept {
    background: #0e6738;
    color: #fff;
}

.cookie-banner__btn--accept:hover {
    background: #086029;
}

.cookie-banner__btn--reject {
    background: transparent;
    color: #888;
    border: 1px solid #ddd;
    font-weight: 400;
}

.cookie-banner__btn--reject:hover {
    background: #f5f5f5;
    color: #444;
}

/* Close animation */
.cookie-banner--closing {
    animation: cookie-overlay-out 0.3s ease forwards;
}

.cookie-banner--closing .cookie-banner__inner {
    animation: cookie-modal-out 0.3s ease forwards;
}

@keyframes cookie-overlay-out {
    to { opacity: 0; }
}

@keyframes cookie-modal-out {
    to {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
}

@media (max-width: 480px) {
    .cookie-banner__inner {
        padding: 28px 20px 22px;
    }
}
