/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #4A7C59;
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 90vh;
    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: 1.5rem;
    align-items: start;
}

.cookie-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFD700;
}

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

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

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

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

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

.cookie-btn.accept {
    background-color: #FFD700;
    color: #4A7C59;
}

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

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

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

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

.cookie-btn.customize:hover {
    background-color: #7a8a7a;
}

.cookie-btn.decline {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.5);
}

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

/* Cookie Customization Panel */
.cookie-customization {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.cookie-custom-content h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFD700;
}

.cookie-categories {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.cookie-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.cookie-category h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: white;
}

.cookie-category p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.8);
}

/* Cookie Switch Styles */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.3);
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #FFD700;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

input:disabled + .slider {
    background-color: #8B9A8B;
    cursor: not-allowed;
}

input:disabled + .slider:before {
    background-color: rgba(255,255,255,0.7);
}

.cookie-custom-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Responsive design */
@media (max-width: 768px) {
    .cookie-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: left;
    }
    
    .cookie-buttons {
        justify-content: flex-start;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1 1 auto;
        min-width: 80px;
    }
    
    .cookie-categories {
        grid-template-columns: 1fr;
    }
    
    .cookie-custom-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-text p {
        font-size: 0.9rem;
    }
    
    .cookie-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-custom-buttons {
        flex-direction: column;
    }
}