/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1F2937;
    color: #F5F2E8;
    padding: 2rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 3px solid #2D4A3E;
}

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

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

.cookie-banner-text {
    line-height: 1.6;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.cookie-banner-text h4 {
    color: #F5F2E8;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

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

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

.cookie-banner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.cookie-banner-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.cookie-btn {
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
    text-align: center;
    white-space: nowrap;
}

.cookie-btn-accept {
    background-color: #2D4A3E;
    color: white;
}

.cookie-btn-accept:hover {
    background-color: #245036;
}

.cookie-btn-decline,
.cookie-btn-customize {
    background-color: transparent;
    color: #F5F2E8;
    border: 1px solid #6B7280;
}

.cookie-btn-decline:hover,
.cookie-btn-customize:hover {
    background-color: #374151;
}

.cookie-btn-small {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
}

/* Cookie Customization Modal */
.cookie-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.cookie-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.cookie-modal h3 {
    color: #1F2937;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

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

.cookie-category h4 {
    color: #2D4A3E;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cookie-category p {
    color: #6B7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2D4A3E;
}

.cookie-toggle label {
    font-weight: 500;
    color: #1F2937;
}

.cookie-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .cookie-banner-actions {
        grid-template-columns: 1fr;
    }
    
    .cookie-banner-secondary {
        grid-template-columns: 1fr;
    }
    
    .cookie-modal-content {
        margin: 2% auto;
        padding: 1.5rem;
        width: 95%;
    }
    
    .cookie-modal-actions {
        flex-direction: column;
    }
}