/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1B2951;
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

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

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-banner-text a {
    color: #FF6B35;
    text-decoration: none;
}

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

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
    white-space: nowrap;
}

.cookie-btn-accept,
.cookie-btn-accept-all {
    background: #FF6B35;
    color: white;
}

.cookie-btn-accept:hover,
.cookie-btn-accept-all:hover {
    background: #E55A2B;
}

.cookie-btn-reject,
.cookie-btn-essential {
    background: transparent;
    color: white;
    border: 1px solid #C0C0C0;
}

.cookie-btn-reject:hover,
.cookie-btn-essential:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-btn-customize {
    background: #1B2951;
    color: white;
    border: 1px solid #FF6B35;
}

.cookie-btn-customize:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Cookie Preferences Modal */
.cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cookie-preferences-modal.show {
    display: flex;
}

.cookie-preferences-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    color: #1B2951;
}

.cookie-preferences-content h3 {
    margin-bottom: 1rem;
    color: #1B2951;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-category h4 {
    margin: 0;
    font-size: 1.1rem;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 24px;
    background: #C0C0C0;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-toggle.active {
    background: #FF6B35;
}

.cookie-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.cookie-toggle.active::after {
    transform: translateX(26px);
}

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

.cookie-category p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.cookie-preferences-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-preferences-modal {
        padding: 1rem;
    }
    
    .cookie-preferences-content {
        padding: 1.5rem;
    }
    
    .cookie-preferences-buttons {
        flex-direction: column;
    }
}