/* Cookie Consent Styles */
:root {
    --cookie-bg: #fff;
    --cookie-text: #333;
    --cookie-btn-primary: #d4a373;
    /* Matches site accent */
    --cookie-btn-primary-hover: #b88a5c;
    --cookie-btn-secondary: #f0f0f0;
    --cookie-btn-secondary-hover: #e0e0e0;
    --cookie-border: #e0e0e0;
    --cookie-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

/* Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--cookie-bg);
    box-shadow: var(--cookie-shadow);
    padding: 20px;
    z-index: 9999;
    font-family: 'Outfit', sans-serif;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
    border-top: 1px solid var(--cookie-border);
    display: none;
    /* JS will show it */
}

#cookie-banner.visible {
    transform: translateY(0);
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cookie-text h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: var(--cookie-text);
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-cookie-primary {
    background-color: var(--cookie-btn-primary);
    color: white;
}

.btn-cookie-primary:hover {
    background-color: var(--cookie-btn-primary-hover);
}

.btn-cookie-secondary {
    background-color: var(--cookie-btn-secondary);
    color: #333;
}

.btn-cookie-secondary:hover {
    background-color: var(--cookie-btn-secondary-hover);
}

.btn-cookie-link {
    background: none;
    text-decoration: underline;
    color: #666;
    padding: 10px;
}

/* Modal */
#cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: 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.visible {
    display: flex;
    opacity: 1;
}

.cookie-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    font-family: 'Outfit', sans-serif;
}

.cookie-modal-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--cookie-border);
    padding-bottom: 15px;
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.cookie-category-info h4 {
    margin: 0 0 5px 0;
}

.cookie-category-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

/* Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 15px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--cookie-btn-primary);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--cookie-btn-primary);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

input:disabled+.slider {
    background-color: #999;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-actions {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}