/* css/cookie-banner.css */
.cookie-banner-overlay {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 600px;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 12px;
    z-index: 9999;
    padding: 24px;
    font-family: var(--font-body, sans-serif);
    border-left: 5px solid var(--theme-green, #2c3e20);
    display: none;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
}

.cookie-banner-overlay.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cookie-banner-header h3 {
    margin: 0;
    font-size: 19px;
    color: var(--theme-green, #2c3e20);
    font-weight: 700;
}

.cookie-banner-content p {
    margin: 0 0 20px 0;
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}

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

.cookie-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.cookie-btn-primary {
    background: var(--theme-green, #2c3e20);
    color: #fff;
}

.cookie-btn-primary:hover {
    background: #1e2a16;
}

.cookie-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.cookie-btn-secondary:hover {
    background: #e0e0e0;
}

.cookie-btn-outline {
    background: transparent;
    border: 1px solid #ccc;
    color: #555;
}

.cookie-btn-outline:hover {
    background: #fafafa;
    border-color: #999;
}

/* Modal for Customize */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.cookie-modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.cookie-modal-overlay.show .cookie-modal {
    transform: scale(1);
}

.cookie-modal h2 {
    margin-top: 0;
    color: var(--theme-green, #2c3e20);
    font-size: 24px;
}

.cookie-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.cookie-modal-close:hover {
    color: #333;
}

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

.cookie-category:last-of-type {
    border-bottom: none;
}

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

.cookie-category-header h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

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

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

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

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

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

input:checked + .cookie-toggle-slider {
    background-color: var(--theme-green, #2c3e20);
}

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

input:disabled + .cookie-toggle-slider {
    background-color: #e0e0e0;
    cursor: not-allowed;
}

input:disabled:checked + .cookie-toggle-slider {
    background-color: #9cb191;
}

.cookie-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
}

@media (max-width: 600px) {
    .cookie-banner-buttons {
        flex-direction: column;
    }
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
    .cookie-modal-actions {
        flex-direction: column;
    }
}
