/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #6B8E5A;
    color: white;
    padding: 25px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: start;
}

.cookie-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

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

.cookie-text a:hover {
    color: white;
}

.cookie-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    min-width: 300px;
}

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

.cookie-btn.accept {
    background-color: white;
    color: #6B8E5A;
}

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

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

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

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

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

/* Cookie Customization Panel */
.cookie-customization {
    background-color: #5A7A4A;
    margin-top: 20px;
    padding: 25px;
    border-radius: 8px;
    border-top: 2px solid #4A6A3A;
}

.cookie-custom-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.cookie-categories {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.cookie-category {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 6px;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.cookie-category-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: white;
}

.cookie-category-header label {
    font-weight: 500;
    font-size: 16px;
    color: white;
    cursor: pointer;
}

.cookie-category p {
    margin: 0;
    font-size: 13px;
    color: #E0E0E0;
    line-height: 1.4;
    margin-left: 28px;
}

.cookie-custom-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.cookie-btn.save {
    background-color: white;
    color: #6B8E5A;
    padding: 10px 20px;
}

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

.cookie-btn.cancel {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    padding: 10px 20px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cookie-buttons {
        grid-template-columns: 1fr;
        min-width: auto;
    }
    
    .cookie-btn {
        padding: 12px 16px;
    }
    
    .cookie-custom-buttons {
        flex-direction: column;
    }
    
    .cookie-btn.save,
    .cookie-btn.cancel {
        width: 100%;
    }
}