/* Cookie Banner Styles */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    border-top: 3px solid #EB8F63;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

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

.cookie-text {
    flex: 1;
}

.cookie-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #2D3047;
}

.cookie-text p {
    margin: 0;
    color: #555;
    line-height: 1.5;
    font-size: 0.95rem;
}

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

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 100px;
}

.cookie-btn-primary {
    background: #EB8F63;
    color: white;
    border: 2px solid #EB8F63;
}

.cookie-btn-primary:hover {
    background: #D47D52;
    border-color: #D47D52;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(235, 143, 99, 0.3);
}

.cookie-btn-secondary {
    background: transparent;
    color: #EB8F63;
    border: 2px solid #EB8F63;
}

.cookie-btn-secondary:hover {
    background: #EB8F63;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(235, 143, 99, 0.2);
}

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

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
}

.cookie-modal-header h2 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #2D3047;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-modal-close:hover {
    background: #F7F9FB;
    color: #EB8F63;
}

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

.cookie-modal-body p {
    margin-bottom: 25px;
    color: #555;
    line-height: 1.6;
}

.cookie-category {
    margin-bottom: 25px;
    border: 1px solid #EDDDC0;
    border-radius: 8px;
    overflow: hidden;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #F7F9FB;
    gap: 15px;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h3 {
    margin: 0 0 8px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2D3047;
}

.cookie-category-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Cookie Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    margin: 0;
}

.cookie-switch 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: 0.3s;
    border-radius: 28px;
}

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

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

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

input:disabled + .cookie-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #EDDDC0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        align-items: stretch;
    }
    
    .cookie-text {
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-btn {
        min-width: 80px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .cookie-modal-content {
        margin: 10px;
        max-height: 90vh;
    }
    
    .cookie-modal-header {
        padding: 20px;
    }
    
    .cookie-modal-header h2 {
        font-size: 1.4rem;
    }
    
    .cookie-modal-body {
        padding: 20px;
    }
    
    .cookie-category-header {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .cookie-switch {
        order: -1;
    }
}

@media (max-width: 480px) {
    .cookie-content {
        padding: 15px;
    }
    
    .cookie-text h3 {
        font-size: 1.1rem;
    }
    
    .cookie-text p {
        font-size: 0.9rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-modal {
        padding: 10px;
    }
    
    .cookie-modal-header {
        padding: 15px;
    }
    
    .cookie-modal-body {
        padding: 15px;
    }
    
    .cookie-modal-footer {
        padding: 15px;
    }
    
    .cookie-category-header {
        padding: 12px;
    }
}

/* Animation for smooth appearance */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-banner.animate {
    animation: slideUp 0.4s ease-out;
} 