/* Banner e modal de consentimento de cookies — Qualistage / LGPD */

#cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99998;
    padding: 16px;
    background: rgba(20, 20, 20, 0.97);
    color: #f5f5f5;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
    transform: translateY(110%);
    transition: transform 0.35s ease;
    font-size: 14px;
    line-height: 1.5;
}

#cookie-consent-banner.is-visible {
    transform: translateY(0);
}

.cookie-consent-banner__inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.cookie-consent-banner__text {
    flex: 1 1 280px;
    margin: 0;
}

.cookie-consent-banner__text a {
    color: #6ec4ff;
    text-decoration: underline;
}

.cookie-consent-banner__actions {
    flex: 1 1 280px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.cookie-consent-btn {
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

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

.cookie-consent-btn--primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: #fff;
}

.cookie-consent-btn--secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.cookie-consent-btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

#cookie-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.55);
}

#cookie-consent-modal.is-open {
    display: flex;
}

.cookie-consent-modal__panel {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    color: #333;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.cookie-consent-modal__panel h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.cookie-consent-modal__panel > p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.cookie-consent-category {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.cookie-consent-category__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cookie-consent-category__head strong {
    font-size: 14px;
    color: #222;
}

.cookie-consent-category__head span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
}

.cookie-consent-category p {
    margin: 8px 0 0;
    font-size: 13px;
    color: #666;
    line-height: 1.45;
}

.cookie-consent-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-consent-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-consent-switch__slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    transition: background 0.2s;
}

.cookie-consent-switch__slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.cookie-consent-switch input:checked + .cookie-consent-switch__slider {
    background: #007bff;
}

.cookie-consent-switch input:checked + .cookie-consent-switch__slider:before {
    transform: translateX(20px);
}

.cookie-consent-switch input:disabled + .cookie-consent-switch__slider {
    opacity: 0.55;
    cursor: not-allowed;
}

.cookie-consent-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    justify-content: flex-end;
}

.cookie-consent-footer-link {
    cursor: pointer;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .cookie-consent-banner__actions {
        justify-content: stretch;
    }

    .cookie-consent-banner__actions .cookie-consent-btn {
        flex: 1 1 100%;
        text-align: center;
    }
}
