/* Cookie Consent Banner Styles */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: slideUp 0.3s ease;
    border-top: 3px solid var(--brand-primary, #662D91);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-consent-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--lp-text-primary, #1e293b);
}

.cookie-consent-text p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: var(--lp-text-secondary, #64748b);
    line-height: 1.5;
}

.cookie-consent-link {
    font-size: 0.85rem !important;
}

.cookie-consent-link a {
    color: var(--brand-primary, #662D91);
    text-decoration: none;
    font-weight: 500;
}

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

.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-cookie-accept {
    background: var(--brand-primary, #662D91);
    color: #ffffff;
}

.btn-cookie-accept:hover {
    background: var(--brand-primary-dark, #551f7a);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 45, 145, 0.4);
}

.btn-cookie-reject {
    background: transparent;
    border: 2px solid var(--lp-border, #e5e7eb);
    color: var(--lp-text-secondary, #64748b);
}

.btn-cookie-reject:hover {
    background: var(--lp-surface, #f9fafb);
    border-color: var(--lp-text-secondary, #64748b);
}

/* Cookie Settings Modal */

.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cookie-settings-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInModal 0.3s ease;
}

@keyframes slideInModal {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-settings-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--lp-border, #e5e7eb);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--lp-text-primary, #1e293b);
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--lp-text-secondary, #64748b);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    transition: color 0.3s ease;
}

.cookie-settings-close:hover {
    color: var(--lp-text-primary, #1e293b);
}

.cookie-settings-body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--lp-border, #e5e7eb);
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cookie-category-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cookie-category h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--lp-text-primary, #1e293b);
}

.cookie-category p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--lp-text-secondary, #64748b);
    line-height: 1.5;
}

/* Toggle Switch */

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

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

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: var(--brand-primary, #662D91);
}

input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

input:disabled + .cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-settings-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--lp-border, #e5e7eb);
    display: flex;
    justify-content: flex-end;
}

.cookie-settings-footer .btn-cookie {
    min-width: 150px;
}

/* Responsive */

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        padding: 1.25rem 1.5rem;
        align-items: stretch;
    }

    .cookie-consent-buttons {
        flex-direction: column-reverse;
        width: 100%;
    }

    .btn-cookie {
        width: 100%;
    }

    .cookie-settings-content {
        width: 95%;
        max-height: 90vh;
    }

    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding: 1.25rem 1.5rem;
    }

    .cookie-category-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cookie-switch {
        align-self: flex-start;
    }
}

/* Small screens */
@media (max-width: 480px) {
    .cookie-consent-text h3 {
        font-size: 1rem;
    }

    .cookie-consent-text p {
        font-size: 0.85rem;
    }

    .btn-cookie {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }

    .cookie-settings-header h3 {
        font-size: 1.1rem;
    }
}
