.lego-account-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.lego-account-info {
  background: #f4f4f4;
  border-radius: 8px;
  padding: 20px;
  flex: 1 1 35%;
  width: 100%;
}

.woocommerce {
  flex: 1 1 60%;
}

.toggle-info {
  background: none;
  border: none;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: #d62828;
  padding: 15px 0;
}

.toggle-info:hover {
  background: none;
  color: #d62828;
}

.toggle-info .icon {
  font-size: 1.5rem;
  transition: transform 0.2s;
}

/*
.lego-account-info.closed .info-content {
  display: none;
}
*/

/* Animation slide */
.info-content {
  overflow: hidden;
  max-height: 1000px;
  opacity: 1;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.lego-account-info.closed .info-content {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* Par défaut visible */
.toggle-info {
  display: flex;
}

/* Masquer le bouton en tablette/desktop */
@media screen and (min-width: 769px) {
  .toggle-info {
    display: none;
  }

  .lego-account-info .info-content {
    max-height: none !important;
    opacity: 1 !important;
  }
}

/* Tablet (≥769px) and desktop */
@media screen and (min-width: 769px) {
  .lego-account-wrapper {
    flex-direction: row;
  }

  .lego-account-info {
    max-width: 100%;
      margin: 2em 0;
  }
}

/* Mobile */
@media screen and (max-width: 768px) {
  .lego-account-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .lego-account-info {
    width: 100%;
    order: -1;
  }

  .woocommerce {
    width: 100%;
    margin-top: 0 !important;
  }
}




