.containerX {
  background: white;
  border-radius: 24px;
  padding: 10px;
  width: 400px;
  height: fit-content;
}

.list-header {
  font-size: 20px;
  font-weight: 500;
  color: #18181b;
  margin-bottom: 24px;
  padding-left: 12px;
}
/*
.containerX:has(.expanded) {
  .list-header {
    display: none;
  }

  .close-button {
    display: flex;
  }

  .all-transactions {
    display: none;
  }

  .transaction:not(.expanded) {
    display: none;
  }
}
*/
.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/*
.transaction {
  transition: height 2s ease;
  overflow: hidden;
  height: auto; 
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  border-radius: 16px;
  cursor: pointer;

  &.expanded {
    flex-direction: column;
    align-items: flex-start;
	padding:10px;
	height: auto; 

    .transaction-details, 
    .payment-details {
      display: flex;
    }

    .icon-container {
      width: 100%;

      .close-btn {
        display: flex;
      }
    }
  }
}
*/

.transaction {
    overflow: hidden; /* Importante para la transición de altura */
    height: auto; /* Altura automática */
    display: flex; /* Todas las transacciones se muestran por defecto */
    align-items: center;
    gap: 12px;
    padding: 0 10px;
    border-radius: 16px;
    cursor: pointer;
}

.transaction.expanded {
    flex-direction: column;
    align-items: normal;
    padding: 10px;
    height: auto; /* Altura automática */
	pointer-events: none; /* Deshabilita los clics */
}

.transaction .transaction-details,
.transaction .payment-details {
    display: none; /* Ocultar los detalles por defecto */
}

.transaction.expanded .transaction-details,
.transaction.expanded .payment-details {
    display: flex; /* Mostrar los detalles cuando está expandido */
}

.transaction .icon-container .close-btn {
    display: none; /* Ocultar el botón de cerrar por defecto */
}

.transaction.expanded .icon-container .close-btn {
    display: flex; /* Mostrar el botón de cerrar cuando está expandido */
    pointer-events: auto; /* Habilita los clics en elementos con la clase .clickable */
}
}

.transaction:hover {
    background-color: #f6f6f6;
}

.expanded {
	background-color: #ffffff;
}

.title-container {
  display: flex;
  flex-direction: column;
  width:75%;
}

.icon-container {
  display: flex;
  justify-content: space-between;
}

.icon {
  width: 40px;
  height: 40px;
  background: #18181b;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.icon-color {
  color: white;
}

.icon svg {
  width: 10px;
  height: 10px;
  color: white;
}

.size-icon {
	font-size: 10px;
}

.ico-close-btn {
    width: 16px;
    height: 16px;
}

.ico-close-btn-path {
    fill: none;
    stroke: #000000;
}

.close-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: #f4f4f5;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.details {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex: 1;
  width: 100%;
}

.title {
  font-weight: 500;
  color: #18181b;
  margin-bottom: 4px;
}

.subtitle {
  font-size: 14px;
  color: #71717a;
}

.amount {
  font-weight: 500;
  color: #71717a;
  width:25%;
  display: flex;
  align-content: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.transaction-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #71717a;
  border-top: 1px dotted #71717a;
  padding-top: 6px;
  width: 100%;
  display: none;
}

.all-transactions {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #18181b;
  font-weight: 500;
  margin-top: 8px;
  cursor: pointer;
}