/**
 * GDPR Cookie Consent Styles
 * OwnOVR Theme - Brutalist Style
 */

/* Container */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 380px;
    background: #fff;
    border: 1px solid #000;
    padding: 20px;
    z-index: 9999;
    font-family: var(--font-primary, 'Courier New', monospace);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 4px 4px 0 #000;
}

.cookie-consent--visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-consent--hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* Content */
.cookie-consent__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-consent__text p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #333;
}

/* Actions */
.cookie-consent__actions {
    display: flex;
    gap: 10px;
}

.cookie-consent__btn {
    padding: 10px 16px;
    font-family: var(--font-primary, 'Courier New', monospace);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #000;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-consent__btn--accept {
    background: #000;
    color: #fff;
    flex: 1;
}

.cookie-consent__btn--accept:hover {
    background: #333;
}

.cookie-consent__btn--settings {
    background: transparent;
    color: #000;
}

.cookie-consent__btn--settings:hover {
    background: #f5f5f5;
}

.cookie-consent__btn--save {
    background: #000;
    color: #fff;
    width: 100%;
}

.cookie-consent__btn--save:hover {
    background: #333;
}

/* Settings Panel */
.cookie-consent__settings {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.cookie-consent__setting {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cookie-consent__setting:last-of-type {
    border-bottom: none;
}

.cookie-consent__setting-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cookie-consent__setting-info strong {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-consent__setting-info span {
    font-size: 11px;
    color: #666;
}

/* Toggle Switch */
.cookie-consent__toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    flex-shrink: 0;
}

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

.cookie-consent__toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.2s;
}

.cookie-consent__toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.2s;
}

.cookie-consent__toggle input:checked + .cookie-consent__toggle-slider {
    background-color: #000;
}

.cookie-consent__toggle input:disabled + .cookie-consent__toggle-slider {
    background-color: #666;
    cursor: not-allowed;
}

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

/* Settings Actions */
.cookie-consent__settings-actions {
    margin-top: 16px;
}

/* Mobile */
@media (max-width: 480px) {
    .cookie-consent {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
    
    .cookie-consent__actions {
        flex-direction: column;
    }
    
    .cookie-consent__btn--settings {
        order: 2;
    }
}
