/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--ink-blue);
    color: var(--warm-ivory);
    padding: 25px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.cookie-text {
    flex: 1;
}

.cookie-text h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--warm-ivory);
    margin-bottom: 8px;
}

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

.cookie-text a {
    color: var(--cedar-wood);
    text-decoration: underline;
}

.cookie-text a:hover {
    color: var(--warm-ivory);
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

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

.cookie-btn.accept {
    background-color: var(--cedar-wood);
    color: var(--ink-blue);
}

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

.cookie-btn.reject {
    background-color: transparent;
    color: var(--warm-ivory);
    border: 1px solid var(--warm-ivory);
}

.cookie-btn.reject:hover {
    background-color: var(--warm-ivory);
    color: var(--ink-blue);
}

.cookie-btn.customize {
    background-color: transparent;
    color: var(--cedar-wood);
    border: 1px solid var(--cedar-wood);
}

.cookie-btn.customize:hover {
    background-color: var(--cedar-wood);
    color: var(--ink-blue);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.cookie-modal-content {
    background-color: var(--white);
    border-radius: 12px;
    width: 100%;
    max-width: 1200px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--cedar-wood);
}

.cookie-modal-header h3 {
    color: var(--ink-blue);
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--medium-gray);
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cookie-close:hover {
    color: var(--ink-blue);
    background-color: var(--light-gray);
}

.cookie-modal-body {
    padding: 30px;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--warm-ivory);
    border-radius: 8px;
    border: 1px solid rgba(210, 180, 140, 0.2);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category h4 {
    color: var(--ink-blue);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.cookie-required {
    background-color: var(--medium-gray);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.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: var(--medium-gray);
    transition: 0.3s;
    border-radius: 24px;
}

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

input:checked + .cookie-slider {
    background-color: var(--cedar-wood);
}

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

.cookie-category p {
    color: var(--medium-gray);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.cookie-modal-footer {
    padding: 25px 30px;
    border-top: 1px solid var(--cedar-wood);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-policy-link {
    color: var(--ink-blue);
    text-decoration: underline;
    font-size: 14px;
}

.cookie-policy-link:hover {
    color: var(--cedar-wood);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-modal-content {
        margin: 10px;
        max-height: 90vh;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 20px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}