
.comparador-widget {
    position: fixed;
	margin-left: 0;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1000;
    width: 320px;
    max-width: 90vw;
    background: #ffffff;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.18);
    border-radius: 0.75rem;
    overflow: hidden;
    font-size: 0.95rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.comparador-widget.hidden {
    display: none;
}

.comparador-widget.disabled {
    pointer-events: none;
    opacity: 0.85;
}

.comparador-widget.collapsed .comparador-body {
    display: none;
}

.comparador-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.6rem;
    background: var(--bs-primary);
    color: #fff;
    border: none;
    font-weight: 600;
    gap: 1rem;
    cursor: pointer;
}

.comparador-header span {
    flex: 1;
    text-align: left;
}

.comparador-body {
    padding: 0.45rem 0.55rem 0.4rem;
}

.comparador-empty {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

#comparador-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.45rem;
    max-height: 260px;
    overflow-y: auto;
}

#comparador-list li {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 0.35rem;
   padding: 0.35rem 0.1rem;
   border-bottom: 1px solid #dfe3e6; /* línea gris finita */
}
/* forzar a quitar el padding */
.comparador-widget #comparador-list {
    padding-left: 0 !important;
    margin-left: 0 !important;
    margin-bottom: 0.45rem;
}
.comparador-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    overflow: hidden;
}
.comparador-item strong,
.comparador-item small {
    white-space: normal;
    word-break: break-word;
}

.comparador-remove {
    border: none;
    background: transparent;
    color: var(--bs-danger);
    font-size: 0.85rem;
    padding: 0;
    cursor: pointer;
}

.comparador-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.comparador-actions button {
    font-size: 0.85rem;
}
.comparador-separator {
    height: 1px;
    background-color: #dfe3e6;
    margin: 0.3rem 0 0;
}
#comparador-list li:last-child {
    border-bottom: none;
}
