/* GDPR Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    border-top: 3px solid var(--yuzu-yellow, #FFD700);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    padding: 20px 0;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease-in-out;
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

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

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--charcoal-black, #333333);
}

.cookie-text a {
    color: var(--indigo-blue, #4B0082);
    text-decoration: none;
    font-weight: 500;
}

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

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Noto Sans JP', sans-serif;
}

.cookie-btn.accept {
    background-color: var(--indigo-blue, #4B0082);
    color: white;
}

.cookie-btn.accept:hover {
    background-color: #5A1A9B;
    transform: translateY(-1px);
}

.cookie-btn.reject {
    background-color: var(--charcoal-black, #333333);
    color: white;
}

.cookie-btn.reject:hover {
    background-color: #555555;
    transform: translateY(-1px);
}

.cookie-btn.customize {
    background-color: var(--yuzu-yellow, #FFD700);
    color: var(--charcoal-black, #333333);
    border: 2px solid var(--yuzu-yellow, #FFD700);
}

.cookie-btn.customize:hover {
    background-color: #E6C200;
    border-color: #E6C200;
    transform: translateY(-1px);
}

/* Cookie Customization Panel */
.cookie-customization {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.cookie-custom-content {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-custom-content h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--charcoal-black, #333333);
    margin-bottom: 20px;
    text-align: center;
}

.cookie-categories {
    margin-bottom: 30px;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fafafa;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 12px;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    transition: background-color 0.3s ease;
}

.toggle-slider:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider {
    background-color: var(--indigo-blue, #4B0082);
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-slider.essential {
    background-color: var(--yuzu-yellow, #FFD700);
    opacity: 0.7;
    cursor: not-allowed;
}

.toggle-slider.essential:before {
    background-color: var(--charcoal-black, #333333);
}

.category-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--charcoal-black, #333333);
}

.category-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    margin: 0;
}

.cookie-custom-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-custom-buttons .cookie-btn {
    min-width: 120px;
}

.cookie-btn.save {
    background-color: var(--indigo-blue, #4B0082);
    color: white;
}

.cookie-btn.save:hover {
    background-color: #5A1A9B;
}

.cookie-btn.cancel {
    background-color: #f5f5f5;
    color: var(--charcoal-black, #333333);
    border: 1px solid #ddd;
}

.cookie-btn.cancel:hover {
    background-color: #e8e8e8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .cookie-text {
        min-width: auto;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 100px;
    }
    
    .cookie-custom-content {
        padding: 20px;
        margin: 10px;
    }
    
    .cookie-custom-content h3 {
        font-size: 20px;
    }
    
    .cookie-category {
        padding: 15px;
    }
    
    .cookie-custom-buttons {
        flex-direction: column;
    }
    
    .cookie-custom-buttons .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px 0;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
    
    .cookie-custom-content {
        max-height: 90vh;
    }
}