/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.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: 15px;
    line-height: 1.5;
}

.cookie-banner-text h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: white;
}

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

.cookie-banner-text a {
    color: #7DD3C0;
    text-decoration: none;
    font-weight: 500;
}

.cookie-banner-text a:hover {
    text-decoration: underline;
}

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

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #7DD3C0, #A8E6CF);
    color: white;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(125, 211, 192, 0.4);
}

.cookie-btn-decline {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.cookie-btn-settings {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    font-size: 12px;
    padding: 10px 15px;
}

.cookie-btn-settings:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.cookie-settings-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-settings-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.cookie-settings-close:hover,
.cookie-settings-close:focus {
    color: #000;
}

.cookie-settings-content h3 {
    font-size: 28px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 30px;
    text-align: center;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    border: 2px solid #E8F4FD;
    border-radius: 15px;
}

.cookie-category h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-category p {
    font-size: 14px;
    color: #7F8C8D;
    margin: 0;
    line-height: 1.5;
}

.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: #7DD3C0;
}

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

.cookie-slider.disabled {
    background-color: #7DD3C0;
    cursor: not-allowed;
}

.cookie-settings-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .cookie-settings-content {
        margin: 10% auto;
        padding: 30px 20px;
    }
    
    .cookie-category h4 {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-banner-text {
        font-size: 13px;
    }
    
    .cookie-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .cookie-btn-settings {
        font-size: 11px;
        padding: 8px 12px;
    }
}