/* =========================================================
   Torta Budapest – átvételi idő (termékoldal, pénztár, köszönőoldal)
   Párja: atvetel/shop.php + atvetel.js
   ========================================================= */

.tb-when-box,
.tb-when,
.tb-order-when {
  --tb-brown: #542616;
  --tb-ink-2: #765145;
  --tb-ink-3: #987D73;
  --tb-orange: #F1A748;
  --tb-orange-b: #FEF3E2;
  --tb-cream: #FFF9F0;
  --tb-line: #F0E3D0;
  --tb-line-2: #E5D3BC;
  --tb-danger: #B23A2B;
  color: var(--tb-brown);
}

.tb-when-box *,
.tb-when * { box-sizing: border-box; }

/* ---------- termékoldal ---------- */

.tb-when-box {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--tb-line);
  border-radius: 12px;
  background: var(--tb-cream);
  font-size: 15px;
  line-height: 1.5;
}

.tb-when-box-title {
  margin: 0 0 8px;
  font-family: "Staatliches", "Arial Narrow", Arial, sans-serif;
  font-size: 20px;
  letter-spacing: .01em;
}

.tb-when-list { margin: 0; padding: 0; list-style: none; }
.tb-when-list li { margin: 0 0 4px; }
.tb-when-list span { color: var(--tb-ink-2); }

.tb-when-loading { color: var(--tb-ink-3); }
.tb-when-box.is-loading .tb-when-list { opacity: .5; }

.tb-when-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--tb-ink-3);
}

.tb-when-none { margin: 0; color: var(--tb-danger); }

/* ---------- pénztár ---------- */

.tb-when-chosen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 14px 16px;
  border: 2px solid var(--tb-orange);
  border-radius: 12px;
  background: var(--tb-orange-b);
}

.tb-when-label { color: var(--tb-ink-2); }
.tb-when-value { font-size: 16px; }

body.bf-flow .tb-when .tb-when-change,
.tb-when .tb-when-change {
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid var(--tb-brown);
  border-radius: 10px;
  background: #fff;
  color: var(--tb-brown);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.tb-when-moved {
  margin: 0 0 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #FCEDEA;
  color: var(--tb-danger);
  font-size: 14px;
}

.tb-when-pick.is-hidden { display: none; }

.tb-cal {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--tb-line);
  border-radius: 12px;
  background: #fff;
}

.tb-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tb-cal-title { font-weight: 700; text-transform: capitalize; }

body.bf-flow .tb-when .tb-cal-nav,
.tb-when .tb-cal-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--tb-line-2);
  background: #fff;
  color: var(--tb-brown);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

body.bf-flow .tb-when .tb-cal-nav:disabled,
.tb-when .tb-cal-nav:disabled { opacity: .3; cursor: default; }

.tb-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.tb-cal-wd {
  padding: 4px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--tb-ink-3);
}

body.bf-flow .tb-when .tb-cal-day,
.tb-when .tb-cal-day {
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--tb-line-2);
  background: #fff;
  color: var(--tb-brown);
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

body.bf-flow .tb-when .tb-cal-day:disabled,
.tb-when .tb-cal-day:disabled {
  border-color: transparent;
  background: transparent;
  color: #CDBDB3;
  font-weight: 400;
  text-decoration: line-through;
  cursor: default;
}

body.bf-flow .tb-when .tb-cal-day.is-sel,
.tb-when .tb-cal-day.is-sel,
body.bf-flow .tb-when .tb-chip.is-sel,
.tb-when .tb-chip.is-sel {
  border-color: var(--tb-brown);
  background: var(--tb-brown);
  color: #fff;
}

.tb-cal-slots { margin-top: 14px; }
.tb-cal-slots-title { margin-bottom: 8px; font-weight: 700; }
.tb-cal-chips { display: flex; flex-wrap: wrap; gap: 8px; }

body.bf-flow .tb-when .tb-chip,
.tb-when .tb-chip {
  padding: 8px 12px;
  border: 1px solid var(--tb-line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--tb-brown);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.tb-hv-wrap { margin-top: 16px; }

.tb-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
}

.tb-check input { width: 18px; height: 18px; accent-color: var(--tb-brown); }

.tb-hv { margin-top: 12px; }
.tb-hv[hidden] { display: none; }

body.bf-flow .tb-hv input[type="date"],
body.bf-flow .tb-hv input[type="time"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--tb-line-2);
  border-radius: 10px;
  background: #fff;
  color: var(--tb-brown);
  font: inherit;
}

.tb-when > .tb-when-hint { margin-top: 12px; }

/* ---------- köszönőoldal, fiók ---------- */

.tb-order-when {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid var(--tb-line);
  border-radius: 12px;
  background: var(--tb-cream);
}

.tb-order-when h2 { margin: 0 0 10px; font-size: 22px; }

.tb-order-when dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 16px;
  margin: 0 0 8px;
}

.tb-order-when dt { color: var(--tb-ink-2); }
.tb-order-when dd { margin: 0; font-weight: 600; }
.tb-order-when p { margin: 0; font-size: 13px; color: var(--tb-ink-3); }

@media (max-width: 600px) {
  .tb-when-change { margin-left: 0; width: 100%; }
  .tb-order-when dl { grid-template-columns: minmax(0, 1fr); }
  .tb-order-when dd { margin-bottom: 6px; }
}
