/*
 * Eigene Seiten aus dem Panel.
 *
 * Nur die Abschnittstypen, die es im uebrigen Stylesheet noch nicht gibt.
 * Alles baut auf den Farbtoken des Themes auf, damit die Seiten in allen
 * neun Themes mitgehen.
 */

.cp-sec + .cp-sec { margin-top: -0.5rem; }
.cp-body p:last-child { margin-bottom: 0; }
.cp-body { line-height: 1.7; }

/* ---- Text mit Bild ---- */

.cp-figure {
  padding: 0.5rem;
  overflow: hidden;
  border-radius: var(--radius);
}
.cp-figure img {
  width: 100%;
  height: auto;            /* ohne das schneidet das height-Attribut das Bild */
  display: block;
  border-radius: calc(var(--radius) - 6px);
}

/* ---- Karten ---- */

.cp-card {
  overflow: hidden;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}
.cp-card-frame { line-height: 0; }
.cp-card-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.cp-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 1.2rem 1.3rem 0;
  border-radius: 14px;
  background: var(--icon-bg);
  border: 1px solid var(--stroke);
  color: var(--cyan);
  font-size: 1.3rem;
}
.cp-card-body { padding: 1.1rem 1.3rem 1.3rem; }

/* ---- Galerie ---- */

.cp-shot {
  padding: 0.4rem;
  overflow: hidden;
  border-radius: 14px;
}
.cp-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}
.cp-shot figcaption {
  padding: 0.5rem 0.4rem 0.2rem;
  color: var(--muted);
  font-size: 0.84rem;
}

/* ---- Abhakliste ---- */

.cp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.cp-list li { display: flex; align-items: flex-start; gap: 0.7rem; }
.cp-list i { color: var(--cyan); margin-top: 0.15rem; }

/* ---- Zitat ---- */

.cp-quote { border-left: 3px solid var(--cyan); }
.cp-quote p { font-size: 1.15rem; line-height: 1.6; }

/* ---- Aufruf ---- */

.cp-cta { background: var(--cta-grad, var(--card)); }

/* --------------------------------------------------------------- */
/* Acordeonul sectiunilor                                           */
/*                                                                  */
/* Fara JavaScript: <details> si <summary>. Sageata proprie, ca cea */
/* a browserului arata altfel pe fiecare. Grupul (inchide-le pe     */
/* celelalte) il face atributul name, tot nativ.                    */
/* --------------------------------------------------------------- */

.cp-acord {
  border: 1px solid var(--linie, rgba(0, 0, 0, .10));
  border-radius: 14px;
  background: var(--card, #fff);
  overflow: hidden;
}

.cp-acord + .cp-acord { margin-top: .75rem; }

.cp-acord-cap {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  user-select: none;
}

.cp-acord-cap::-webkit-details-marker { display: none; }

.cp-acord-cap::after {
  content: "";
  margin-left: auto;
  width: .6rem;
  height: .6rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
  opacity: .55;
}

.cp-acord[open] > .cp-acord-cap::after { transform: rotate(-135deg); }

.cp-acord-cap:hover { background: rgba(0, 0, 0, .025); }

.cp-acord-cap:focus-visible {
  outline: 2px solid var(--accent, #2f6feb);
  outline-offset: -2px;
}

.cp-acord-miez { padding: 0 1.25rem 1.25rem; }

/* Inauntrul acordeonului cartonasele nu mai au nevoie de rama lor. */
.cp-acord-miez > .glass { box-shadow: none; padding: 0 !important; background: none; }

@media print {
  .cp-acord-miez { display: block !important; }
  .cp-acord-cap::after { display: none; }
}

/* Butoanele de ora din formularul de rezervare. Radio, dar arata ca butoane. */
.ora-buton { cursor: pointer; }
.ora-buton input { position: absolute; opacity: 0; width: 0; height: 0; }
.ora-buton span {
  display: inline-block;
  padding: .45rem .8rem;
  border: 1px solid var(--stroke, rgba(0,0,0,.15));
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.ora-buton:hover span { border-color: var(--stroke-strong, rgba(0,0,0,.3)); }
.ora-buton input:checked + span {
  background: var(--btn-fill, #333);
  border-color: transparent;
  color: var(--btn-ink, #fff);
  font-weight: 600;
}
.ora-buton input:focus-visible + span { outline: 2px solid var(--focus-ring, #39f); outline-offset: 2px; }

/* --- Restaurant: meniu, cos, bucatarie -------------------------- */

.ho-produs {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, .07);
}
.ho-produs:last-child { border-bottom: 0; }
.ho-produs-poza { flex: 0 0 72px; }
.ho-produs-poza img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; display: block; }
.ho-produs-text { flex: 1 1 auto; min-width: 0; }
.ho-produs-cap { display: flex; gap: .5rem; align-items: baseline; }
.ho-pret { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.ho-alergeni { font-size: .72rem; opacity: .6; letter-spacing: .04em; margin-top: .15rem; }
.ho-produs-buton { flex: 0 0 auto; }

.ho-cos-panou { position: sticky; top: 90px; }

.ho-cos-plutitor {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 890;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--btn-fill, #222);
  color: var(--btn-ink, #fff);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.ho-cos-nr {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 11px;
  background: #d61f2f;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

@media print { .ho-cos-plutitor { display: none; } }

/* Ecranul bucatariei */
.ho-linii { list-style: none; margin: 0; padding: 0; }
.ho-linii li { padding: .15rem 0; border-bottom: 1px solid rgba(0, 0, 0, .05); }
.ho-linii li:last-child { border-bottom: 0; }
.ho-linii li.gata { opacity: .45; text-decoration: line-through; }
.ho-tarziu { border-color: #e8a33d; box-shadow: 0 0 0 2px rgba(232, 163, 61, .25); }
.ho-nota-client {
  background: rgba(255, 196, 0, .12);
  border-radius: 8px;
  padding: .4rem .6rem;
  margin-top: .5rem;
}

/* ------------------------------------------------------------------ */
/* Hotel: cautarea, camerele, socoteala                                */
/* ------------------------------------------------------------------ */

.hot-cautare { margin-bottom: 1rem; }
.hot-cautare-randuri {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .6rem;
  align-items: end;
}
.hot-cautare label { display: block; }
.hot-cautare label > span {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .2rem;
}
.hot-cautare button { height: 42px; }
.hot-bifa { display: block; margin-top: .7rem; font-size: .9rem; }

.hot-pret { margin-left: auto; font-weight: 700; white-space: nowrap; }

.hot-poza img { width: 100%; border-radius: 12px; margin-bottom: .8rem; }

.hot-date { list-style: none; display: flex; flex-wrap: wrap; gap: .8rem; margin: 0 0 .6rem; padding: 0; }
.hot-date li { font-size: .85rem; color: var(--muted); }

.hot-dotari { display: flex; flex-wrap: wrap; gap: .35rem; }
.hot-dotare {
  border: 1px solid var(--stroke);
  background: var(--icon-bg);
  border-radius: 999px;
  padding: .1rem .6rem;
  font-size: .78rem;
}

.hot-socoteala { width: 100%; border-collapse: collapse; margin: .9rem 0; }
.hot-socoteala td { padding: .25rem 0; border-bottom: 1px solid rgba(128, 128, 128, .15); }
.hot-socoteala td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hot-socoteala tr.hot-total td { border-bottom: 0; border-top: 2px solid var(--stroke); padding-top: .5rem; }

.hot-rezerva-randuri {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .6rem;
}
.hot-rezerva label > span {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .2rem;
}
.hot-gata { max-width: 540px; }

/* ------------------------------------------------------------------ */
/* Service auto: catalogul si calculatorul                             */
/* ------------------------------------------------------------------ */

.at-lista { list-style: none; margin: 0; padding: 0; }
.at-lista li { padding: .45rem 0; border-bottom: 1px solid rgba(128, 128, 128, .15); }
.at-lista li:last-child { border-bottom: 0; }
.at-op { display: flex; align-items: flex-start; gap: 1rem; }
.at-pret { margin-left: auto; font-weight: 700; white-space: nowrap; }

.at-bifa {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .5rem .2rem;
  border-bottom: 1px solid rgba(128, 128, 128, .15);
  cursor: pointer;
}
.at-bifa:last-child { border-bottom: 0; }
.at-bifa input { margin-top: .25rem; flex: 0 0 auto; }
.at-bifa-text { flex: 1 1 auto; }

.at-socoteala { width: 100%; border-collapse: collapse; }
.at-socoteala td { padding: .25rem 0; border-bottom: 1px solid rgba(128, 128, 128, .15); }
.at-socoteala td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.at-socoteala tr.at-total td { border-bottom: 0; border-top: 2px solid var(--stroke); padding-top: .5rem; font-size: 1.1rem; }

.at-cerere-randuri {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .6rem;
  margin-bottom: .6rem;
}
.at-cerere label > span,
.at-cerere > label > span {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .2rem;
}
.at-gata { max-width: 560px; }

/* ------------------------------------------------------------------ */
/* Catalog auto                                                        */
/* ------------------------------------------------------------------ */

.auto-filtru-randuri {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .6rem;
  align-items: end;
}
.auto-filtru label { display: block; }
.auto-filtru label > span {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .2rem;
}
.auto-filtru button { height: 42px; }

.auto-raft {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.auto-card {
  display: block;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--card-2);
  transition: box-shadow .18s ease, transform .18s ease;
}
.auto-card:hover { box-shadow: var(--card-hover-shadow); transform: translateY(-2px); }
.auto-card-poza { aspect-ratio: 4 / 3; overflow: hidden; background: var(--icon-bg); }
.auto-card-poza img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auto-card-text { padding: .8rem .9rem 1rem; }
.auto-pret { margin-left: auto; font-weight: 700; white-space: nowrap; }
.auto-card .auto-pret { display: block; margin-top: .4rem; font-size: 1.1rem; }
.auto-pret-mare { font-size: 1.6rem; font-weight: 700; margin: .2rem 0 .3rem; }

.auto-eticheta {
  display: inline-block;
  background: rgba(255, 196, 0, .18);
  border: 1px solid rgba(255, 196, 0, .4);
  border-radius: 999px;
  padding: 0 .55rem;
  font-size: .72rem;
  font-weight: 700;
  margin-bottom: .3rem;
}

.auto-poze { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.auto-poze img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.auto-poze.mare { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.auto-date { width: 100%; border-collapse: collapse; }
.auto-date td { padding: .25rem 0; border-bottom: 1px solid rgba(128, 128, 128, .15); }
.auto-date td.n { text-align: right; white-space: nowrap; }

.auto-dotari { display: flex; flex-wrap: wrap; gap: .35rem; }
.auto-dotare {
  border: 1px solid var(--stroke);
  background: var(--icon-bg);
  border-radius: 999px;
  padding: .1rem .6rem;
  font-size: .78rem;
}

.auto-rata-form,
.auto-cerere-randuri {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .6rem;
  align-items: end;
}
.auto-rata-form label > span,
.auto-cerere label > span,
.auto-cerere > label > span {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .2rem;
}
.auto-cerere-randuri { margin-bottom: .6rem; }

/* ------------------------------------------------------------------ */
/* Servicii si pachete                                                 */
/* ------------------------------------------------------------------ */

.serv-nr { margin-left: auto; font-size: .8rem; color: var(--muted); }
.serv-randuri { list-style: none; margin: 0; padding: 0; }
.serv-randuri li { padding: .5rem 0; border-bottom: 1px solid rgba(128, 128, 128, .15); }
.serv-randuri li:last-child { border-bottom: 0; }
.serv-rand { display: flex; align-items: flex-start; gap: 1rem; }
.serv-pret { margin-left: auto; font-weight: 700; white-space: nowrap; }
.serv-pret-mare { font-size: 1.5rem; font-weight: 700; margin: .3rem 0 .5rem; }

.serv-raft { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.serv-card {
  display: block;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--card-2);
  transition: box-shadow .18s ease, transform .18s ease;
}
.serv-card:hover { box-shadow: var(--card-hover-shadow); transform: translateY(-2px); }
.serv-card-poza { aspect-ratio: 16 / 10; overflow: hidden; background: var(--icon-bg); }
.serv-card-poza img { width: 100%; height: 100%; object-fit: cover; display: block; }
.serv-card-text { padding: .8rem .9rem 1rem; }
.serv-poza img { width: 100%; border-radius: 14px; margin-bottom: 1rem; }

.serv-incluse { list-style: none; margin: .5rem 0; padding: 0; }
.serv-incluse li { padding: .15rem 0 .15rem 1.4rem; position: relative; }
.serv-incluse li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

.serv-pachete { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.serv-pachet {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 1rem 1.1rem 1.2rem;
  background: var(--card-2);
  position: relative;
}
.serv-pachet.ales { border-color: var(--stroke-strong); box-shadow: var(--card-hover-shadow); }
.serv-eticheta {
  display: inline-block;
  background: var(--icon-bg);
  border: 1px solid var(--stroke-strong);
  border-radius: 999px;
  padding: 0 .55rem;
  font-size: .72rem;
  font-weight: 700;
  margin-bottom: .4rem;
}
.serv-pachet-pret { font-size: 1.35rem; font-weight: 700; margin: .4rem 0 .2rem; }
.serv-economie { font-size: .85rem; color: var(--ok); font-weight: 600; margin-bottom: .5rem; }

/* ------------------------------------------------------------------ */
/* Oferta, asa cum o vede clientul                                     */
/* ------------------------------------------------------------------ */

.of-public { max-width: 860px; }
.of-cap { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; }
.of-pastila {
  border-radius: 999px;
  padding: .15rem .7rem;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid var(--stroke);
}
.of-trimisa { background: var(--icon-bg); }
.of-acceptata { background: rgba(92, 255, 197, .15); border-color: rgba(92, 255, 197, .4); }
.of-respinsa,
.of-expirata,
.of-anulata { background: rgba(255, 107, 138, .12); border-color: rgba(255, 107, 138, .35); }

.of-tabel { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.of-tabel th,
.of-tabel td { padding: .55rem .3rem; border-bottom: 1px solid rgba(128, 128, 128, .18); text-align: left; vertical-align: top; }
.of-tabel th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.of-tabel td.n, .of-tabel th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.of-nealeasa td { opacity: .5; }
.of-bifa { display: flex; gap: .5rem; align-items: flex-start; cursor: pointer; }
.of-bifa input { margin-top: .25rem; }
.of-eticheta {
  display: inline-block;
  background: var(--icon-bg);
  border-radius: 999px;
  padding: 0 .5rem;
  font-size: .7rem;
  margin-left: .3rem;
}
.of-reducere { display: inline-block; color: var(--ok); font-size: .78rem; font-weight: 700; }

.of-totaluri { width: 100%; max-width: 380px; margin-left: auto; border-collapse: collapse; }
.of-totaluri td { padding: .2rem .3rem; }
.of-totaluri td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.of-totaluri tr.of-mare td { border-top: 2px solid var(--stroke); padding-top: .5rem; font-size: 1.15rem; }
.of-note { white-space: normal; }

/* ------------------------------------------------------------------ */
/* Calculator de pret                                                  */
/* ------------------------------------------------------------------ */

.calc-public { max-width: 820px; }
.calc-ales { margin-left: auto; font-size: .85rem; color: var(--cyan); font-weight: 600; }
.calc-lipsa { border-color: var(--danger); }
.calc-err { color: var(--danger); }

.calc-bifa {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .5rem .2rem;
  border-bottom: 1px solid rgba(128, 128, 128, .15);
  cursor: pointer;
}
.calc-bifa:last-child { border-bottom: 0; }
.calc-bifa input { margin-top: .25rem; flex: 0 0 auto; }
.calc-bifa > span:first-of-type { flex: 1 1 auto; }
.calc-pret { margin-left: auto; font-weight: 700; white-space: nowrap; color: var(--muted); }

.calc-numar { display: flex; align-items: center; gap: .5rem; max-width: 260px; }
.calc-um { color: var(--muted); font-size: .9rem; }

.calc-total { font-size: 2rem; font-weight: 700; margin: 0 0 .2rem; }
.calc-desfasurare { width: 100%; border-collapse: collapse; }
.calc-desfasurare td { padding: .25rem 0; border-bottom: 1px solid rgba(128, 128, 128, .15); }
.calc-desfasurare td.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.calc-cerere-randuri {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .6rem;
  margin-bottom: .6rem;
}
.calc-cerere label > span,
.calc-cerere > label > span {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .2rem;
}

.calc-raft { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.calc-card {
  display: block;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  background: var(--card-2);
}
.calc-card:hover { box-shadow: var(--card-hover-shadow); }

/* ------------------------------------------------------------------ */
/* Magazin                                                             */
/* ------------------------------------------------------------------ */

.mag-public { max-width: 900px; }

.mag-filtru-randuri {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .6rem;
  align-items: end;
}
.mag-filtru label { display: block; }
.mag-filtru label > span {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .2rem;
}
.mag-filtru button { height: 42px; }

.mag-raft { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.mag-card {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-2);
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.mag-card:hover { box-shadow: var(--card-hover-shadow); transform: translateY(-2px); }
.mag-card-legatura { text-decoration: none; color: inherit; display: block; }
.mag-card-poza { aspect-ratio: 1 / 1; overflow: hidden; background: var(--icon-bg); }
.mag-card-poza img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mag-card-text { padding: .8rem .9rem .4rem; }
.mag-card-buton { padding: 0 .9rem .9rem; margin-top: auto; display: block; }
.mag-pret { display: block; margin-top: .4rem; font-weight: 700; font-size: 1.05rem; }
.mag-pret-mare { font-size: 1.7rem; font-weight: 700; margin: .3rem 0 .2rem; }
.mag-fara-stoc { color: var(--danger); font-weight: 600; }
.mag-putin { color: var(--ok); font-weight: 600; }

.mag-poze { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.mag-poze img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; display: block; }

.mag-adauga { max-width: 420px; margin-top: 1rem; }
.mag-adauga-randuri { display: flex; gap: .6rem; }
.mag-adauga-randuri input { width: 90px; }

.mag-cos-tabel { width: 100%; border-collapse: collapse; }
.mag-cos-tabel td { padding: .6rem .3rem; border-bottom: 1px solid rgba(128, 128, 128, .18); vertical-align: middle; }
.mag-cos-tabel td.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mag-cos-poza { width: 64px; }
.mag-cos-poza img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; display: block; }
.mag-cos-cat input { width: 80px; }
.mag-nu-e td { background: rgba(255, 107, 138, .08); }

.mag-cod-randuri { display: flex; gap: .5rem; max-width: 360px; }
.mag-totaluri { width: 100%; max-width: 380px; margin-left: auto; border-collapse: collapse; }
.mag-totaluri td { padding: .2rem .3rem; }
.mag-totaluri td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.mag-totaluri tr.mag-mare td { border-top: 2px solid var(--stroke); padding-top: .5rem; font-size: 1.2rem; }

.mag-comanda-randuri {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .6rem;
}
.mag-comanda label > span,
.mag-comanda > label > span {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .2rem;
}
.mag-livrare { border: 0; padding: 0; margin: 1rem 0 .5rem; }

.mag-cos-plutitor {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--btn-fill);
  color: var(--btn-ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  text-decoration: none;
  font-size: 1.3rem;
}
.mag-cos-nr {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 11px;
  background: #d61f2f;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
@media print { .mag-cos-plutitor { display: none; } }

/* ------------------------------------------------------------------ */
/* Urmarire colete                                                     */
/* ------------------------------------------------------------------ */

.track-public { max-width: 780px; }
.track-form-randuri { display: flex; gap: .6rem; }
.track-form-randuri input { flex: 1 1 auto; }

.track-cap { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.track-pastila {
  border-radius: 999px;
  padding: .15rem .7rem;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid var(--stroke);
  background: var(--icon-bg);
}
.track-livrat { background: rgba(92, 255, 197, .15); border-color: rgba(92, 255, 197, .4); }
.track-intors,
.track-pierdut { background: rgba(255, 107, 138, .12); border-color: rgba(255, 107, 138, .35); }
.track-ultima { font-size: 1.05rem; margin: .8rem 0; }

.track-drum { list-style: none; display: flex; margin: 1.2rem 0; padding: 0; counter-reset: pas; }
.track-drum li {
  flex: 1 1 0;
  text-align: center;
  position: relative;
  font-size: .78rem;
  color: var(--muted);
  padding-top: 1.6rem;
}
.track-drum li::before {
  content: "";
  position: absolute;
  top: .4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--stroke);
  background: var(--card);
}
.track-drum li::after {
  content: "";
  position: absolute;
  top: calc(.4rem + 6px);
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--stroke);
}
.track-drum li:last-child::after { display: none; }
.track-drum li.trecut::before,
.track-drum li.acum::before { background: var(--cyan); border-color: var(--cyan); }
.track-drum li.trecut::after { background: var(--cyan); }
.track-drum li.acum { color: var(--text); font-weight: 700; }

.track-evenimente { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.track-evenimente li {
  display: flex;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(128, 128, 128, .15);
}
.track-evenimente li:last-child { border-bottom: 0; }
.track-cand { flex: 0 0 110px; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.track-text { flex: 1 1 auto; }
.track-curieri { display: flex; flex-wrap: wrap; gap: .4rem; }
.track-du-te { max-width: 520px; }
