.cookie-banner[hidden],
.cookie-modal[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 10000;
}

.cookie-banner-inner {
    max-width: 1180px;
    margin: 0 auto;
    background: #111827;
    color: #fff;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 16px 40px rgba(0,0,0,.28);
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text strong {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 16px;
}

.cookie-banner-text p {
    margin: 0;
    line-height: 1.55;
    font-size: 14px;
    color: #e5e7eb;
}

.cookie-banner-text a {
    color: #93c5fd;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-btn {
    appearance: none;
    border: 0;
    border-radius: 12px;
    padding: 11px 15px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .08s ease, opacity .15s ease, background .15s ease;
}

.cookie-btn:hover {
    transform: translateY(-1px);
}

.cookie-btn.primary {
    background: #2563eb;
    color: #fff;
}

.cookie-btn.secondary {
    background: #e5e7eb;
    color: #111827;
}

.cookie-btn.tertiary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.24);
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10010;
    background: rgba(15, 23, 42, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-card {
    width: 100%;
    max-width: 720px;
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,.20);
}

.cookie-modal-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #111827;
}

.cookie-modal-intro {
    margin: 0 0 18px;
    color: #6b7280;
}

.cookie-choice {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
}

.cookie-choice:first-of-type {
    border-top: 0;
}

.cookie-choice strong {
    display: block;
    margin-bottom: 4px;
    color: #111827;
}

.cookie-choice p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 14px;
    color: #111827;
}

.cookie-switch-disabled {
    opacity: .7;
}

.cookie-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 18px;
}

@media (max-width: 820px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions {
        justify-content: stretch;
    }

    .cookie-banner-actions .cookie-btn {
        flex: 1 1 100%;
    }
}

@media (max-width: 640px) {
    .cookie-choice {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-modal-card {
        padding: 18px;
    }
}