/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(45, 93, 61, 0.95);
    backdrop-filter: blur(10px);
    color: #F5F5DC;
    padding: 1rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

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

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

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

.cookie-banner-text a {
    color: #00B4D8;
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: #ffffff;
}

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

.cookie-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #F5F5DC;
    border-radius: 6px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-accept {
    background: #00B4D8;
    color: #fff;
    border-color: #00B4D8;
}

.cookie-accept:hover {
    background: #0096BB;
    border-color: #0096BB;
}

.cookie-decline {
    background: transparent;
    color: #F5F5DC;
    border-color: #F5F5DC;
}

.cookie-decline:hover {
    background: #F5F5DC;
    color: #2D5D3D;
}

.cookie-customize {
    background: transparent;
    color: #F5F5DC;
    border-color: #F5F5DC;
}

.cookie-customize:hover {
    background: rgba(245, 245, 220, 0.1);
    border-color: #00B4D8;
    color: #00B4D8;
}

/* Cookie Customization Panel */
.cookie-customization {
    background: rgba(45, 93, 61, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    border-top: 1px solid rgba(245, 245, 220, 0.2);
}

.cookie-custom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-custom-content h3 {
    color: #F5F5DC;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.cookie-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.cookie-category {
    background: rgba(245, 245, 220, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(245, 245, 220, 0.2);
}

.cookie-category-header {
    margin-bottom: 0.5rem;
}

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

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

.cookie-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: rgba(245, 245, 220, 0.3);
    border-radius: 24px;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

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

.cookie-toggle input:checked + .cookie-slider {
    background: #00B4D8;
}

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

.cookie-toggle input:disabled + .cookie-slider {
    background: #00B4D8;
    opacity: 0.7;
}

.cookie-label {
    color: #F5F5DC;
    font-weight: 500;
    font-size: 0.95rem;
}

.cookie-description {
    color: #ccc;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.cookie-custom-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cookie-save {
    background: #00B4D8;
    color: #fff;
    border-color: #00B4D8;
}

.cookie-save:hover {
    background: #0096BB;
    border-color: #0096BB;
}

.cookie-cancel {
    background: transparent;
    color: #F5F5DC;
    border-color: #F5F5DC;
}

.cookie-cancel:hover {
    background: #F5F5DC;
    color: #2D5D3D;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-banner-text {
        order: 1;
    }
    
    .cookie-banner-buttons {
        order: 2;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-btn {
        min-width: 100px;
    }
    
    .cookie-categories {
        grid-template-columns: 1fr;
    }
    
    .cookie-custom-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cookie-custom-buttons .cookie-btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 0.8rem 0;
    }
    
    .cookie-banner-content {
        padding: 0 15px;
    }
    
    .cookie-banner-text p {
        font-size: 0.9rem;
    }
    
    .cookie-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}