.cookie-consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-consent-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.cookie-consent-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    z-index: 999999;
    width: min(560px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #fff;
    color: #333;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cookie-consent-banner.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.cookie-consent-banner__inner {
    position: relative;
    padding: 28px 28px 24px;
}

.cookie-consent-banner__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #888;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.cookie-consent-banner__close:hover {
    background: #f3f4f6;
    color: #2563eb;
}

.cookie-consent-banner__title {
    margin: 0 0 14px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    padding-right: 36px;
}

.cookie-consent-banner__text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #4b5563;
    margin-bottom: 18px;
}

.cookie-consent-banner__text strong {
    color: #111827;
}

.cookie-consent-banner__text a {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-consent-banner__text a:hover {
    color: #1e40af;
}

.cookie-consent-banner__links {
    margin-bottom: 20px;
    font-size: 0.88rem;
}

.cookie-consent-banner__links a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

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

.cookie-consent-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-consent-btn {
    flex: 1 1 140px;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.cookie-consent-btn--accept {
    background: #2563eb;
    color: #fff;
}

.cookie-consent-btn--accept:hover {
    background: #1e40af;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.cookie-consent-btn--reject {
    background: #fff;
    color: #374151;
    border: 2px solid #d1d5db;
}

.cookie-consent-btn--reject:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.cookie-consent-reopen {
    cursor: pointer;
}

body.cookie-consent-open {
    overflow: hidden;
}

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

    .cookie-consent-banner__actions {
        flex-direction: column;
    }

    .cookie-consent-btn {
        width: 100%;
    }
}
