/* Public Ticketshop Frontend - Event Details + Checkout */

html {
  background: transparent;
}

html,
body {
  color: var(--nm-shop-text);
  min-height: 100vh;
  overflow-x: hidden;
}

html.embed-mode {
  overflow-y: hidden !important;
  scrollbar-width: none;
}

html.embed-mode::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body.nm-ticket-page.embed-mode {
  background: transparent;
  overflow-y: hidden !important;
}

.ticket-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1rem 3.6rem;
  position: relative;
  z-index: 1;
}

.embed-mode .ticket-shell {
  max-width: 100%;
  padding: 0.8rem 0.6rem 1.2rem;
}

.ticket-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
}

.ticket-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  color: var(--nm-shop-text);
  text-decoration: none;
  font-family: var(--nm-shop-font-display);
  font-weight: 700;
}

.ticket-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(86, 212, 199, 0.14);
  border: 1px solid rgba(86, 212, 199, 0.28);
  color: var(--nm-shop-accent);
}

.ticket-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  text-decoration: none;
  color: #d8ebf6;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(146, 214, 238, 0.3);
  background: rgba(12, 23, 34, 0.66);
}

.ticket-back-link:hover,
.ticket-back-link:focus-visible {
  color: #eaf8ff;
  border-color: rgba(120, 228, 211, 0.56);
  background: rgba(18, 35, 48, 0.82);
}

.ticket-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1rem, 3vw, 1.6rem);
  align-items: stretch;
  padding: clamp(0.72rem, 2vw, 1rem);
  margin-bottom: 0.9rem;
  overflow: hidden;
}

.ticket-hero-media {
  position: relative;
  min-height: 280px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(43, 199, 212, 0.16), rgba(247, 177, 93, 0.18));
  border: 1px solid rgba(136, 201, 228, 0.18);
}

.ticket-flyer {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticket-flyer-placeholder {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.58);
  font-size: 3rem;
}

.ticket-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(0.8rem, 2vw, 1.25rem);
}

.ticket-hero-copy h1 {
  margin: 0.34rem 0 0.72rem;
  color: var(--nm-shop-text);
  font-family: var(--nm-shop-font-display);
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.ticket-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-bottom: 0.95rem;
}

.ticket-hero-points {
  display: grid;
  gap: 0.42rem;
  margin-top: 1rem;
  color: var(--nm-shop-text-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.ticket-hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.ticket-hero-points i {
  color: var(--nm-shop-accent);
}

.ticket-card {
  background: linear-gradient(170deg, rgba(15, 27, 39, 0.92), rgba(7, 15, 24, 0.88));
  border: 1px solid rgba(134, 199, 227, 0.22);
  border-radius: 16px;
  padding: 1.05rem 1.05rem;
  margin-bottom: 0.9rem;
  box-shadow: 0 15px 28px rgba(1, 7, 12, 0.38);
}

.ticket-description-card {
  margin-bottom: 1rem;
}

.ticket-description-card .title {
  margin-bottom: 0.55rem !important;
}

.ticket-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
}

.ticket-card-head .title {
  margin: 0 !important;
}

.ticket-step-label {
  display: inline-flex;
  margin-bottom: 0.22rem;
  color: var(--nm-shop-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ticket-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1rem;
  align-items: start;
}

.ticket-checkout-summary {
  position: sticky;
  top: 0.85rem;
}

.ticket-cost-card {
  border-color: rgba(86, 212, 199, 0.28);
}

.embed-mode .ticket-card {
  margin-bottom: 0.72rem;
}

.ticket-card.no-presale-card {
  padding: 0.9rem 1rem;
}

.ticket-card.no-presale-card .title {
  margin-bottom: 0.35rem !important;
  font-size: 1.05rem;
}

.ticket-card.no-presale-card .ticket-meta {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.ticket-card.orderer-card {
  padding: 0.95rem 1rem;
}

.ticket-card.orderer-card .field-row {
  gap: 0.55rem;
}

.ticket-card.orderer-card .label {
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
}

.ticket-card.orderer-card .input {
  min-height: 2.3rem;
  height: 2.3rem;
  padding: 0.35rem 0.65rem;
}

.ticket-card.orderer-card .field.mt-2 {
  margin-top: 0.5rem !important;
}

.ticket-card.orderer-card .has-text-help {
  margin-top: 0.25rem;
  font-size: 0.82rem;
}

.ticket-card h2,
.ticket-card h3,
.ticket-card .title,
.ticket-card .subtitle,
.ticket-card strong,
.ticket-card label,
.ticket-card .label {
  color: #f4f8fc !important;
}

.ticket-card .label {
  font-weight: 600;
}

.ticket-card p,
.ticket-card li {
  color: #d6e2ea;
}

.ticket-meta {
  color: #a8bcc8 !important;
  font-size: 0.95rem;
}

.ticket-location {
  display: flex;
  align-items: flex-start;
  gap: 0.74rem;
  margin-top: 0.34rem;
}

.ticket-location-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  padding: 4px;
  flex-shrink: 0;
  border: 1px solid rgba(15, 33, 46, 0.26);
}

.ticket-location-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(86, 212, 199, 0.12);
  border: 1px solid rgba(86, 212, 199, 0.24);
  color: var(--nm-shop-accent);
}

.ticket-location-copy {
  color: #a9b0bd;
  display: grid;
  gap: 0.08rem;
}

.ticket-description {
  color: #cdd8df;
}

.ticket-divider {
  border: 0;
  height: 1px;
  margin: 0.85rem 0;
  background: linear-gradient(90deg, rgba(154, 210, 232, 0.12), rgba(154, 210, 232, 0.36), rgba(154, 210, 232, 0.12));
}

.field-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.field-row > .control {
  flex: 1 1 200px;
}

.ticket-summary {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.26rem 0;
  color: #ebf2f8;
}

.ticket-summary.total {
  font-weight: 800;
  font-size: 1.08rem;
  border-top: 1px solid rgba(153, 214, 237, 0.25);
  margin-top: 0.5rem;
  padding-top: 0.52rem;
}

.ticket-summary.ticket-summary-subtle {
  font-size: 0.85rem;
  color: #9db2c0;
}

.nm-ticket-page input,
.nm-ticket-page select,
.nm-ticket-page textarea {
  background: #182531 !important;
  color: #f5fbff !important;
  border-color: rgba(165, 215, 236, 0.22) !important;
}

.nm-ticket-page input::placeholder {
  color: #88a2b3 !important;
}

.nm-ticket-page .button.is-primary {
  background: linear-gradient(135deg, var(--nm-shop-accent), var(--nm-shop-accent-strong));
  color: #07242a;
  border-color: transparent;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.nm-ticket-page .button.is-primary:hover,
.nm-ticket-page .button.is-primary:focus-visible {
  background: linear-gradient(135deg, #67e4d6, #35d3df);
}

.nm-ticket-page .has-text-help {
  color: #95aab8 !important;
}

.ticket-type-box {
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(168, 219, 238, 0.18) !important;
  border-radius: 14px;
  box-shadow: none;
}

.attendee-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.75rem;
  margin-top: 0.5rem;
}

.notification {
  color: #fff;
}

.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(163, 217, 238, 0.25);
  border-radius: 9px;
  overflow: hidden;
  background: #14202b;
}

.qty-stepper button {
  background: transparent;
  color: #ecf8ff;
  border: 0;
  width: 2.4rem;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.4rem 0;
  transition: background 0.15s;
}

.qty-stepper button:hover:not(:disabled) {
  background: rgba(58, 134, 255, 0.25);
}

.qty-stepper button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty-stepper .qty-value {
  min-width: 2.6rem;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #eff9ff;
  border-left: 1px solid rgba(163, 217, 238, 0.18);
  border-right: 1px solid rgba(163, 217, 238, 0.18);
  background: #0d1821;
}

.ticket-qty-help {
  font-size: 0.78rem;
}

.native-tickets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.native-ticket-box {
  background: rgba(15, 17, 22, 0.85);
  color: #f5f7fb;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.native-ticket-box .native-ticket-name {
  font-weight: 700;
  color: #f5f7fb;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.native-ticket-phase {
  display: inline-block;
  background: rgba(58, 134, 255, 0.18);
  color: #a8c3ff;
  border: 1px solid rgba(58, 134, 255, 0.35);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 0.55rem;
}

.native-ticket-price {
  color: #cdd2dc;
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
}

.native-ticket-qr {
  background: #fff;
  padding: 0.45rem;
  border-radius: 10px;
  display: inline-block;
  margin: 0.15rem 0 0.65rem;
}

.native-ticket-qr img {
  display: block;
  max-width: 100%;
  height: auto;
}

.native-ticket-code {
  margin: 0.25rem 0 0.35rem;
}

.native-ticket-code code {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f7fb;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.native-ticket-hint {
  color: #9aa3b2;
  font-size: 0.8rem;
  margin: 0;
}

.native-ticket-actions {
  margin-top: 0.65rem;
}

.native-ticket-print-btn {
  min-height: 3.05rem;
  border-radius: 12px;
  border: 1px solid rgba(98, 130, 255, 0.45) !important;
  background: linear-gradient(135deg, rgba(235, 240, 255, 0.96), rgba(214, 225, 255, 0.96)) !important;
  color: #2746b7 !important;
  font-weight: 700;
  letter-spacing: 0.15px;
  box-shadow: 0 8px 22px rgba(8, 14, 36, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.native-ticket-print-btn .icon {
  color: #1e3ea9;
  background: rgba(255, 255, 255, 0.55);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  margin-right: 0.4rem;
}

.native-ticket-print-btn:hover,
.native-ticket-print-btn:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.06);
  box-shadow: 0 12px 26px rgba(8, 14, 36, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.ticket-cost-note {
  font-size: 0.85rem;
}

.ticket-pay-button {
  min-height: 3.2rem;
  border-radius: 14px !important;
}

.ticket-footnote {
  font-size: 0.85rem;
}

.ticket-powered {
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .ticket-shell {
    padding-top: 0.86rem;
  }

  .ticket-topbar {
    align-items: flex-start;
  }

  .ticket-brand span {
    display: none;
  }

  .ticket-hero,
  .ticket-checkout-layout {
    grid-template-columns: 1fr;
  }

  .ticket-hero-media {
    min-height: 220px;
  }

  .ticket-checkout-summary {
    position: static;
  }

  .ticket-location {
    gap: 0.58rem;
  }

  .ticket-location-logo {
    width: 42px;
    height: 42px;
  }

  .native-ticket-print-btn {
    min-height: 2.8rem;
    font-size: 0.97rem;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .ticket-shell {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .no-print,
  header,
  .ticket-card form,
  .ticket-card .button,
  .ticket-back-link-wrap {
    display: none !important;
  }

  .ticket-flyer {
    display: none !important;
  }

  .ticket-card {
    background: #fff !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    color: #000 !important;
    page-break-inside: avoid;
    margin-bottom: 4.5mm !important;
    padding: 4mm !important;
  }

  .ticket-card *,
  .ticket-card p,
  .ticket-card li,
  .ticket-card .ticket-meta,
  .ticket-card .has-text-help {
    color: #000 !important;
  }

  .ticket-card strong {
    color: #000 !important;
  }

  .ticket-card .content {
    display: none !important;
  }

  .native-tickets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 3.5mm !important;
    margin-bottom: 0 !important;
  }

  .native-ticket-box {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    border: 1px solid #ccc;
    page-break-inside: avoid;
    padding: 3mm !important;
    border-radius: 8px !important;
  }

  .native-ticket-box .native-ticket-name {
    margin-bottom: 1.2mm !important;
    font-size: 10.5pt !important;
  }

  .native-ticket-qr {
    margin: 0.5mm 0 1.6mm !important;
    padding: 2mm !important;
  }

  .native-ticket-qr img {
    width: 34mm !important;
    height: 34mm !important;
  }

  .native-ticket-code {
    margin: 0.8mm 0 1.2mm !important;
  }

  .native-ticket-code code {
    font-size: 9pt !important;
    padding: 1.2mm 1.8mm !important;
  }

  .native-ticket-hint {
    font-size: 8pt !important;
    line-height: 1.25 !important;
  }

  .native-ticket-box .native-ticket-name,
  .native-ticket-code code,
  .native-ticket-hint,
  .native-ticket-price {
    color: #000 !important;
    background: #fff !important;
    border-color: #ccc !important;
  }

  .native-ticket-phase {
    background: #eef2ff !important;
    color: #1e3a8a !important;
    border-color: #c7d2fe !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .native-ticket-print-btn,
  .ticket-back-link,
  .qty-stepper button {
    transition: none;
  }
}
