/* TIXEN embed widget theme — premium light/dark surfaces */

html.tixen-widget-embed,
body.tixen-widget-embed {
  background: var(--widget-page) !important;
  color: var(--widget-text) !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

/*
 * Pin the action bar to the iframe visual viewport.
 * Do NOT rely on flex footer docking — iOS/Safari still scrolls `position:relative`
 * bars when the document/body is the scroll root.
 */
html.tixen-widget-embed.tixen-widget-docked,
body.tixen-widget-embed.tixen-widget-docked {
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

@supports (height: 100dvh) {
  html.tixen-widget-embed.tixen-widget-docked,
  body.tixen-widget-embed.tixen-widget-docked {
    height: 100dvh !important;
    max-height: 100dvh !important;
  }
}

body.tixen-widget-embed.tixen-widget-docked > main {
  height: 100% !important;
  max-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 24px !important;
  box-sizing: border-box !important;
}

body.tixen-widget-embed.tixen-widget-docked.has-widget-cart > main {
  padding-bottom: 120px !important;
}

/* Keep ticket list area from collapsing while AJAX loads. */
body.tixen-widget-embed.tixen-widget-docked #ticket-container,
body.tixen-widget-embed.tixen-widget-docked #ticket-list {
  min-height: 120px;
}

body.tixen-widget-embed.tixen-widget-docked > #tixen-widget-dock {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  z-index: 2147483000 !important;
  background: var(--widget-bg) !important;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.14) !important;
  transform: none !important;
  translate: none !important;
  -webkit-transform: none !important;
  pointer-events: auto !important;
}

body.tixen-widget-embed.tixen-widget-docked > #tixen-widget-dock button,
body.tixen-widget-embed.tixen-widget-docked > #tixen-widget-dock a,
body.tixen-widget-embed.tixen-widget-docked > #tixen-widget-dock #payment-button,
body.tixen-widget-embed.tixen-widget-docked > #tixen-widget-dock .mobile-btn {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 2 !important;
}

body.tixen-widget-embed.tixen-widget-docked > #tixen-widget-dock.is-empty {
  display: none !important;
  box-shadow: none !important;
}

body.tixen-widget-embed.tixen-widget-docked #selected-ticket {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  transform: none !important;
  translate: none !important;
  -webkit-transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.tixen-widget-embed.tixen-widget-docked.has-widget-cart #selected-ticket,
body.tixen-widget-embed.tixen-widget-docked.has-widget-cart #selected-ticket.hidden,
body.tixen-widget-embed.tixen-widget-docked.has-widget-cart #selected-ticket.translate-y-full,
body.tixen-widget-embed.tixen-widget-docked.has-widget-cart #selected-ticket.md\:hidden {
  display: block !important;
  transform: none !important;
  translate: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Mobile widget: hide in-card Back/Continue/Payment Now — sticky bar only (same as tixen.id). */
body.tixen-widget-embed .widget-order-actions,
body.tixen-widget-embed .widget-payment-actions,
body.tixen-widget-embed form .md\:grid.hidden.grid-cols-2,
body.tixen-widget-embed form .grid.grid-cols-2.hidden.md\:grid {
  display: none !important;
}

@media (min-width: 768px) {
  body.tixen-widget-embed .widget-order-actions,
  body.tixen-widget-embed .widget-payment-actions,
  body.tixen-widget-embed form .md\:grid.hidden.grid-cols-2,
  body.tixen-widget-embed form .grid.grid-cols-2.hidden.md\:grid {
    display: grid !important;
  }
}

body.tixen-widget-embed.has-widget-cart:not(.tixen-widget-docked) {
  padding-bottom: 120px !important;
}

body.tixen-widget-embed:not(.tixen-widget-docked) main {
  padding-bottom: 24px !important;
}

body.tixen-widget-embed .bg-primary,
body.tixen-widget-embed .from-gray-900,
body.tixen-widget-embed .via-gray-800,
body.tixen-widget-embed .to-gray-900,
body.tixen-widget-embed .bg-gradient-to-br.from-gray-900 {
  background: var(--widget-page) !important;
  background-image: none !important;
}

body.tixen-widget-embed .bg-zinc-800,
body.tixen-widget-embed .bg-bgform,
body.tixen-widget-embed .bg-secondary,
body.tixen-widget-embed .bg-alternate,
body.tixen-widget-embed .bg-zinc-900,
body.tixen-widget-embed .bg-gray-800,
body.tixen-widget-embed .bg-gray-900,
body.tixen-widget-embed .bg-slate-800,
body.tixen-widget-embed .bg-slate-900,
body.tixen-widget-embed .bg-\[\#1f1f1f\],
body.tixen-widget-embed .bg-\[\#05031f\],
body.tixen-widget-embed .bg-\[\#1E1E1E\],
body.tixen-widget-embed .bg-\[\#1e1e1e\] {
  background-color: var(--widget-bg) !important;
  background-image: none !important;
}

body.tixen-widget-embed .text-litegrey,
body.tixen-widget-embed .text-white {
  color: var(--widget-text) !important;
}

body.tixen-widget-embed .text-gray-300,
body.tixen-widget-embed .text-gray-400,
body.tixen-widget-embed .text-zinc-300,
body.tixen-widget-embed .text-zinc-400,
body.tixen-widget-embed .text-slate-300,
body.tixen-widget-embed .text-slate-400 {
  color: var(--widget-muted) !important;
}

body.tixen-widget-embed .bg-bluecs,
body.tixen-widget-embed .hover\:bg-bluehover:hover {
  background-color: var(--widget-button) !important;
  color: var(--widget-button-text) !important;
}

body.tixen-widget-embed .bg-bluecs .text-primary,
body.tixen-widget-embed .bg-bluecs .text-litegrey,
body.tixen-widget-embed button.bg-bluecs,
body.tixen-widget-embed a.bg-bluecs,
body.tixen-widget-embed .btn-plus,
body.tixen-widget-embed .btn-minus,
body.tixen-widget-embed .select-ticket {
  color: var(--widget-button-text) !important;
}

body.tixen-widget-embed .text-primary {
  color: var(--widget-button-text) !important;
}

body.tixen-widget-embed:not(.tixen-widget-docked) #selected-ticket {
  background-color: var(--widget-bg) !important;
  border-color: var(--widget-border) !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 2147483000 !important;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

body.tixen-widget-embed.tixen-widget-docked #selected-ticket {
  background-color: var(--widget-bg) !important;
  border-color: var(--widget-border) !important;
  border-top: 1px solid var(--widget-border) !important;
  box-shadow: none !important;
}

body.tixen-widget-embed .sticky.top-\[90px\] {
  top: 12px !important;
}

body.tixen-widget-embed .border-alternate,
body.tixen-widget-embed .border-tertiary,
body.tixen-widget-embed .border-zinc-700,
body.tixen-widget-embed .border-zinc-600,
body.tixen-widget-embed .border-gray-700,
body.tixen-widget-embed .border-slate-700,
body.tixen-widget-embed .border-\[\#646464\] {
  border-color: var(--widget-border) !important;
}

/* ---------- Premium light surfaces ---------- */
body.tixen-widget-embed.tixen-widget-light .bg-zinc-800,
body.tixen-widget-embed.tixen-widget-light .bg-bgform,
body.tixen-widget-embed.tixen-widget-light .bg-secondary,
body.tixen-widget-embed.tixen-widget-light .bg-alternate,
body.tixen-widget-embed.tixen-widget-light .glass-effect,
body.tixen-widget-embed.tixen-widget-light .from-slate-800,
body.tixen-widget-embed.tixen-widget-light .to-slate-900,
body.tixen-widget-embed.tixen-widget-light .from-slate-900,
body.tixen-widget-embed.tixen-widget-light .to-slate-800,
body.tixen-widget-embed.tixen-widget-light .bg-gradient-to-br.from-slate-800,
body.tixen-widget-embed.tixen-widget-light .bg-gradient-to-br.from-slate-900 {
  background: var(--widget-bg) !important;
  background-image: none !important;
  border: 1px solid var(--widget-border) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
}

body.tixen-widget-embed.tixen-widget-light .glass-effect {
  backdrop-filter: none !important;
}

body.tixen-widget-embed.tixen-widget-light #payment-container,
body.tixen-widget-embed.tixen-widget-light .min-h-screen.bg-gradient-to-br {
  background: var(--widget-page) !important;
  background-image: none !important;
}

body.tixen-widget-embed.tixen-widget-light .text-white,
body.tixen-widget-embed.tixen-widget-light .text-litegrey {
  color: var(--widget-text) !important;
}

body.tixen-widget-embed.tixen-widget-light .text-gray-300,
body.tixen-widget-embed.tixen-widget-light .text-gray-400,
body.tixen-widget-embed.tixen-widget-light .text-zinc-300,
body.tixen-widget-embed.tixen-widget-light .text-zinc-400,
body.tixen-widget-embed.tixen-widget-light .text-slate-300,
body.tixen-widget-embed.tixen-widget-light .text-slate-400,
body.tixen-widget-embed.tixen-widget-light .text-amber-400,
body.tixen-widget-embed.tixen-widget-light .text-emerald-400 {
  color: var(--widget-muted) !important;
}

body.tixen-widget-embed.tixen-widget-light .text-yellow-300,
body.tixen-widget-embed.tixen-widget-light .text-yellow-400 {
  color: var(--widget-accent) !important;
}

body.tixen-widget-embed.tixen-widget-light .bg-yellow-300,
body.tixen-widget-embed.tixen-widget-light .hover\:bg-yellow-300:hover,
body.tixen-widget-embed.tixen-widget-light button.bg-yellow-300 {
  background-color: var(--widget-button) !important;
  color: var(--widget-button-text) !important;
  border-color: transparent !important;
}

body.tixen-widget-embed.tixen-widget-light .bg-yellow-300 .text-primary,
body.tixen-widget-embed.tixen-widget-light .bg-yellow-300 .text-black,
body.tixen-widget-embed.tixen-widget-light button.bg-yellow-300 {
  color: var(--widget-button-text) !important;
}

body.tixen-widget-embed.tixen-widget-light .rounded-full.bg-yellow-300 {
  background-color: #ECFDF5 !important;
  border-color: #A7F3D0 !important;
  color: var(--widget-accent) !important;
}

body.tixen-widget-embed.tixen-widget-light .rounded-full.bg-yellow-300 svg {
  color: var(--widget-accent) !important;
  stroke: var(--widget-accent) !important;
}

body.tixen-widget-embed.tixen-widget-light .bg-amber-500\/20,
body.tixen-widget-embed.tixen-widget-light .border-amber-500\/30 {
  background-color: #FFF7ED !important;
  border-color: #FED7AA !important;
  color: #9A3412 !important;
}

body.tixen-widget-embed.tixen-widget-light .payment-card,
body.tixen-widget-embed.tixen-widget-light .border-2.border-tertiary,
body.tixen-widget-embed.tixen-widget-light .border.border-tertiary {
  background: #FFFFFF !important;
  border-color: var(--widget-border) !important;
}

body.tixen-widget-embed.tixen-widget-light .payment-card .radio {
  border-color: #94A3B8 !important;
  background: #FFFFFF !important;
}

/* Selected radio: dark theme uses white dot; light needs ink-colored dot. */
body.tixen-widget-embed.tixen-widget-light .payment-card .dot,
body.tixen-widget-embed.tixen-widget-light .payment-card .dot.bg-white {
  background-color: var(--widget-button) !important;
}

body.tixen-widget-embed.tixen-widget-light .payment-card .radio.border-white,
body.tixen-widget-embed.tixen-widget-light .payment-card.border-white\/30 .radio,
body.tixen-widget-embed.tixen-widget-light .payment-card.bg-white\/20 .radio {
  border-color: var(--widget-button) !important;
}

body.tixen-widget-embed.tixen-widget-light .payment-card.bg-white\/20,
body.tixen-widget-embed.tixen-widget-light .payment-card.border-white\/30 {
  background-color: #F1F5F9 !important;
  border-color: var(--widget-button) !important;
  box-shadow: inset 0 0 0 1px var(--widget-button);
}

body.tixen-widget-embed.tixen-widget-light .hover\:bg-white\/10:hover {
  background-color: var(--widget-surface) !important;
}

body.tixen-widget-embed.tixen-widget-light .shadow-2xl {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
}

body.tixen-widget-embed.tixen-widget-light .card-hover:hover {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10) !important;
}

body.tixen-widget-embed.tixen-widget-light input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
body.tixen-widget-embed.tixen-widget-light select,
body.tixen-widget-embed.tixen-widget-light textarea {
  background: #FFFFFF !important;
  color: var(--widget-text) !important;
  border-color: var(--widget-border) !important;
}

body.tixen-widget-embed.tixen-widget-light input::placeholder,
body.tixen-widget-embed.tixen-widget-light textarea::placeholder {
  color: #94A3B8 !important;
}

/* Gender / agreement radios & checkboxes must keep a visible checked mark. */
body.tixen-widget-embed.tixen-widget-light input[type="radio"],
body.tixen-widget-embed.tixen-widget-light input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 1rem !important;
  height: 1rem !important;
  min-width: 1rem !important;
  min-height: 1rem !important;
  margin: 0 !important;
  background-color: #FFFFFF !important;
  border: 2px solid #94A3B8 !important;
  display: inline-grid !important;
  place-content: center !important;
  vertical-align: middle !important;
  cursor: pointer !important;
  color: transparent !important;
}

body.tixen-widget-embed.tixen-widget-light input[type="radio"] {
  border-radius: 0.25rem !important;
}

body.tixen-widget-embed.tixen-widget-light input[type="checkbox"] {
  border-radius: 0.25rem !important;
}

body.tixen-widget-embed.tixen-widget-light input[type="radio"]:checked,
body.tixen-widget-embed.tixen-widget-light input[type="checkbox"]:checked {
  background-color: var(--widget-button) !important;
  border-color: var(--widget-button) !important;
}

body.tixen-widget-embed.tixen-widget-light input[type="radio"]:checked::before,
body.tixen-widget-embed.tixen-widget-light input[type="checkbox"]:checked::before {
  content: "" !important;
  width: 0.35rem !important;
  height: 0.6rem !important;
  border: solid #FFFFFF !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) translate(-1px, -1px) !important;
  display: block !important;
}
