/* Modal */
/* Modal */
.able-quickview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Alinhar no topo */
    z-index: 999999;
    overflow-y: auto; /* Permitir rolagem */
    padding: 20px 0; /* Espaço acima/abaixo */
}

.able-quickview-modal {
    background: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 90vh; /* Altura máxima */
    margin: 20px auto; /* Centralizar com margem */
    padding: 30px;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    overflow: hidden; /* Evitar vazamento */
}

/* Iframe */
.able-quickview-iframe {
    width: 100%;
    border: none;
    min-height: 300px;
    max-height: 80vh; /* Altura máxima */
    display: block;
    overflow-y: auto; /* Rolagem interna */
}

.able-quickview-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Ícones */
.able-quickview-icon {
    margin-right: 5px;
}

/* Animação */
@keyframes ableFadeIn {
    to { opacity: 1; }
}

/* Responsivo */
@media (max-width: 768px) {
    .able-quickview-modal {
        width: 95%;
        height: 95vh;
    }
}

.able-quickview-content {
    max-height: 80vh;
    overflow-y: auto;
    padding-right: 10px; /* Evitar sobreposição com scroll */
}

/* Customizar scrollbar */
.able-quickview-content::-webkit-scrollbar {
    width: 8px;
}
.able-quickview-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}