/* Cookie Consent Popup Styles */
#cookie-consent-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 480px;
    background: rgba(30, 30, 28, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-top: 4px solid var(--yellow);
    padding: 32px;
    z-index: 100001;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: none;
    opacity: 0;
    border-radius: 4px;
}

#cookie-consent-popup.active {
    display: block;
}

/* Cookie Overlay */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100000;
    display: none;
    opacity: 0;
    pointer-events: auto;
}

.cookie-overlay.active {
    display: block;
}

/* Body Lock for Cookie Consent */
body.cookie-lock {
    overflow: hidden !important;
    height: 100vh !important;
    touch-action: none;
    -ms-touch-action: none;
}

.cookie-content h3 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--white);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cookie-content p {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 24px;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cookie-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cookie-btn-primary {
    background: var(--yellow);
    color: var(--text-dark);
}

.cookie-btn-primary:hover {
    background: var(--yellow-hover);
    transform: translateY(-2px);
}

.cookie-btn-secondary {
    background: var(--dark-3);
    color: var(--white);
    border: 1px solid var(--border);
}

.cookie-btn-secondary:hover {
    background: var(--border);
    border-color: var(--yellow);
}

.cookie-btn-text {
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    padding: 8px;
    width: 100%;
    margin-top: 12px;
}

.cookie-btn-text:hover {
    color: var(--yellow);
}

/* Customization View */
.cookie-custom-view {
    display: none;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.cookie-category {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.cookie-category-info {
    flex: 1;
    padding-right: 20px;
}

.cookie-category-info h4 {
    color: var(--white);
    font-size: 14px;
    margin-bottom: 4px;
}

.cookie-category-info p {
    font-size: 12px;
    margin-bottom: 0;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 44px;
    height: 22px;
    flex-shrink: 0;
}

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

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dark-3);
    border: 1px solid var(--border);
    transition: .4s;
    border-radius: 22px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-muted);
    transition: .4s;
    border-radius: 50%;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(22px);
    background-color: var(--text-dark);
}

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

@media (max-width: 480px) {
    #cookie-consent-popup {
        width: calc(100% - 32px);
        padding: 24px;
    }
    
    .cookie-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}
