/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--matcha-green) 0%, var(--matcha-light) 100%);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(45, 80, 22, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.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-text {
    flex: 1;
}

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

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

.cookie-text a {
    color: var(--beige);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.cookie-text a:hover {
    opacity: 0.8;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

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

.cookie-btn-accept:hover {
    background: var(--beige-light);
    transform: translateY(-1px);
}

.cookie-btn-reject {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.cookie-btn-customize {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

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

.cookie-settings-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-settings-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.cookie-settings-header h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--matcha-green);
    margin-bottom: 0.5rem;
}

.cookie-settings-header p {
    color: var(--sumi);
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-settings-body {
    padding: 1.5rem 2rem;
}

.cookie-category {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

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

.cookie-category h4 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--matcha-green);
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background: var(--light-gray);
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s ease;
}

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

.cookie-toggle.active {
    background: var(--matcha-accent);
}

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

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

.cookie-category p {
    color: var(--sumi);
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-settings-footer {
    padding: 1rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.cookie-settings-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.cookie-settings-btn-save {
    background: linear-gradient(135deg, var(--matcha-green) 0%, var(--matcha-light) 100%);
    color: white;
}

.cookie-settings-btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
}

.cookie-settings-btn-cancel {
    background: var(--light-gray);
    color: var(--sumi);
}

.cookie-settings-btn-cancel:hover {
    background: var(--beige-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .cookie-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cookie-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .cookie-settings-modal {
        padding: 1rem;
    }
    
    .cookie-settings-content {
        max-height: 90vh;
    }
    
    .cookie-settings-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .cookie-settings-body {
        padding: 1rem 1.5rem;
    }
    
    .cookie-settings-footer {
        padding: 1rem 1.5rem 1.5rem;
        flex-direction: column;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-text h4 {
        font-size: 1rem;
    }
    
    .cookie-text p {
        font-size: 0.85rem;
    }
    
    .cookie-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}