/* Cookie Consent Banner Styles - Uses Celero theme CSS variables */

.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    backdrop-filter: blur(1px);
}

.cookie-consent-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background-color: var(--surface, #ffffff);
    box-shadow: var(--shadow, 0 6px 18px rgba(0, 0, 0, 0.08));
    border-radius: var(--radius, 18px);
    z-index: 9999;
    font-family: var(--font, "Poppins", "Helvetica", sans-serif);
    color: var(--text, #2e2e2e);
}

.cookie-consent-container {
    width: 100%;
    padding: 20px;
}

/* Compact view styles */
.cookie-consent-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.cookie-consent-compact p {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text, #333);
}

.cookie-consent-compact-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
}

/* Expanded view styles */
.cookie-consent-expanded {
    display: none;
    max-height: 70vh;
    overflow-y: auto;
}

.cookie-consent-banner.collapsed .cookie-consent-compact {
    display: flex;
}

.cookie-consent-banner.collapsed .cookie-consent-expanded {
    display: none;
}

.cookie-consent-banner.expanded .cookie-consent-compact {
    display: none;
}

.cookie-consent-banner.expanded .cookie-consent-expanded {
    display: block;
}

.cookie-consent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.cookie-consent-header h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 400;
    color: var(--text, #333);
}

.cookie-collapse-button {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--muted, #666);
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: 1;
    position: absolute;
    top: 0;
    right: 0;
}

.cookie-collapse-button:hover {
    color: var(--text, #333);
}

.cookie-consent-content p {
    margin-bottom: 10px;
    color: var(--muted, #555);
    font-size: 13px;
}

.cookie-options-wrapper {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    border: 1px solid var(--bg, #eee);
    border-radius: calc(var(--radius, 18px) / 2);
    padding: 2px;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
}

.cookie-option {
    background-color: var(--bg, #f8f8f8);
    padding: 8px 12px;
    border-radius: calc(var(--radius, 18px) / 2);
    border: 1px solid var(--bg, #eee);
}

.cookie-option label {
    font-weight: bold;
    margin-left: 8px;
    color: var(--text, #333);
}

.cookie-description {
    margin-top: 3px;
    margin-bottom: 0;
    margin-left: 25px;
    font-size: 12px;
    color: var(--muted, #666);
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.cookie-consent-button {
    padding: 10px 20px;
    border-radius: var(--radius, 18px);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font, "Poppins", "Helvetica", sans-serif);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
}

.cookie-consent-button.expand-settings {
    background-color: transparent;
    color: var(--text, #333);
    border: 1px solid var(--muted, #ddd);
}

.cookie-consent-button.expand-settings:hover {
    background-color: var(--bg, #f0f0f0);
}

.cookie-consent-button.accept-all {
    background-color: var(--accent, #889664);
    color: var(--surface, #ffffff);
}

.cookie-consent-button.accept-all:hover {
    opacity: 0.9;
}

.cookie-consent-button.accept-selected,
.cookie-consent-button.accept-necessary {
    background-color: var(--bg, #f0f0f0);
    color: var(--text, #333);
}

.cookie-consent-button.accept-selected:hover,
.cookie-consent-button.accept-necessary:hover {
    opacity: 0.8;
}

/* Mobile styles */
@media (max-width: 480px) {
    .cookie-consent-banner {
        width: 95%;
        max-width: 95%;
    }

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

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