/* ==========================================================================
   Biomag · skin VERDE pentru zona de cont/checkout (chrome biomag).
   Conține clasele care NU sunt în theme.min.css (grila + order-card + titlu).
   Restul (card-white, account-nav, account-form, checkout-section) vine VERDE
   din theme.min.css. Fără override-uri secret-box (body.sb-auth) — paginile
   rulează pe layout neutru, deci se aplică paleta verde de bază.
   ========================================================================== */

/* Grila sidebar + conținut (ca în sursa biomag.ro: coloane Bootstrap). */
.account-shell { }
.account-shell__main { min-width: 0; }

.account-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2733;
  margin: 0 0 18px;
}

/* ---- Datele mele (listă label / valoare) ---- */
.account-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.account-detail-list li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f3f5;
}
.account-detail-list li:last-child {
  border-bottom: 0;
}
.account-detail-list li span {
  flex: 0 0 90px;
  color: #6c757d;
}
.account-detail-list li strong {
  color: #1f2733;
  font-weight: 600;
}

/* ---- Card secțiune profil: cap (titlu + buton adăugare) ---- */
.profile-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.profile-card__head .account-section-title {
  margin: 0;
}
.profile-card__head .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* ---- Grilă carduri adrese/firme (afișare profil) ---- */
.address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

/* ---- Slide-down adăugare/editare adresă/firmă ---- */
.profile-edit {
  margin-top: 14px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fafafa;
}
/* Frame-ul de editare per-item (#editframeN) e gol până la AJAX → ascuns. */
.account-address-card .profile-edit:empty {
  display: none;
  padding: 0;
  border: 0;
}
.account-address-card .profile-edit {
  margin-top: 12px;
  padding: 14px;
}

@media (max-width: 575.98px) {
  .profile-card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .address-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Istoric comenzi (carduri) — paletă verde/neutră ---- */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.order-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.order-card:hover {
  border-color: color-mix(in srgb, var(--bm-green, var(--bm-green, #00a651)) 30%, transparent);
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.order-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.order-card__id {
  font-weight: 700;
  font-size: .95rem;
  color: #1f2733;
}
.order-card__badge {
  display: inline-block;
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.order-card__details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.order-card__detail {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  color: #6c757d;
}
.order-card__detail svg {
  flex-shrink: 0;
  stroke: #6c757d;
}
.order-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}
.order-card__total {
  display: flex;
  align-items: center;
  gap: 6px;
}
.order-card__total-label {
  font-size: .82rem;
  color: #6c757d;
}
.order-card__total-value {
  font-weight: 700;
  font-size: .95rem;
  color: var(--bm-green, #00a651);
}
.order-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.order-card__retry-btn {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(180,83,9,.10);
  color: #b45309;
  white-space: nowrap;
  transition: background .2s;
}
.order-card:hover .order-card__retry-btn { background: rgba(180,83,9,.18); }
.order-card__detail-btn {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bm-green, var(--bm-green, #00a651)) 10%, transparent);
  color: var(--bm-green, #00a651);
  white-space: nowrap;
  transition: background .2s;
}
.order-card:hover .order-card__detail-btn { background: color-mix(in srgb, var(--bm-green, var(--bm-green, #00a651)) 18%, transparent); }

@media (max-width: 575px) {
  .order-card__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .order-card__actions { width: 100%; justify-content: flex-end; }
}
