/* GDPR Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 3px solid #4A6741;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    padding: 24px;
    font-family: 'Noto Sans JP', sans-serif;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cookie-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-content {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-title {
    font-size: 18px;
    font-weight: 700;
    color: #4A6741;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-icon {
    width: 20px;
    height: 20px;
    fill: #4A6741;
}

.cookie-banner-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.cookie-policy-link {
    color: #4338CA;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.cookie-policy-link:hover {
    border-bottom-color: #4338CA;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Noto Sans JP', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-btn-accept {
    background-color: #4A6741;
    color: white;
}

.cookie-btn-accept:hover {
    background-color: #3e5635;
    transform: translateY(-1px);
}

.cookie-btn-reject {
    background-color: #dc2626;
    color: white;
}

.cookie-btn-reject:hover {
    background-color: #b91c1c;
    transform: translateY(-1px);
}

.cookie-btn-customize {
    background-color: #4338CA;
    color: white;
}

.cookie-btn-customize:hover {
    background-color: #3730a3;
    transform: translateY(-1px);
}

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

.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 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.cookie-modal-header {
    padding: 24px 24px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.cookie-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #4A6741;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-modal-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.cookie-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    background-color: #f3f4f6;
    color: #333;
}

.cookie-modal-body {
    padding: 0 24px 24px;
}

.cookie-category {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.cookie-category-header {
    padding: 16px;
    background-color: #f9fafb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cookie-category-header:hover {
    background-color: #f3f4f6;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #4A6741;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-category-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.cookie-toggle {
    position: relative;
    width: 48px;
    height: 24px;
    margin-left: 16px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #4A6741;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider:before {
    background-color: #e2e8f0;
}

.cookie-category-details {
    padding: 16px;
    background-color: white;
    border-top: 1px solid #e5e7eb;
    display: none;
}

.cookie-category.expanded .cookie-category-details {
    display: block;
}

.cookie-category-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: #4A6741;
    margin-bottom: 8px;
}

.cookie-category-details p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.cookie-category-details ul {
    font-size: 13px;
    color: #666;
    margin-left: 16px;
    margin-bottom: 12px;
}

.cookie-category-details li {
    margin-bottom: 4px;
}

.cookie-modal-actions {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-btn-save {
    background-color: #4A6741;
    color: white;
}

.cookie-btn-save:hover {
    background-color: #3e5635;
}

.cookie-btn-accept-all {
    background-color: #4338CA;
    color: white;
}

.cookie-btn-accept-all:hover {
    background-color: #3730a3;
}

.cookie-btn-reject-all {
    background-color: #dc2626;
    color: white;
}

.cookie-btn-reject-all:hover {
    background-color: #b91c1c;
}

/* Status Icons */
.status-icon {
    width: 16px;
    height: 16px;
    margin-left: 4px;
}

.status-required {
    fill: #dc2626;
}

.status-optional {
    fill: #4338CA;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 16px;
    }
    
    .cookie-banner-container {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        gap: 8px;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 0;
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .cookie-modal {
        padding: 10px;
    }
    
    .cookie-modal-content {
        max-height: 90vh;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-actions {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .cookie-category-header {
        padding: 12px;
    }
    
    .cookie-category-title {
        font-size: 14px;
    }
    
    .cookie-category-description {
        font-size: 12px;
    }
    
    .cookie-modal-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-banner-title {
        font-size: 16px;
    }
    
    .cookie-banner-text {
        font-size: 13px;
    }
    
    .cookie-btn {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .cookie-modal-title {
        font-size: 20px;
    }
}