/* ============================================================
   MPMDESIGN – sdílené styly konfigurátorů DTF, polepů a CNC.
   Vychází ze stylů samolepky.html / gravirovani.html (stejné třídy
   .cfg-wrap, .cfg-panel, .price-box…), jen v samostatném souboru.
   ============================================================ */

.cfg-intro { padding: 2rem 0 1rem; }
.cfg-intro h1 { margin: 0 0 .5rem; }
.cfg-intro p { margin: 0; max-width: 62ch; }

.cfg-wrap { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: flex-start; padding-bottom: 2rem; }
.cfg-viewer { flex: 1 1 460px; min-width: 0; }
/* Lepivý náhled má smysl jen ve dvou sloupcích; v jednom by překrýval formulář. */
@media (min-width: 900px) {
  .cfg-viewer { position: sticky; top: 88px; z-index: 0; }
}
.cfg-stage {
  width: 100%; border-radius: 14px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04); display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 1rem;
}
.cfg-stage svg { width: 100%; height: auto; max-height: min(520px, 62vh); }
.hint { font-size: .82rem; color: rgba(255,255,255,0.55); margin-top: .6rem; text-align: center; }

.cfg-panel {
  flex: 1 1 340px; min-width: 0; max-width: 460px; background: var(--panel); border-radius: 14px;
  padding: 1.3rem; border: 1px solid rgba(255,255,255,0.15);
}
.cfg-panel h2 {
  font-size: .95rem; margin: 1.6rem 0 .4rem; color: var(--accent); text-transform: uppercase; letter-spacing: .05em;
}
.cfg-panel h2:first-of-type { margin-top: 0; }
.cfg-panel label { display: block; font-size: .85rem; margin: .8rem 0 .35rem; color: rgba(255,255,255,0.8); }
.cfg-panel input[type=text], .cfg-panel input[type=email], .cfg-panel input[type=tel],
.cfg-panel input[type=number], .cfg-panel input[type=url], .cfg-panel input[type=date],
.cfg-panel select, .cfg-panel textarea {
  width: 100%; min-height: 44px; padding: .6rem .7rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.25); color: var(--text);
  font-family: inherit; font-size: 1rem;
}
.cfg-panel input:focus, .cfg-panel select:focus, .cfg-panel textarea:focus {
  outline: none; border-color: var(--accent); background: rgba(0,0,0,0.4);
}
.cfg-panel input[type=file] { width: 100%; color: var(--text); font-size: .9rem; padding: .4rem 0; }
.cfg-panel textarea { resize: vertical; min-height: 70px; }
.cfg-panel select option { background: #0e1a30; }

.row2 { display: flex; gap: .6rem; }
.row2 > div { flex: 1; min-width: 0; }

.tabs { display: flex; gap: .4rem; margin: .3rem 0 .2rem; }
.tab {
  flex: 1; min-height: 44px; padding: .5rem; border-radius: 8px; background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.2); color: var(--text); cursor: pointer; font-weight: 600;
  font-size: .9rem; font-family: inherit; transition: all .25s ease;
}
.tab.active { background: var(--accent); border-color: var(--accent); }

.check { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; margin: .9rem 0 .2rem;
  font-size: .9rem; color: rgba(255,255,255,0.85); }
.check input { width: 20px; height: 20px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--accent); }

.note { font-size: .8rem; color: rgba(255,255,255,0.55); margin: .45rem 0 0; }
.warn { font-size: .85rem; color: #ffc98a; margin: .45rem 0 0; }
.warn.bad { color: #ff8a8a; }

/* Řádek „místo potisku + velikost + odebrat" (DTF) */
.pos-row { display: flex; gap: .5rem; align-items: center; margin-top: .5rem; }
.pos-row select { flex: 1; min-width: 0; }
.btn-icon {
  flex: 0 0 44px; height: 44px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.25); color: var(--text); font-size: 1.2rem; cursor: pointer;
}
.btn-icon:hover { border-color: #ff8a8a; color: #ff8a8a; }
.btn-ghost {
  margin-top: .6rem; min-height: 44px; width: 100%; border-radius: 8px; border: 1px dashed rgba(255,255,255,0.3);
  background: transparent; color: var(--text); font-family: inherit; font-size: .9rem; cursor: pointer;
}
.btn-ghost:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn-ghost:disabled { opacity: .4; cursor: not-allowed; }

/* Mřížka počtů podle velikostí textilu */
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: .4rem; }
.size-grid label { margin: 0 0 .2rem; text-align: center; font-weight: 600; }
.size-grid input { text-align: center; padding: .5rem .3rem; }

.file-list { list-style: none; margin: .5rem 0 0; padding: 0; font-size: .85rem; }
.file-list li { display: flex; gap: .5rem; align-items: center; justify-content: space-between;
  padding: .4rem .5rem; border-radius: 8px; background: rgba(0,0,0,0.2); margin-top: .3rem; }
.file-list li span { min-width: 0; overflow-wrap: anywhere; }
.file-list button { flex: 0 0 auto; background: none; border: none; color: #ff8a8a; cursor: pointer;
  font-size: .85rem; min-height: 32px; font-family: inherit; }

/* Cena */
.price-box { margin-top: 1.4rem; padding: 1rem; border-radius: 12px; background: rgba(245,146,30,0.12);
  border: 1px solid rgba(245,146,30,0.45); }
.price-lines { list-style: none; margin: 0 0 .6rem; padding: 0; font-size: .88rem; }
.price-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0;
  color: rgba(255,255,255,0.8); }
.price-lines li span:last-child { white-space: nowrap; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.price-row + .price-row { margin-top: .35rem; }
.price-total { font-size: 1.9rem; font-weight: 700; color: var(--accent); line-height: 1.1; text-align: right; }
.price-sub { font-size: .82rem; color: rgba(255,255,255,0.65); }
.price-hint { margin: .6rem 0 0; font-size: .85rem; color: #7ee787; }
.price-why { margin: .6rem 0 0; font-size: .82rem; color: rgba(255,255,255,0.7); }

#send { margin-top: 1.1rem; width: 100%; min-height: 48px; padding: .85rem; border: none; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; transition: all .3s ease; }
#send:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(245,146,30,0.4); }
#send:disabled { opacity: .5; cursor: not-allowed; }
#status { margin-top: .6rem; font-size: .9rem; min-height: 18px; }
#status.ok { color: #7ee787; }
#status.err { color: #ff8a8a; }

.legal { margin-top: .7rem; color: rgba(255,255,255,0.5); font-size: .75rem; line-height: 1.5; }
.legal p { margin: .35rem 0; }
.legal a { color: rgba(255,255,255,0.75); text-decoration: underline; }
.legal a:hover { color: var(--accent); }

/* Tabulka ceníku pod kalkulačkou */
.cfg-pricelist { padding: 1rem 0 3rem; }
.cfg-pricelist h2 { margin-bottom: .4rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cfg-pricelist table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: .92rem; }
.cfg-pricelist th, .cfg-pricelist td { padding: .6rem .7rem; border-bottom: 1px solid rgba(255,255,255,0.12); text-align: right; }
.cfg-pricelist th:first-child, .cfg-pricelist td:first-child { text-align: left; }
.cfg-pricelist th { color: var(--accent); font-weight: 700; }
.cfg-pricelist ul { margin: .8rem 0 0; padding-left: 1.2rem; color: rgba(255,255,255,0.75); font-size: .9rem; }
