/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 3px solid var(--matcha-green);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 2rem 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

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

.cookie-text {
    margin-bottom: 1.5rem;
}

.cookie-text h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-family: 'Noto Serif JP', serif;
}

.cookie-text p {
    margin: 0;
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--primary-green);
    text-decoration: underline;
}

.cookie-text a:hover {
    color: var(--matcha-green);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    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: all 0.3s ease;
    font-family: inherit;
    min-width: 120px;
}

.cookie-btn.accept {
    background: var(--primary-green);
    color: var(--white);
}

.cookie-btn.accept:hover {
    background: #0a3a2b;
}

.cookie-btn.reject {
    background: #dc3545;
    color: var(--white);
}

.cookie-btn.reject:hover {
    background: #c82333;
}

.cookie-btn.customize {
    background: var(--matcha-green);
    color: var(--white);
}

.cookie-btn.customize:hover {
    background: #7a9f4f;
}

.cookie-btn.secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--border-color);
}

.cookie-btn.secondary:hover {
    background: var(--light-gray);
}

/* Cookie Customization Panel */
.cookie-customization {
    background: var(--cream);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 1rem;
}

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

.cookie-custom-content h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    font-family: 'Noto Serif JP', serif;
}

.cookie-categories {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cookie-category {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

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

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--primary-green);
}

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

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

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

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider {
    background: var(--matcha-green);
}

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

.cookie-toggle input[type="checkbox"]:disabled + .toggle-slider {
    background: var(--matcha-green);
    opacity: 0.6;
}

.cookie-category-desc {
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-custom-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cookie-policy-link {
    text-align: center;
}

.cookie-policy-link a {
    color: var(--primary-green);
    text-decoration: underline;
    font-size: 0.9rem;
}

.cookie-policy-link a:hover {
    color: var(--matcha-green);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-buttons {
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1 1 auto;
        min-width: 100px;
    }
    
    .cookie-categories {
        gap: 1rem;
    }
    
    .cookie-category {
        padding: 1rem;
    }
    
    .cookie-custom-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 1rem 0;
    }
    
    .cookie-content,
    .cookie-custom-content {
        padding: 0 15px;
    }
    
    .cookie-text p {
        font-size: 0.9rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cookie-btn {
        width: 100%;
        min-width: auto;
    }
    
    .cookie-toggle {
        font-size: 0.9rem;
    }
    
    .toggle-slider {
        width: 44px;
        height: 22px;
    }
    
    .toggle-slider::before {
        width: 18px;
        height: 18px;
    }
    
    .cookie-toggle input[type="checkbox"]:checked + .toggle-slider::before {
        transform: translateX(22px);
    }
}