/* Banner de Cookies - Estilos */

/* Banner de Primeiro Nível */
.cookie-banner-level1 {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 3px solid #007bff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 20px;
    font-size: 14px;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-banner-text {
    display: flex;
    align-items: flex-start;
    color: #333;
    line-height: 1.6;
}

.cookie-banner-text i {
    color: #007bff;
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cookie-banner-links {
    display: flex;
    align-items: center;
}

.cookie-link-rights {
    color: #007bff;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.cookie-link-rights:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Banner de Segundo Nível (Modal) */
.cookie-banner-level2 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.cookie-banner-level2-content {
    background: #ffffff;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-banner-header h5 {
    color: #333;
    font-weight: 600;
}

.cookie-banner-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.cookie-intro-text {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Categorias de Cookies */
.cookie-category {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
}

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

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

.cookie-category-info h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

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

.cookie-category-toggle {
    flex-shrink: 0;
}

.cookie-category-details {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

/* Toggle Switch */
.cookie-toggle {
    display: none;
}

.cookie-toggle-label {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

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

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

.cookie-toggle:checked + .cookie-toggle-label .cookie-toggle-slider {
    background-color: #007bff;
}

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

.cookie-toggle:disabled + .cookie-toggle-label {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Informações do Navegador */
.cookie-browser-info {
    background: #f0f7ff;
    border-left: 4px solid #007bff;
    border-radius: 4px;
}

.cookie-browser-info h6 {
    color: #007bff;
    font-weight: 600;
}

.cookie-browser-info ul {
    margin: 0;
    padding-left: 20px;
}

.cookie-browser-info li {
    margin-bottom: 5px;
    color: #666;
    font-size: 13px;
}

/* Footer do Banner */
.cookie-banner-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: #f9f9f9;
    flex-wrap: wrap;
    gap: 10px;
}

/* Responsividade */
@media (max-width: 768px) {
    .cookie-banner-level1 {
        padding: 15px;
    }

    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-banner-actions .btn {
        width: 100%;
    }

    .cookie-banner-level2-content {
        max-height: 95vh;
        margin: 10px;
    }

    .cookie-category-header {
        flex-direction: column;
    }

    .cookie-category-toggle {
        align-self: flex-end;
    }

    .cookie-banner-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-footer .btn {
        width: 100%;
    }
}
