/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(45, 55, 72, 0.98);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.5rem 0;
    z-index: 10000;
    border-top: 2px solid #DC2626;
    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;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
    font-family: 'Noto Serif JP', serif;
}

.cookie-text p {
    color: #E2E8F0;
    margin: 0;
    line-height: 1.5;
}

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

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

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

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cookie-accept {
    background: #DC2626;
    color: white;
}

.cookie-accept:hover {
    background: #B91C1C;
}

.cookie-reject {
    background: transparent;
    color: #E2E8F0;
    border: 1px solid #4A5568;
}

.cookie-reject:hover {
    background: #4A5568;
    color: white;
}

.cookie-customize {
    background: #16A34A;
    color: white;
}

.cookie-customize:hover {
    background: #15803D;
}

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

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

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

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #E2E8F0;
}

.cookie-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2D3748;
    margin: 0;
    font-family: 'Noto Serif JP', serif;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #4A5568;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-close:hover {
    color: #2D3748;
}

.cookie-modal-body {
    padding: 2rem;
}

.cookie-category {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E2E8F0;
}

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

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

.cookie-category-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2D3748;
    margin: 0;
    font-family: 'Noto Serif JP', serif;
}

.cookie-category-header input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #DC2626;
}

.cookie-category p {
    color: #4A5568;
    margin: 0;
    line-height: 1.6;
}

.cookie-modal-footer {
    padding: 1rem 2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #E2E8F0;
}

.cookie-policy-link {
    color: #DC2626;
    text-decoration: none;
    font-size: 0.875rem;
}

.cookie-policy-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 100px;
    }
    
    .cookie-modal {
        padding: 1rem;
    }
    
    .cookie-modal-content {
        max-height: 90vh;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .cookie-text h3 {
        font-size: 1.125rem;
    }
    
    .cookie-text p {
        font-size: 0.875rem;
    }
}