/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(47, 82, 51, 0.95);
    color: white;
    padding: 20px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-top: 2px solid #7FB069;
    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;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-banner-text p {
    margin: 0;
}

.cookie-banner-text a {
    color: #7FB069;
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

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

.cookie-btn-accept {
    background-color: #7FB069;
    color: white;
}

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

.cookie-btn-decline {
    background-color: transparent;
    color: white;
    border: 1px solid #7FB069;
}

.cookie-btn-decline:hover {
    background-color: #7FB069;
    color: white;
}

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

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

.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.cookie-settings-content h3 {
    font-family: 'Noto Serif JP', serif;
    color: #2F5233;
    margin-bottom: 20px;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #E8E6E0;
    border-radius: 5px;
}

.cookie-category h4 {
    font-family: 'Noto Serif JP', serif;
    color: #2F5233;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

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

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

input:checked + .cookie-slider {
    background-color: #7FB069;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-buttons {
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 80px;
        padding: 10px 8px;
        font-size: 0.7rem;
    }
    
    .cookie-settings-content {
        padding: 20px;
        width: 95%;
    }
}