/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 20px;
    z-index: 10000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.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: 20px;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #cbd5e1;
}

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

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

.cookie-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Noto Sans JP', sans-serif;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #0891b2;
    color: white;
}

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

.cookie-btn-reject {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid #475569;
}

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

.cookie-btn-customize {
    background: transparent;
    color: #06b6d4;
    border: 1px solid #06b6d4;
}

.cookie-btn-customize:hover {
    background: #06b6d4;
    color: white;
}

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

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

.cookie-settings-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-settings-header {
    margin-bottom: 20px;
}

.cookie-settings-header h3 {
    color: #1e3a8a;
    margin-bottom: 8px;
}

.cookie-settings-header p {
    color: #64748b;
    font-size: 0.9rem;
}

.cookie-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-setting-item:last-child {
    border-bottom: none;
}

.cookie-setting-info h4 {
    color: #1e40af;
    margin-bottom: 4px;
    font-size: 1rem;
}

.cookie-setting-info p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cookie-toggle.active {
    background: #0891b2;
}

.cookie-toggle.disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.cookie-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

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

.cookie-settings-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-settings-content {
        margin: 10px;
        padding: 20px;
    }
    
    .cookie-setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cookie-settings-actions {
        flex-direction: column;
    }
}