/* ── PTH Tiqets – Design tokens ──────────────────────── */
.pth-trip-planner,
.pth-tiqets-upsell,
.pth-tiqets-order-details,
.pth-widget,
.pth-full-card {
  --pth-orange: #ed7621;
  --pth-orange-dark: #c55d12;
  --pth-blue: #154f9a;
  --pth-ink: #17304b;
  --pth-muted: #607086;
  --pth-surface: #ffffff;
  --pth-surface-soft: #f7f9fc;
  --pth-border: rgba(21, 79, 154, 0.12);
  --pth-radius: 12px;
  font-family: "Poppins", "Segoe UI", sans-serif;
  box-sizing: border-box;
}

/* ── COMPACT WIDGET ──────────────────────────────────── */
.pth-widget {
  background: var(--pth-surface);
  border: 1px solid var(--pth-border);
  border-radius: var(--pth-radius);
  box-shadow: 0 2px 8px rgba(15, 45, 82, 0.06);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.pth-widget__head {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
}

.pth-widget__img {
  border-radius: 8px;
  height: 48px;
  object-fit: cover;
  width: 48px;
  flex-shrink: 0;
}

.pth-widget__info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.pth-widget__title {
  color: var(--pth-ink);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pth-widget__from {
  color: var(--pth-orange-dark);
  font-size: 0.75rem;
  font-weight: 600;
}

.pth-widget__booking {
  border-top: 1px solid var(--pth-border);
  display: grid;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
}

.pth-widget__row {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.pth-widget__date-label {
  color: var(--pth-muted);
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: 36px;
}

.pth-widget__date,
.pth-widget__select {
  border: 1px solid rgba(23, 48, 75, 0.14);
  border-radius: 6px;
  flex: 1;
  font: inherit;
  font-size: 0.8rem;
  padding: 0.35rem 0.45rem;
}

.pth-widget__hint {
  color: var(--pth-muted);
  font-size: 0.75rem;
  margin: 0;
  padding: 0.15rem 0;
}

/* Variant rows */
.pth-widget__vrows {
  display: grid;
  gap: 0.35rem;
}

.pth-widget__vrow {
  background: var(--pth-surface-soft);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
}

.pth-widget__vlabel {
  color: var(--pth-ink);
  flex: 1;
  font-size: 0.78rem;
  font-weight: 500;
}

.pth-widget__vprice {
  color: var(--pth-orange-dark);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.pth-widget__qty {
  align-items: stretch;
  display: inline-flex;
  flex-shrink: 0;
  height: 32px;
  margin: 0;
}

.pth-widget .pth-widget__qbtn,
.pth-widget .pth-widget__qbtn:focus,
.pth-widget .pth-widget__qbtn:active {
  appearance: none !important;
  background: var(--pth-surface) !important;
  border: 1px solid rgba(23, 48, 75, 0.18) !important;
  box-shadow: none !important;
  color: var(--pth-ink) !important;
  cursor: pointer !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  height: 32px !important;
  line-height: 30px !important;
  margin: 0 !important;
  min-height: 32px !important;
  outline: none !important;
  padding: 0 !important;
  text-align: center !important;
  width: 32px !important;
}

.pth-widget .pth-widget__qbtn[data-qty-minus] {
  border-radius: 6px 0 0 6px !important;
  border-right: none !important;
}

.pth-widget .pth-widget__qbtn[data-qty-plus] {
  border-radius: 0 6px 6px 0 !important;
  border-left: none !important;
}

.pth-widget .pth-widget__qbtn:hover { background: var(--pth-surface-soft) !important; }

.pth-widget .pth-widget__qinput,
.pth-widget .pth-widget__qinput:focus,
.pth-widget .pth-widget__qinput:active {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
  background: var(--pth-surface) !important;
  border: 1px solid rgba(23, 48, 75, 0.18) !important;
  border-left: none !important;
  border-right: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  display: block !important;
  font-family: inherit !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  height: 32px !important;
  line-height: 30px !important;
  margin: 0 !important;
  max-width: 36px !important;
  min-height: 32px !important;
  min-width: 36px !important;
  outline: none !important;
  padding: 0 !important;
  text-align: center !important;
  width: 36px !important;
}

.pth-widget .pth-widget__qinput::-webkit-inner-spin-button,
.pth-widget .pth-widget__qinput::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
.pth-widget__qinput::-webkit-inner-spin-button,
.pth-widget__qinput::-webkit-outer-spin-button { appearance: none; }

/* Buy button */
.pth-widget__buy {
  appearance: none;
  background: linear-gradient(135deg, var(--pth-orange) 0%, #ff9247 100%);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  text-align: center;
  transition: transform 0.15s, opacity 0.15s, background 0.15s;
  width: 100%;
}
.pth-widget__buy:hover { opacity: 0.92; transform: translateY(-1px); }
.pth-widget__buy:disabled { cursor: not-allowed; opacity: 0.45; }

/* ── FULL SALES CARD ─────────────────────────────────── */
.pth-full-card {
  background: var(--pth-surface);
  border: 1px solid var(--pth-border);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(15, 45, 82, 0.06);
  overflow: hidden;
}

.pth-full-card__img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.pth-full-card__body {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
}

.pth-full-card__title {
  color: var(--pth-ink);
  font-size: 1.05rem;
  margin: 0;
}

.pth-full-card__sub {
  color: var(--pth-muted);
  font-size: 0.88rem;
  margin: 0;
}

.pth-full-card__price {
  color: var(--pth-orange-dark);
  font-size: 0.95rem;
  font-weight: 700;
}

.pth-full-card__booking {
  border-top: 1px solid var(--pth-border);
  display: grid;
  gap: 0.65rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}

/* ── PRODUCT PAGE OFFER CONTAINER ────────────────────── */
.pth-tiqets-product-offer {
  margin: 1.25rem 0;
}

.pth-tiqets-product-offer__status {
  background: var(--pth-surface-soft);
  border: 1px dashed rgba(21, 79, 154, 0.18);
  border-radius: var(--pth-radius);
  color: var(--pth-muted);
  font-size: 0.85rem;
  padding: 0.75rem 0.85rem;
}
.pth-tiqets-product-offer__status[hidden] { display: none; }

.pth-tiqets-upsell__header {
  padding: 0 0 0.75rem;
}

.pth-tiqets-upsell__copy { display: grid; gap: 0.25rem; }
.pth-tiqets-upsell__copy h3 { margin: 0; font-size: 0.95rem; }
.pth-tiqets-upsell__copy p { margin: 0; color: var(--pth-muted); font-size: 0.85rem; }

/* ── TRIP PLANNER (shortcode) ────────────────────────── */
.pth-trip-planner {
  background: linear-gradient(180deg, #fcfdff 0%, #f4f7fb 100%);
  border: 1px solid var(--pth-border);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(15, 45, 82, 0.12);
  color: var(--pth-ink);
  overflow: hidden;
}

.pth-trip-planner__shell { display: grid; gap: 1.5rem; padding: 1.5rem; }

.pth-control-card {
  background: var(--pth-surface);
  border: 1px solid var(--pth-border);
  border-radius: var(--pth-radius);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1rem;
}

.pth-field { display: grid; gap: 0.35rem; }
.pth-field span { color: var(--pth-muted); font-size: 0.82rem; font-weight: 600; }
.pth-field input,
.pth-field select { border: 1px solid rgba(23,48,75,0.14); border-radius: 8px; font: inherit; padding: 0.6rem 0.75rem; }

.pth-attractions-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Buttons */
.pth-primary-btn,
.pth-secondary-btn,
.pth-link-btn {
  appearance: none; border: 0; border-radius: 8px; cursor: pointer;
  font: inherit; font-weight: 700;
  transition: transform 0.15s, opacity 0.15s, background 0.15s;
}
.pth-primary-btn, .pth-secondary-btn { padding: 0.7rem 1rem; }
.pth-primary-btn { background: linear-gradient(135deg, var(--pth-orange), #ff9247); color: #fff; }
.pth-secondary-btn { background: rgba(21,79,154,0.08); color: var(--pth-blue); }
.pth-link-btn { background: transparent; color: var(--pth-blue); padding: 0; }
.pth-primary-btn:hover, .pth-secondary-btn:hover { opacity: 0.92; transform: translateY(-1px); }

/* Summary */
.pth-summary-card {
  background: var(--pth-surface);
  border: 1px solid var(--pth-border);
  border-radius: var(--pth-radius);
  display: grid; gap: 0.3rem; margin-bottom: 0.75rem; padding: 0.85rem;
}
.pth-summary-card span { color: var(--pth-muted); font-size: 0.85rem; }
.pth-summary-footer {
  align-items: center; border-top: 1px solid var(--pth-border);
  display: flex; gap: 1rem; justify-content: space-between;
  margin-top: 0.75rem; padding-top: 0.75rem;
}

/* Order details (thank-you page) */
.pth-tiqets-order-details { margin-top: 1.5rem; }
.pth-tiqets-order-details ul { margin: 0.75rem 0 0; padding-left: 1.2rem; }

/* ── Visitor Details ─────────────────────────────────── */
.pth-widget__visitors {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.pth-widget__visitors:empty {
  display: none;
}

.pth-widget__visitor {
  background: var(--pth-surface);
  border: 1px solid rgba(21, 79, 154, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 0.2rem;
  padding: 0.35rem 0.5rem;
}

.pth-widget__visitor-label {
  color: var(--pth-blue);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pth-widget__visitor-dob-label {
  color: var(--pth-muted);
  font-size: 0.65rem;
  margin-top: 0.1rem;
}

.pth-visitor-field {
  border: 1px solid rgba(23, 48, 75, 0.14);
  border-radius: 6px;
  font: inherit;
  font-size: 0.78rem;
  padding: 0.3rem 0.4rem;
  width: 100%;
}

/* ── Checkout Fields ─────────────────────────────────── */
.pth-widget__fields {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.pth-widget__field {
  display: grid;
  gap: 0.15rem;
}

.pth-widget__field-label {
  color: var(--pth-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pth-widget__field-input {
  border: 1px solid rgba(23, 48, 75, 0.14);
  border-radius: 6px;
  font: inherit;
  font-size: 0.8rem;
  padding: 0.35rem 0.45rem;
  width: 100%;
}

/* ── Widget Selector ─────────────────────────────────── */
.pth-widget-selector {
  margin-bottom: 0.5rem;
}

.pth-widget-selector__select {
  appearance: none;
  background: var(--pth-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23607086' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 0.65rem center;
  border: 1px solid var(--pth-border);
  border-radius: 8px;
  color: var(--pth-ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 2rem 0.5rem 0.65rem;
  width: 100%;
}

.pth-widget-selector__select:focus {
  border-color: var(--pth-orange);
  outline: none;
}

/* Cart quantity label for Tiqets items */
.pth-tiqets-qty-label {
  font-size: 0.82rem;
  line-height: 1.4;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 920px) {
  .pth-control-card { grid-template-columns: 1fr; }
}
