.ttai-wrap { max-width: 1100px; margin: 0 auto; }
.ttai-error { padding: 12px; border: 1px solid #cc0000; color: #cc0000; border-radius: 10px; }

.ttai-board { position: relative; width: 100%; }
.ttai-bg { width: 100%; height: auto; display: block; border-radius: 14px; }
.ttai-overlay { position: absolute; inset: 0; }

.ttai-spot {
  position: absolute;
  border: 2px solid rgba(255,255,255,0.9);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 6px;
  user-select: none;
  background: rgba(0,0,0,0.08);
  transition: transform 120ms ease, background 120ms ease;
}

.ttai-spot:hover { transform: scale(1.01); background: rgba(0,0,0,0.14); }

.ttai-spot__tag {
  background: rgba(0,0,0,0.65);
  color: white;
  font-weight: 800;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 999px;
  line-height: 1;
}

.ttai-spot.is-sold {
  cursor: not-allowed;
  border-color: rgba(255,0,0,0.85);
  background: rgba(255,0,0,0.12);
}

.ttai-spot.is-sold .ttai-spot__tag {
  background: rgba(255,0,0,0.85);
}

.ttai-spot__sold {
  position: absolute;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  transform: rotate(-12deg);
  font-size: clamp(16px, 2.4vw, 28px);
}

/* Modal */
.ttai-modal { position: fixed; inset: 0; display:none; z-index: 99999; }
.ttai-modal.is-open { display:block; }
.ttai-modal__backdrop { position:absolute; inset:0; background: rgba(0,0,0,0.55); }
.ttai-modal__panel {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100% - 24px));
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  max-height: calc(100% - 24px);
  overflow: auto;
}

.ttai-close {
  position:absolute; right:12px; top:10px;
  border:none; background:transparent; font-size: 28px; cursor:pointer;
}

.ttai-header { padding-right: 42px; }
.ttai-title { font-size: 20px; font-weight: 900; }
.ttai-sub { color:#555; margin-top: 4px; }

.ttai-steps { margin-top: 14px; display:grid; gap: 12px; }
.ttai-step { border: 1px solid #eee; border-radius: 12px; padding: 12px; }
.ttai-step h4 { margin: 0 0 8px; font-size: 16px; }
.ttai-row { display:flex; gap: 10px; flex-wrap: wrap; }
.ttai-row input[type="text"],
.ttai-row input[type="email"],
.ttai-row input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.ttai-choices { display:flex; gap: 10px; flex-wrap: wrap; }
.ttai-choice {
  border: 1px solid #ddd;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
}
.ttai-choice.is-selected { border-color: #111; }

.ttai-actions { display:flex; justify-content:flex-end; gap: 10px; margin-top: 10px; }
.ttai-btn {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
}
.ttai-btn.is-next { background:#111; color:#fff; }
.ttai-btn.is-prev { background:#eee; }

.ttai-footer { margin-top: 14px; border-top:1px solid #eee; padding-top: 12px; }
.ttai-quote { font-weight: 900; font-size: 16px; margin-bottom: 10px; }
.ttai-submit {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: none;
  background: #0b5;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.ttai-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.ttai-status { margin-top: 10px; color: #333; }
.ttai-status.is-error { color: #b00020; }
.ttai-status.is-ok { color: #0a7; }

/* ===== Admin: Spot price editor (Table Builder) ===== */
.ttai-spot-prices {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.ttai-spot-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-top: 1px solid #f1f5f9;
}

.ttai-spot-price-row:first-child { border-top: 0; }

.ttai-spot-price-id {
  font-weight: 700;
  color: #111827;
  min-width: 120px;
}

.ttai-spot-price-input {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ttai-spot-price-input input {
  width: 160px;
}

.ttai-spot-price-suffix {
  color: #6b7280;
  font-weight: 600;
}