/* Cookie notice on the public pages — see application/views/includes/cookie_banner.php */

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 16px;
    width: calc(100% - 32px);
    max-width: 720px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 16px 48px rgba(0, 0, 0, 0.06);
}

.cookie-banner-text {
    flex: 1 1 auto;
    margin: 0;
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.cookie-banner-link {
    color: #6d28d9;
    text-decoration: underline;
}

.cookie-banner-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
}

.cookie-banner-button {
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cookie-banner-button-primary {
    background: #8b5cf6;
    color: #ffffff;
}

.cookie-banner-button-primary:hover,
.cookie-banner-button-primary:focus {
    background: #7c3aed;
}

.cookie-banner-button-secondary {
    background: #ffffff;
    border-color: #d1d5db;
    color: #4b5563;
}

.cookie-banner-button-secondary:hover,
.cookie-banner-button-secondary:focus {
    background: #f3f4f6;
}

@media (max-width: 575px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cookie-banner-actions {
        justify-content: stretch;
    }

    .cookie-banner-button {
        flex: 1 1 0;
    }
}

/* Withdraw link in the footer — see application/views/includes/cookie_consent_withdraw.php */

.cookie-consent-withdraw {
    margin: 0;
}

.cookie-consent-withdraw-button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
