/* Cookie Consent - Minimal additions to customer.css */

/* Use existing classes from customer.css:
   - .site-header for glass morphism banner
   - .content-card for modal styling  
   - .btn, .btn-primary, .btn-secondary for buttons
   - Standard h3, p, a typography
*/

/* Banner positioning and glass morphism */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--vanilla-sex-transparent-05);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--lust-transparent-30);
    padding: var(--space-3) 0;
    z-index: var(--z-modal);
    animation: slideUp 0.3s ease-out;
}

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

.cookie-consent-content {
    max-width: var(--container-xl);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1 1 auto;
    min-width: 0;
}

.cookie-consent-actions {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

/* Compact text */
.cookie-consent-text h3 {
    font-size: var(--text-lg);
    margin: 0;
}

.cookie-consent-text p {
    font-size: var(--text-sm);
    margin: 0;
    line-height: 1.4;
}

.cookie-consent-text a {
    font-size: var(--text-sm);
    display: inline-block;
    margin-top: var(--space-1);
}

/* Smaller buttons for banner */
.cookie-consent-banner .btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

/* Modal overlay */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--midnight-sin-darker);
    opacity: 0.95;
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--lust-transparent-20);
    margin-bottom: var(--space-4);
}

.cookie-modal-header h2 {
    font-size: var(--text-xl);
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    color: var(--sensual-grey);
    font-size: var(--text-2xl);
    cursor: pointer;
    padding: 0;
    width: var(--space-8);
    height: var(--space-8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-colors);
}

.cookie-modal-close:hover {
    color: var(--vanilla-sex);
}

.cookie-modal-footer {
    padding-top: var(--space-4);
    margin-top: var(--space-4);
    border-top: 1px solid var(--lust-transparent-20);
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
}

/* Cookie category sections - more compact */
.cookie-category {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--lust-transparent-10);
}

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

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.cookie-category h3 {
    font-size: var(--text-base);
    margin: 0;
}

.cookie-category p {
    font-size: var(--text-sm);
    color: var(--sensual-grey);
    margin: 0;
    line-height: 1.4;
}

/* Badge style */
.cookie-badge {
    background: var(--lust-transparent-15);
    color: var(--lust);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-medium);
}

/* The ONLY truly new component - Toggle Switch (improved visibility) */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.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: var(--sensual-grey);
    border: 1px solid var(--lust-transparent-30);
    transition: var(--transition-all);
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: var(--vanilla-sex);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: var(--transition-all);
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
    background-color: var(--lust);
    border-color: var(--lust);
}

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

/* Link button variant */
.btn-link {
    background: none;
    color: var(--lust);
    border: none;
}

.btn-link:hover {
    text-decoration: underline;
    background: none;
    transform: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer .btn {
        width: 100%;
    }
}