/* COOKIE CONSENT BANNER STYLES */

/* ALSÓ BANNER */
.cookie-banner-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 25px 20px;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.3);
    z-index: 9999;
    display: none;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

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

.cookie-banner-bottom .cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-bottom .cookie-text h5 {
    margin-bottom: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: white;
}

.cookie-banner-bottom .cookie-text h5 i {
    color: white;
}

.cookie-banner-bottom .cookie-text p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.6;
    font-size: 0.95rem;
}

.cookie-banner-bottom .cookie-text a {
    color: #a8e063;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-banner-bottom .cookie-text a:hover {
    color: #56ab2f;
}

.cookie-banner-bottom .cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.95rem;
}

.cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    color: white;
}

.cookie-btn-settings {
    background: white;
    color: #2c3e50;
}

.cookie-btn-decline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 9998;
    display: none;
    animation: fadeIn 0.3s ease;
}

.cookie-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    animation: zoomIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.cookie-modal-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
}

.cookie-modal-header h4 {
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.cookie-modal-body {
    padding: 30px;
    color: #2c3e50;
}

.cookie-modal-body p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.cookie-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* COOKIE CATEGORIES */
.cookie-category {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #2c3e50;
}

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

.cookie-category h6 {
    margin: 0;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.cookie-category p {
    margin: 0;
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.5;
}

/* COOKIE SWITCH */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.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.4s;
    border-radius: 26px;
}

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

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

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

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

/* INFO BOX */
.cookie-info-box {
    margin-top: 20px;
    padding: 15px;
    background: #e8f5e9;
    border-radius: 8px;
    border-left: 4px solid #56ab2f;
}

.cookie-info-box i {
    color: #2e7d32;
    margin-right: 10px;
}

.cookie-info-box small {
    color: #2e7d32;
    line-height: 1.5;
}

.cookie-info-box a {
    color: #2e7d32;
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .cookie-banner-bottom .cookie-container {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-bottom .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-banner-bottom .cookie-text {
        min-width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .cookie-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .cookie-modal-header {
        padding: 20px;
    }
    
    .cookie-modal-body {
        padding: 20px;
    }
    
    .cookie-modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}
