/* ═══════════════════════════════════════════════════════════════════════
   pretix-modern-theme — Design System
   Applied AFTER pretix's own CSS to cleanly override Bootstrap 3 visuals.
   All event colours come from --pretix-brand-* (set by Pretix theme engine).
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. TOKENS ────────────────────────────────────────────────────────── */
:root {
  --bg:         #f8fafc;
  --surface:    #ffffff;
  --surface-2:  #f1f5f9;
  --border:     #e2e8f0;
  --text:       #0f172a;
  --text-2:     #475569;
  --text-3:     #94a3b8;
  --primary:    var(--pretix-brand-primary, #6366f1);
  --primary-dk: var(--pretix-brand-primary-darken-10, #4f46e5);
  --success:    #16a34a;
  --danger:     #dc2626;
  --warning:    #d97706;
  --info:       #2563eb;
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  20px;
  --sh-sm: 0 1px 2px rgba(0,0,0,.05);
  --sh:    0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --sh-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --sh-lg: 0 10px 15px rgba(0,0,0,.10), 0 4px 6px rgba(0,0,0,.05);
  --nav-h: 64px;
  --ease:  cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
  --bg:        #0f172a;
  --surface:   #1e293b;
  --surface-2: #334155;
  --border:    #334155;
  --text:      #f1f5f9;
  --text-2:    #cbd5e1;
  --text-3:    #94a3b8;
  --sh-sm: 0 1px 2px rgba(0,0,0,.4);
  --sh:    0 1px 3px rgba(0,0,0,.5);
  --sh-md: 0 4px 6px rgba(0,0,0,.5);
  --sh-lg: 0 10px 15px rgba(0,0,0,.5);
}

/* ── 2. GLOBAL RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}

h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--text); margin-top: 0; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3,.h3 { font-size: 1.2rem; }
h4,.h4 { font-size: 1rem; }

p { margin-bottom: 1rem; }
small,.small { font-size: .85em; }

a { color: var(--primary); text-decoration: none; transition: opacity 150ms var(--ease); }
a:hover { opacity: .82; text-decoration: underline; }

code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: .88em;
  color: var(--text);
}

/* ── 3. NAVBAR ────────────────────────────────────────────────────────── */
.mt-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  transition: background 200ms var(--ease);
}

[data-theme="dark"] .mt-header {
  background: rgba(15,23,42,.92);
}

.mt-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mt-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text) !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.mt-brand img { height: 36px; width: auto; }

.mt-nav-spacer { flex: 1; }

.mt-nav-locales { display: flex; gap: 6px; align-items: center; }
.mt-nav-locales a {
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-2) !important;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 150ms var(--ease);
}
.mt-nav-locales a.active,
.mt-nav-locales a:hover {
  background: var(--primary);
  color: #fff !important;
  text-decoration: none !important;
}

/* Desktop: nav actions as inline flex row in the header */
.mt-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.mt-burger { display: none; }

.mt-nav-account { display: flex; align-items: center; }
.mt-nav-account a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-2) !important;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  transition: all 150ms var(--ease);
}
.mt-nav-account a:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  text-decoration: none !important;
}

.mt-theme-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms var(--ease);
  flex-shrink: 0;
}
.mt-theme-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.mt-theme-btn svg { width: 18px; height: 18px; pointer-events: none; }

/* ── 4. ABOVE BLOCK ───────────────────────────────────────────────────── */
.mt-above {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.offline-banner {
  background: var(--warning);
  color: #fff;
  text-align: center;
  padding: 8px 20px;
  font-size: .9rem;
  font-weight: 600;
}
.offline-banner a { color: #fff; text-decoration: underline; }

.page-header-links {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--text-2);
}

/* ── 5. HERO ──────────────────────────────────────────────────────────── */
.mt-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  color: #fff;
  padding: 56px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mt-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  top: -180px; right: -120px;
  pointer-events: none;
}

.mt-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

/* Logo link wrapper */
.mt-hero-logo-link {
  display: block;
  text-align: center;
}

/* Logo: fills available width, maintains ratio, centers if narrower */
.mt-hero-logo {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 960px;
  height: auto;
  max-height: 280px;
  object-fit: contain;
}

/* Hero image mode — white background, just the image */
.mt-hero-image {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 28px 24px 20px;
}
.mt-hero-image .mt-hero-logo-link { padding: 0; }
.mt-organizer-logo-bar {
  text-align: center;
  padding: 24px 24px 8px;
}
.mt-hero-image-date {
  margin: 14px 0 0;
  color: var(--text-2);
  font-size: 1rem;
  font-weight: 500;
}

.mt-hero-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.15;
}

.mt-hero-subtitle { font-size: 1.05rem; color: rgba(255,255,255,.82); margin: 0; }

.mt-hero.mt-hero-logo-large { padding: 0; background: var(--surface); }
.mt-hero.mt-hero-logo-large img.mt-hero-logo-full {
  width: 100%; max-height: 400px; object-fit: cover; display: block;
}

/* ── 6. LAYOUT ────────────────────────────────────────────────────────── */
.mt-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Content area inside .mt-wrapper pages — no extra bottom padding */
.mt-page-body {
  padding-top: 24px;
}

@keyframes mt-fadein {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mt-fadein { opacity: 0; transform: translateY(16px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.mt-fadein.mt-visible { opacity: 1; transform: none; }

/* ── 7. CARDS (Bootstrap panel override) ─────────────────────────────── */
.panel {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-md) !important;
  box-shadow: var(--sh) !important;
  margin-bottom: 24px;
  overflow: hidden;
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
}

.panel-heading {
  background: var(--surface-2) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 16px 24px 14px !important;
}

.panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.panel-body { padding: 22px 24px !important; }

.panel-primary > .panel-heading { background: var(--primary) !important; border-color: transparent !important; }
.panel-primary > .panel-heading .panel-title,
.panel-primary > .panel-heading h3,
.panel-primary > .panel-heading * { color: #fff !important; }

.panel-heading-flex {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap;
}
.panel-heading-flex-gap { flex: 1; }

details.panel > summary.panel-heading {
  cursor: pointer;
  list-style: none;
  user-select: none;
}
details.panel > summary.panel-heading::-webkit-details-marker { display: none; }
details.panel > summary.panel-heading::marker { display: none; }

/* ── 8. PRODUCT GRID ──────────────────────────────────────────────────── */
.item-category { margin-bottom: 36px; }

.item-category > h3, .item-category > .h3 {
  font-size: 1.15rem;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
  color: var(--text);
}

/* Addon category legend (fieldset > legend) — Bootstrap forces #333 color */
fieldset[data-addon-max-count] > legend {
  display: block;
  width: 100%;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text) !important;
  border: none;
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

/* Product card base */
article.product-row.simple,
article.item-with-variations {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  margin-bottom: 16px;
  padding: 24px;
  overflow: visible;
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease), border-color 200ms var(--ease);
}
/* Clearfix for Bootstrap floats inside cards (replaces overflow:hidden) */
article.product-row.simple::after,
article.item-with-variations::after {
  content: ''; display: table; clear: both;
}
article.product-row.simple:hover,
article.item-with-variations:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
  border-color: var(--primary);
}

/* Product card columns — apply to BOTH .row and .row-fluid articles */
article.product-row [class*="col-"] {
  padding-left: 8px !important;
  padding-right: 8px !important;
}
article.product-row [class*="col-"]:first-child { padding-left: 0 !important; }
article.product-row [class*="col-"]:last-child  { padding-right: 0 !important; }

/* Float containment for .row articles (row-fluid contains itself) */
article.product-row.simple.row,
article.item-with-variations .product-row.headline.row,
article.product-row.variation.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow: hidden;
}

/* Price and availability alignment */
article.product-row .price        { text-align: right; padding-right: 40px !important; }
article.product-row .availability-box { text-align: right; padding-left: 40px !important; }
article.product-row.variation.row > .price        { text-align: right; }
article.product-row.variation.row > .availability-box { text-align: right; }

/* Description / secondary text inside product name col */
article.product-row .product-description,
article.product-row p.description,
article.item-with-variations .product-description {
  margin-top: 6px;
  margin-bottom: 0;
  color: var(--text-2);
  font-size: .9rem;
  line-height: 1.5;
}

/* Product image */
.productpicture { float: left; margin-right: 14px; margin-bottom: 6px; }
.productpicture img {
  width: 60px; height: 60px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}

/* Price */
.product-row .price,
.col-md-2.price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}
del { color: var(--text-3); font-weight: 400; }
ins { text-decoration: none; color: var(--danger); font-weight: 700; }

.variations { border-top: 1px solid var(--border); margin-top: 16px; }
article.product-row.variation {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
article.product-row.variation:last-child { border-bottom: none; }

.availability-box.available {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  overflow: visible;
}
.gone    { color: var(--danger); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.unavailable { color: var(--warning); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

.textbubble-success {
  display: inline-flex; align-items: center; gap: 5px;
  background: #dcfce7; color: #166534;
  font-size: .75rem; font-weight: 700; border-radius: 20px;
  padding: 2px 10px; margin-left: 8px; vertical-align: middle;
}
[data-theme="dark"] .textbubble-success { background: #14532d; color: #86efac; }

#btn-add-to-cart { font-size: 1.05rem !important; padding: 14px 36px !important; }

/* ── 9. QUANTITY STEPPER ──────────────────────────────────────────────── */
.input-item-count-group {
  display: inline-flex !important;
  align-items: stretch;
  width: max-content !important;
  min-width: max-content !important;
  background: var(--surface);
  border: 2px solid var(--border) !important;
  border-radius: var(--r-sm) !important;
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
  padding: 0 !important;
  margin: 0 !important;
  /* reset fieldset browser defaults */
  appearance: none;
  -webkit-appearance: none;
  letter-spacing: 0;
  word-spacing: 0;
}
.input-item-count-group.mt-has-value {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

.input-item-count-dec,
.input-item-count-inc {
  flex: 0 0 28px;
  width: 28px !important;
  height: 36px !important;
  padding: 0 !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  background: var(--surface-2) !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--text-2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  line-height: 1 !important;
  transition: background 150ms var(--ease), color 150ms var(--ease) !important;
}
.input-item-count-dec { border-right: 2px solid var(--border) !important; }
.input-item-count-inc { border-left: 2px solid var(--border) !important; }
.input-item-count-dec:hover,
.input-item-count-inc:hover {
  background: var(--primary) !important;
  color: #fff !important;
  transform: none !important;
}

/* The number input itself */
.input-item-count,
.input-item-count-group input[type="number"],
.input-item-count-group input {
  flex: 0 1 auto;
  field-sizing: content;   /* Chrome 123+: auto-resize to value width */
  min-width: 2.6rem !important;
  /* width intentionally omitted — let field-sizing or JS control it */
  height: 36px !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: center !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  background: #ffffff !important;
  padding: 0 4px !important;
  -moz-appearance: textfield !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
[data-theme="dark"] .input-item-count,
[data-theme="dark"] .input-item-count-group input[type="number"],
[data-theme="dark"] .input-item-count-group input {
  color: #f1f5f9 !important;
  background: #1e293b !important;
}
.input-item-count::-webkit-inner-spin-button,
.input-item-count::-webkit-outer-spin-button,
.input-item-count-group input::-webkit-inner-spin-button,
.input-item-count-group input::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0;
}
.input-item-count:focus,
.input-item-count-group input:focus { outline: none; }

.btn-checkbox {
  border: 2px solid var(--border) !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  padding: 10px 18px !important;
  position: relative;
}
.btn-checkbox:has(input:checked) {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  color: #fff !important;
}
.btn-checkbox input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }

/* ── 10. BUTTONS ──────────────────────────────────────────────────────── */
.btn {
  border-radius: var(--r-sm) !important;
  font-weight: 600 !important;
  padding: 10px 22px !important;
  font-size: .95rem !important;
  border: none !important;
  transition: all 150ms var(--ease) !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px;
  text-decoration: none !important;
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.15) !important;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dk) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.22) !important;
  transform: translateY(-2px);
  color: #fff !important;
}
.btn-primary:active { transform: translateY(0); }

.btn-default {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1.5px solid var(--border) !important;
  box-shadow: var(--sh-sm) !important;
}
.btn-default:hover, .btn-default:focus {
  background: var(--surface-2) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}
.btn-default:active { transform: translateY(0); }

.btn-danger {
  background: var(--danger) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(220,38,38,.2) !important;
}
.btn-danger:hover { background: #b91c1c !important; transform: translateY(-1px); }

.btn-success { background: var(--success) !important; color: #fff !important; }
.btn-success:hover { filter: brightness(.9); transform: translateY(-1px); }

.btn-link {
  background: transparent !important;
  color: var(--primary) !important;
  box-shadow: none !important;
  border: none !important;
  padding: 4px 0 !important;
}
.btn-link:hover { text-decoration: underline !important; transform: none !important; }

.btn-lg { padding: 13px 32px !important; font-size: 1.02rem !important; border-radius: 10px !important; }
.btn-sm { padding: 6px 14px !important; font-size: .84rem !important; }
.btn-xs { padding: 3px 10px !important; font-size: .78rem !important; }
.btn-block { width: 100% !important; }

.btn[disabled], .btn.disabled { opacity: .48 !important; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.checkout-button-row { margin-top: 28px; }

/* ── 11. FORMS ────────────────────────────────────────────────────────── */
.form-control {
  background: var(--surface) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--r-sm) !important;
  color: var(--text) !important;
  font-size: .95rem !important;
  padding: 10px 14px !important;
  height: auto !important;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease) !important;
  width: 100%;
}
.form-control:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(99,102,241,.14) !important;
  outline: none !important;
}
.form-control::placeholder { color: var(--text-3); }

select.form-control {
  appearance: none !important; -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2394a3b8' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 38px !important;
}

/* Labels above inputs — scoped to form-group only */
.form-group > label,
.form-group > .control-label,
.control-label {
  font-weight: 600;
  font-size: .85rem;
  color: var(--text-2);
  margin-bottom: 6px;
  display: block;
}

.form-group { margin-bottom: 1rem; }

/* Checkout form: full-width labels above inputs (not horizontal) */
.form-horizontal .form-group {
  margin-bottom: 1rem;
}
.form-horizontal .control-label {
  text-align: left !important;
  padding-top: 0 !important;
  font-weight: 600;
  font-size: .85rem;
  color: var(--text-2);
  margin-bottom: 6px;
}

input[type="checkbox"], input[type="radio"] {
  width: 17px; height: 17px;
  accent-color: var(--primary); cursor: pointer;
}

.has-error .form-control { border-color: var(--danger) !important; }
.has-error .help-block, .has-error .control-label { color: var(--danger) !important; }
.help-block { font-size: .82rem; color: var(--text-2); margin-top: 4px; }

.input-group .form-control:not(:last-child) { border-radius: var(--r-sm) 0 0 var(--r-sm) !important; }
.input-group .form-control:not(:first-child) { border-radius: 0 var(--r-sm) var(--r-sm) 0 !important; }
.input-group-btn:last-child > .btn { border-radius: 0 var(--r-sm) var(--r-sm) 0 !important; }
.input-group-btn:first-child > .btn { border-radius: var(--r-sm) 0 0 var(--r-sm) !important; }
.input-group-addon {
  background: var(--surface-2) !important;
  border: 1.5px solid var(--border) !important;
  color: var(--text-2); font-size: .92rem; padding: 0 14px;
}
.input-group-price .input-group-addon { border-right: none !important; }
.input-item-price.form-control { height: 44px !important; }

.accordion-panel .panel-heading { cursor: pointer; }
.accordion-panel input[type="radio"] { margin-right: 10px; }
.accordion-label-text { font-weight: 600; font-size: .95rem; }

/* ── 12. ALERTS ───────────────────────────────────────────────────────── */
.alert {
  border: none !important;
  border-radius: var(--r-sm) !important;
  padding: 14px 18px !important;
  font-size: .93rem;
  margin-bottom: 18px;
  display: block;
}
/* Pretix places a 51px icon via ::before — restore the 65px left padding */
.alert-success,
.alert-danger,
.alert-info,
.alert-warning,
.alert-legal {
  padding-left: 68px !important;
}
.alert p,
.alert > p { margin: 0; }
.alert p + p,
.alert > p + p { margin-top: 6px; }
.alert strong { display: block; margin-bottom: 2px; }
.alert .sr-only { position: absolute; }

.alert-info    { background: #dbeafe !important; color: #1e40af !important; }
.alert-success { background: #dcfce7 !important; color: #166534 !important; }
.alert-warning { background: #fef3c7 !important; color: #92400e !important; }
.alert-danger  { background: #fee2e2 !important; color: #991b1b !important; }

[data-theme="dark"] .alert-info    { background: #1e3a5f !important; color: #93c5fd !important; }
[data-theme="dark"] .alert-success { background: #14532d !important; color: #86efac !important; }
[data-theme="dark"] .alert-warning { background: #78350f !important; color: #fcd34d !important; }
[data-theme="dark"] .alert-danger  { background: #7f1d1d !important; color: #fca5a5 !important; }

/* Test mode and preorder warnings — solid amber, no zebra stripe */
.alert-testmode,
.preorder-warning {
  background: #fef3c7 !important;
  border-left: 4px solid #f59e0b !important;
  border-radius: 0 var(--r-sm) var(--r-sm) 0 !important;
  color: #78350f !important;
  font-weight: 600;
}
[data-theme="dark"] .alert-testmode,
[data-theme="dark"] .preorder-warning {
  background: #451a03 !important;
  border-left-color: #f59e0b !important;
  color: #fcd34d !important;
}

/* ── 13. CART ─────────────────────────────────────────────────────────── */
.cart.panel > .panel-heading { background: var(--primary) !important; }
.cart.panel > .panel-heading * { color: #fff !important; }

.cart-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.cart-row:last-child { border-bottom: none; }
/* Product name: full-width own line */
.cart-row .product {
  width: 100%;
  flex: none;
  min-width: 0;
  margin-bottom: 2px;
}
/* Quantity: "4 ×" — skip empty total-row divs */
.cart-row .count {
  color: var(--text-3);
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
}
.cart-row .count:not(:empty)::after { content: '\00a0\00d7'; }
/* Unit price: small/muted */
.cart-row .singleprice.price {
  font-weight: 400 !important;
  color: var(--text-2) !important;
  font-size: .82rem !important;
  white-space: nowrap;
}
/* Total price: right-aligned, bold, primary */
.cart-row .totalprice.price {
  margin-left: auto;
  font-weight: 700 !important;
  color: var(--primary) !important;
  font-size: .95rem !important;
  white-space: nowrap;
}
.cart-row .price small,
.cart-row small.price {
  display: block;
  font-size: .72rem !important;
  color: var(--text-3) !important;
  font-weight: 400 !important;
  line-height: 1.3;
  margin-top: 2px;
  white-space: normal;
}
.cart-row.total { border-top: 2px solid var(--border) !important; border-bottom: none; padding-top: 14px; font-size: 1.05rem; }

/* Total / subtotal rows: label + price on the same line */
.cart-row.total .product,
.cart-row.subtotal .product {
  flex: 1 1 auto;
  width: auto;
  margin-bottom: 0;
}
/* Hide the empty count/singleprice spacers in total rows so totalprice stays on same line */
.cart-row.total .count,
.cart-row.total .singleprice,
.cart-row.subtotal .count,
.cart-row.subtotal .singleprice { display: none !important; }

/* Fee rows use Bootstrap cols — reset them for flex layout */
.cart-row [class*="col-md-"] {
  float: none !important;
  width: auto !important;
}
.cart-row .col-md-4:first-child { flex: 1 1 auto; }
.cart-row [class*="col-md-offset"] { margin-left: auto !important; }
.cart-row [class*="col-md-"].price { flex: none; text-align: right; }

/* Hide empty spacer cells and clearfix inside cart rows */
.cart-row > [role="cell"]:not([class]):empty,
.cart-row > .clearfix { display: none !important; }

#cart-deadline-short {
  font-size: .88rem;
  background: rgba(255,255,255,.18);
  padding: 2px 10px; border-radius: 20px;
}

/* Checkout two-column layout: main content left, sticky cart right */
.mt-checkout-layout {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 360px);
  gap: 32px;
  align-items: start;
}
.mt-checkout-main { min-width: 0; }
.mt-checkout-aside {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  min-width: 300px;
}

/* ── 14. CHECKOUT STEPS ───────────────────────────────────────────────── */
.checkout-flow {
  list-style: none;
  margin: 0 0 32px; padding: 14px 8px 14px;
  display: flex;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  position: relative;
}

.checkout-flow .checkout-step {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 4px;
  font-size: .72rem; font-weight: 600;
  color: var(--text-3);
  background: transparent !important;
}

/* Connector line drawn on the CURRENT step, looking LEFT toward the previous step.
   Stays entirely within the step's own bounds — no bleed into neighbours. */
.checkout-flow .checkout-step:not(:first-child)::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 0;
  right: calc(50% + 13px); /* ends at icon left edge */
  height: 5px;
  background: var(--border);
  z-index: 0;
}
/* When THIS step is done, the left connector is also done (green) */
.checkout-flow .checkout-step.step-done:not(:first-child)::before {
  background: #16a34a;
}
/* When THIS step is current, left connector = previous was done = green */
.checkout-flow .checkout-step.step-current:not(:first-child)::before {
  background: #16a34a;
}

/* Right half of connector — from icon right edge to step's right boundary */
.checkout-flow .checkout-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 12px;
  left: calc(50% + 13px); /* starts at icon right edge */
  right: 0;
  height: 5px;
  background: var(--border);
  z-index: 0;
}
.checkout-flow .checkout-step.step-done:not(:last-child)::after {
  background: #16a34a;
}

.checkout-flow .checkout-step a {
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; color: inherit; width: 100%;
}

.checkout-step-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; flex-shrink: 0;
  position: relative; z-index: 1;
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}

.checkout-step-label {
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  padding: 0 2px;
  line-height: 1.2;
}

.checkout-step.step-done { color: #16a34a !important; }
.checkout-step.step-done .checkout-step-icon {
  background: #16a34a !important;
  color: #fff !important;
  border-color: #16a34a !important;
}
.checkout-step.step-current { color: var(--primary) !important; }
.checkout-step.step-current .checkout-step-icon {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

/* ── 15. ORDER / THANK YOU ────────────────────────────────────────────── */
.mt-thank-you {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: 56px 32px 48px;
  text-align: center;
  margin-bottom: 36px;
}

.mt-thank-you .mt-success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #dcfce7;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.mt-thank-you .mt-success-icon .fa { font-size: 2rem; color: var(--success); }
.mt-thank-you h2 { font-size: 2.2rem; margin-bottom: 12px; }
.mt-thank-you .lead { color: var(--text-2); font-size: 1.05rem; max-width: 560px; margin: 0 auto 20px; }
[data-theme="dark"] .mt-thank-you .mt-success-icon { background: #14532d; }

/* ── 16. LABELS / BADGES ──────────────────────────────────────────────── */
.label {
  border-radius: 6px !important;
  padding: 3px 10px !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase; letter-spacing: .06em;
  display: inline-flex; align-items: center; gap: 4px;
}
.label-success { background: var(--success) !important; color: #fff !important; }
.label-warning { background: var(--warning) !important; color: #fff !important; }
.label-danger  { background: var(--danger) !important;  color: #fff !important; }
.label-info    { background: var(--info) !important;    color: #fff !important; }
.label-default { background: var(--text-2) !important;  color: #fff !important; }

/* ── 17. LIST GROUPS ──────────────────────────────────────────────────── */
.list-group { border-radius: 0 !important; overflow: hidden; }
.list-group-item {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text);
  padding: 16px 22px !important;
  transition: background 150ms var(--ease);
}
.list-group-item:first-child { border-top: none !important; }
.list-group-item:last-child  { border-bottom: none !important; }

/* ── 18. DL HORIZONTAL ────────────────────────────────────────────────── */
.dl-horizontal dt {
  font-weight: 700; font-size: .82rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-2);
  float: left; clear: left; width: 160px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dl-horizontal dd { margin-left: 180px; margin-bottom: 10px; color: var(--text); }

/* ── 19. TABLES ───────────────────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; background: var(--surface); }
.table th {
  font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-2); background: var(--surface-2);
  border-bottom: 2px solid var(--border) !important; padding: 12px 14px;
}
.table td { padding: 13px 14px; border-bottom: 1px solid var(--border) !important; color: var(--text); vertical-align: middle; }
.table tr:last-child td { border-bottom: none !important; }

/* ── 20. FOOTER ───────────────────────────────────────────────────────── */
.mt-footer {
  margin-top: 48px;
  padding: 28px 24px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.mt-footer-links {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 0;
}

.mt-footer-links li {
  display: inline-flex;
  align-items: center;
}

/* Dot separator between items */
.mt-footer-links li + li::before {
  content: '·';
  color: var(--text-3);
  margin: 0 10px;
  font-size: .8rem;
}

/* Remove last-child push-right — we center everything */
.mt-footer-links li:last-child { margin-left: 0; }

/* "Powered by" last item on its own line, slightly dimmer */
.mt-footer-links li:last-child {
  flex-basis: 100%;
  justify-content: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.mt-footer-links li:last-child::before { display: none; }

.mt-footer-links a,
.mt-footer-links button.btn-link {
  color: var(--text-2) !important;
  font-size: .84rem;
  font-weight: 500;
  padding: 4px 0 !important;
  transition: color 150ms var(--ease);
}
.mt-footer-links a:hover,
.mt-footer-links button.btn-link:hover {
  color: var(--primary) !important;
  text-decoration: underline !important;
}

/* Powered-by text slightly more muted */
.mt-footer-links li:last-child a,
.mt-footer-links li:last-child span {
  font-size: .78rem !important;
  color: var(--text-3) !important;
}
.mt-footer-links li:last-child a:hover { color: var(--text-2) !important; }
/* Fix missing space between anchor and following text in poweredby string */
.mt-footer-links li:last-child a::after { content: ' '; }

.site-notice-top, .site-notice-bottom {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 18px; margin-bottom: 18px;
  font-size: .93rem;
}

/* ── 21. FILE UPLOAD ──────────────────────────────────────────────────── */
input[type="file"],
input[type="file"].form-control {
  width: 100%;
  padding: 0 !important;
  height: auto !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--r-sm) !important;
  background: var(--surface) !important;
  box-shadow: none !important;
  cursor: pointer;
  font-size: .88rem;
  color: var(--text-2);
  transition: border-color 200ms var(--ease);
  overflow: hidden;
}

input[type="file"]:hover,
input[type="file"]:focus {
  border-color: var(--primary) !important;
  outline: none !important;
  box-shadow: none !important;
}

input[type="file"]::file-selector-button {
  padding: 7px 14px;
  margin-right: 12px;
  border: none;
  border-right: 1.5px solid var(--border);
  border-radius: 0;
  background: var(--surface-2);
  color: var(--text);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms var(--ease), color 150ms var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

input[type="file"]:hover::file-selector-button {
  background: var(--primary);
  color: #fff;
  border-right-color: var(--primary);
}

/* ── 23. MISC ─────────────────────────────────────────────────────────── */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.text-muted { color: var(--text-2) !important; }
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger) !important; }

.refund-gift-card-code {
  font-family: 'Courier New', monospace;
  font-size: 1.4rem; font-weight: 700; letter-spacing: .1em;
  color: var(--primary); text-align: center; margin: 14px 0;
}

.print-this-page { float: right; }

.front-page { margin-top: 32px; }
.front-page > h2.h3 {
  font-size: 1.1rem; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--border);
}

/* ── 22. CUSTOMER ACCOUNT PAGES ───────────────────────────────────────── */

/* Account info card */
.mt-account-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  padding: 24px;
  margin-bottom: 24px;
}
.mt-account-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.mt-account-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}
.mt-account-email,
.mt-account-phone {
  font-size: .9rem;
  color: var(--text-2);
  margin: 0 0 4px;
}
.mt-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 12px 0 0;
}
.mt-account-actions a {
  font-size: .84rem;
  font-weight: 600;
  color: var(--primary) !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.mt-account-id {
  text-align: right;
  flex-shrink: 0;
}
.mt-account-id-label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
  font-weight: 700;
  margin-bottom: 4px;
}
.mt-account-id-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Courier New', monospace;
  letter-spacing: .05em;
}

/* Sub-nav tabs */
.mt-subnav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 4px;
}
.mt-subnav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-2) !important;
  border-radius: calc(var(--r-md) - 2px);
  transition: color 150ms var(--ease), background 150ms var(--ease);
  text-decoration: none !important;
  white-space: nowrap;
}
.mt-subnav-tab:hover {
  color: var(--text) !important;
  background: var(--surface-2);
  text-decoration: none !important;
}
.mt-subnav-tab.active {
  color: #fff !important;
  background: var(--primary);
}

/* Orders list (alternating rows) */
.event-list.alternating-rows { margin: 0 !important; }
.event-list.alternating-rows article.row {
  background: transparent !important;
  border-bottom: 1px solid var(--border);
  padding: 16px 8px;
  margin: 0 !important;
  color: var(--text);
  transition: background 150ms var(--ease);
}
.event-list.alternating-rows article.row:last-child { border-bottom: none; }
.event-list.alternating-rows article.row:hover { background: var(--surface-2) !important; }
.event-list.alternating-rows article.row h4 { margin: 0 0 4px; font-size: .95rem; }
.event-list.alternating-rows article.row h4 a { color: var(--primary) !important; font-weight: 700; }
.event-list.alternating-rows article.row p { margin: 0; font-size: .88rem; }

/* ── 23. CALENDAR NAV (Liste / Semaine / Mois / Journée / iCal) ───────── */

.mt-calendar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 0 20px;
}
.mt-calendar-nav-tabs {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 4px;
  gap: 2px;
}
.mt-cal-tab {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-2) !important;
  border-radius: calc(var(--r-md) - 2px);
  text-decoration: none !important;
  transition: background 150ms var(--ease), color 150ms var(--ease);
  white-space: nowrap;
}
.mt-cal-tab:hover {
  background: var(--surface-2);
  color: var(--text) !important;
}
.mt-cal-tab.active {
  background: var(--primary);
  color: #fff !important;
}
.mt-cal-ical {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-2) !important;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  text-decoration: none !important;
  transition: background 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
}
.mt-cal-ical:hover {
  background: var(--surface-2);
  color: var(--text) !important;
  border-color: var(--primary);
}

/* ── 22c. RESPONSIVE ──────────────────────────────────────────────────── */

/* Tablet: stack checkout sidebar below main */
@media (max-width: 991px) {
  /* ── Burger menu ──────────────────────────────────────────────── */
  .mt-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    cursor: pointer;
    padding: 7px;
    color: var(--text);
  }
  .mt-burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 250ms ease, opacity 200ms ease;
    transform-origin: center;
  }
  .mt-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mt-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .mt-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Nav actions: hidden by default, dropdown when .open */
  .mt-nav-actions {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 2px solid var(--border);
    padding: 20px 16px 24px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: var(--sh-md);
    z-index: 998;
  }
  .mt-nav-actions.open { display: flex !important; }

  /* Items centered in dropdown */
  .mt-nav-locales { justify-content: center; flex-wrap: wrap; }
  .mt-nav-account { justify-content: center; }
  .mt-nav-account a { max-width: none; white-space: normal; text-align: center; }

  /* Theme toggle in dropdown: full label style */
  .mt-nav-actions .mt-theme-btn {
    width: auto;
    height: auto;
    padding: 8px 20px;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--text-2);
  }
  .mt-nav-actions .mt-theme-btn::after {
    content: attr(data-label);
  }

  .mt-nav-spacer { display: none; }

  /* Center brand between left edge and burger */
  .mt-header-inner { position: relative; }
  .mt-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 100px);
    text-align: center;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ── Cart rows: 2-column grid on tablet too ────────────────────── */
  .cart-row {
    display: grid !important;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 8px;
    row-gap: 4px;
  }
  .cart-row .product { grid-column: 1 / -1; grid-row: 1; width: auto; margin-bottom: 0; }
  .cart-row .count   { grid-column: 1; grid-row: 2; align-self: center; }
  .cart-row .singleprice.price { display: none !important; }
  .cart-row .totalprice.price  { grid-column: 2; grid-row: 2; margin-left: 0; align-self: center; text-align: right; }
  .cart-row .col-md-4          { grid-column: 1; grid-row: 1; }
  .cart-row [class*="col-md-"].price { grid-column: 2; grid-row: 1; text-align: right; }
  .cart-row.total .product,
  .cart-row.subtotal .product  { grid-column: 1; grid-row: 1; }
  .cart-row.total .totalprice.price,
  .cart-row.subtotal .totalprice.price { grid-column: 2; grid-row: 1; }

  .mt-checkout-layout { grid-template-columns: 1fr; }
  .mt-checkout-main { order: 1; }
  .mt-checkout-aside {
    position: static;
    order: 2;
    min-width: auto;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .mt-header-inner { padding: 0 12px; gap: 8px; }
  .mt-brand { font-size: .88rem; }

  /* ── Cart rows: 2-column grid on mobile ────────────────────────── */
  /* Row 1: product name full width
     Row 2: stepper/qty left  |  total price right               */
  .cart-row {
    display: grid !important;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 8px;
    row-gap: 4px;
  }
  .cart-row .product {
    grid-column: 1 / -1;
    grid-row: 1;
    width: auto;
    margin-bottom: 0;
  }
  .cart-row .count {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
  }
  /* Hide unit price on mobile — qty × total is enough */
  .cart-row .singleprice.price { display: none !important; }
  .cart-row .totalprice.price {
    grid-column: 2;
    grid-row: 2;
    margin-left: 0;
    align-self: center;
    text-align: right;
  }
  /* Fee rows (Bootstrap cols) — keep simple flex */
  .cart-row .col-md-4 { grid-column: 1; grid-row: 1; }
  .cart-row [class*="col-md-"].price { grid-column: 2; grid-row: 1; text-align: right; }
  /* Total/subtotal rows */
  .cart-row.total .product,
  .cart-row.subtotal .product {
    grid-column: 1;
    grid-row: 1;
  }
  .cart-row.total .totalprice.price,
  .cart-row.subtotal .totalprice.price {
    grid-column: 2;
    grid-row: 1;
  }

  .mt-wrapper { padding: 24px 16px 60px; }

  .mt-hero { padding: 36px 16px 32px; }
  .mt-hero-title { font-size: 1.6rem; }

  .panel-body { padding: 16px !important; }
  .panel-heading { padding: 14px 16px !important; }

  .btn-lg { padding: 12px 22px !important; }

  .checkout-flow { padding: 6px 0 10px; }
  .checkout-step-label { font-size: .65rem; }
  .checkout-step-icon { width: 24px; height: 24px; font-size: .65rem; }

  .mt-thank-you { padding: 36px 20px 32px; }
  .mt-thank-you h2 { font-size: 1.7rem; }

  .mt-header-inner { padding: 0 14px; gap: 10px; }

  .dl-horizontal dt, .dl-horizontal dd { float: none; width: 100%; margin-left: 0; }
  .dl-horizontal dd { margin-bottom: 6px; }

  .mt-footer-links { gap: 0; }
  .mt-footer-links li:last-child { margin-top: 8px; padding-top: 8px; }

  /* Product cards: Bootstrap cols stack naturally on mobile */
  article.product-row.simple { padding: 16px; }
  article.product-row.simple.row > .price { font-size: 1.05rem; text-align: left; }
  article.product-row.simple.row > .availability-box { text-align: left; }

  /* Checkout button rows: full-width stacked */
  .checkout-button-row .col-md-4 { width: 100%; margin-bottom: 10px; }
  .checkout-button-row .col-md-offset-4 { margin-left: 0 !important; }

  /* Form labels above inputs always on mobile */
  .form-horizontal .col-md-3.control-label,
  .form-horizontal .col-sm-3.control-label {
    width: 100% !important;
    float: none !important;
    padding-top: 0 !important;
    text-align: left !important;
  }
  .form-horizontal .col-md-9,
  .form-horizontal .col-sm-9 {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
  }
}

/* ── 23. DARK MODE — BTN-DEFAULT ─────────────────────────────────────── */
/* btn-default in dark mode: use surface-2 so it's visually distinct from the page bg */
[data-theme="dark"] .btn-default {
  background: var(--surface-2) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
[data-theme="dark"] .btn-default:hover,
[data-theme="dark"] .btn-default:focus {
  background: #475569 !important;
  border-color: var(--primary) !important;
  color: var(--text) !important;
}

/* ── 23b. DARK SCROLLBARS ─────────────────────────────────────────────── */
[data-theme="dark"] ::-webkit-scrollbar { width: 8px; height: 8px; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--bg); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: var(--text-3); }


/* ── 24. STRIPE ELEMENTS ──────────────────────────────────────────────── */

/* Separate card fields layout */
.stripe-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stripe-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stripe-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 4px;
  letter-spacing: .02em;
}
/* Each Stripe iframe wrapper */
.stripe-input {
  height: 42px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.stripe-input.is-focused {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}
.stripe-input.has-error { border-color: #dc2626; }

/* Legacy single-element fallback */
#stripe-card {
  height: 42px !important;
  padding: 10px 12px !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--r-sm) !important;
  background: var(--surface) !important;
  box-shadow: none !important;
  transition: border-color .15s ease;
}
#stripe-card.is-focused { border-color: var(--primary) !important; }
#stripe-card.has-error  { border-color: #dc2626 !important; }

/* Vertical stack: GPay (optional) → OR divider → card fields */
#stripe-card-elements {
  display: flex !important;
  flex-direction: column;
  gap: 14px;
}
/* GPay button: full width */
#stripe-card-elements .stripe-payment-request-button-container {
  width: 100% !important;
  float: none !important;
}
#stripe-payment-request-button { width: 100%; }

/* "OU" horizontal divider — no !important so Bootstrap .hidden {display:none!important} still works */
.stripe-or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-size: .78rem;
  font-weight: 600;
}
.stripe-or::before,
.stripe-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.stripe-or .sep { display: contents; }
.stripe-or .hr  { display: none; }
/* Reset pretix-stripe.css: .sepText was position:absolute top:50% — that makes it escape the container */
.stripe-or .sepText {
  position: static !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  background: transparent !important;
  width: auto !important;
  padding: 0 !important;
  white-space: nowrap;
}

/* ── 25. CART Q&A (dl-indented) ───────────────────────────────────────── */

/* Container: subtle card inside the product cell */
.dl-indented {
  margin: 8px 0 2px !important;
  padding: 0 !important;
  border-left: 3px solid var(--border);
  padding-left: 10px !important;
}

/* Attendee name / email (sr-only dt, dd.toplevel) */
.dl-indented dd.toplevel {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text) !important;
  padding-left: 0 !important;
  margin-bottom: 2px !important;
}

/* Question label (dt) */
.dl-indented dt {
  font-size: .68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3) !important;
  margin-top: 8px !important;
  margin-bottom: 1px;
  line-height: 1.2;
}
.dl-indented dt:first-of-type { margin-top: 4px !important; }

/* Answer value (dd) */
.dl-indented dd:not(.toplevel) {
  font-size: .85rem;
  color: var(--text) !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  margin-bottom: 0;
  line-height: 1.4;
  word-break: break-word;
}

/* File/link answers — simple link */
.dl-indented dd a {
  font-size: .82rem !important;
  color: var(--primary) !important;
  text-decoration: underline !important;
  word-break: break-all;
}
.dl-indented dd a:hover { opacity: .8; }

/* Image thumbnails (signature preview) */
.answer-thumb img {
  display: block;
  max-height: 80px !important;
  max-width: 100%;
  width: auto !important;
  height: auto !important;
  margin-top: 4px !important;
  opacity: .9;
}

/* ── 27. CHECKOUT FORM — DARK MODE OVERRIDES ──────────────────────────── */

/* Profile autofill / save-to-profile banners:
   Bootstrap hard-codes background:#f5f5f5 via $panel-footer-bg */
.profile-select-container,
.profile-save-container {
  background: var(--surface-2) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
.profile-save-container .help-block,
.profile-desc,
.single-profile-desc {
  color: var(--text-2) !important;
}
.profile-add-on {
  border-color: var(--border) !important;
}

/* Bootstrap datetimepicker popup */
.bootstrap-datetimepicker-widget.dropdown-menu {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--sh-md) !important;
  color: var(--text) !important;
  border-radius: var(--r-md) !important;
}
.bootstrap-datetimepicker-widget table th {
  color: var(--text-2) !important;
  background: transparent !important;
  border-color: var(--border) !important;
}
.bootstrap-datetimepicker-widget table td {
  color: var(--text) !important;
  background: transparent !important;
}
.bootstrap-datetimepicker-widget table td:hover,
.bootstrap-datetimepicker-widget table th:hover {
  background: var(--surface-2) !important;
  color: var(--text) !important;
}
.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
  background: var(--primary) !important;
  color: #fff !important;
}
.bootstrap-datetimepicker-widget table td.today:before {
  border-bottom-color: var(--primary) !important;
}
.bootstrap-datetimepicker-widget table td.disabled,
.bootstrap-datetimepicker-widget table td.disabled:hover {
  color: var(--text-3) !important;
  background: transparent !important;
}
.bootstrap-datetimepicker-widget table td span {
  color: var(--text) !important;
  background: transparent !important;
}
.bootstrap-datetimepicker-widget table td span:hover {
  background: var(--surface-2) !important;
}
.bootstrap-datetimepicker-widget table td span.active {
  background: var(--primary) !important;
  color: #fff !important;
}
.bootstrap-datetimepicker-widget .picker-switch,
.bootstrap-datetimepicker-widget .prev,
.bootstrap-datetimepicker-widget .next {
  color: var(--text) !important;
}
.bootstrap-datetimepicker-widget .picker-switch:hover,
.bootstrap-datetimepicker-widget .prev:hover,
.bootstrap-datetimepicker-widget .next:hover {
  background: var(--surface-2) !important;
}
/* Arrow for popup */
[data-theme="dark"] .bootstrap-datetimepicker-widget.dropdown-menu::after {
  border-bottom-color: var(--surface) !important;
  border-top-color: var(--surface) !important;
}
[data-theme="dark"] .bootstrap-datetimepicker-widget.dropdown-menu::before {
  border-bottom-color: var(--border) !important;
  border-top-color: var(--border) !important;
}

/* Signature / drawing canvas widgets — white canvas on dark bg */
[data-theme="dark"] canvas {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}
/* Signature widget wrapper div that plugins render with inline white bg */
[data-theme="dark"] .signature-widget,
[data-theme="dark"] [class*="signature"],
[data-theme="dark"] .draw-signature,
[data-theme="dark"] .canvas-container {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

/* Checkbox + radio: ensure they render against the correct surface in dark mode */
[data-theme="dark"] input[type="checkbox"],
[data-theme="dark"] input[type="radio"] {
  color-scheme: dark;
}

/* Bootstrap .checkbox / .radio wrapper divs can inherit a white bg from a parent */
[data-theme="dark"] .checkbox label,
[data-theme="dark"] .radio label {
  color: var(--text) !important;
}

/* dropdown-menu (Bootstrap popovers / selects used by questions) */
[data-theme="dark"] .dropdown-menu {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  box-shadow: var(--sh-md) !important;
}
[data-theme="dark"] .dropdown-menu > li > a {
  color: var(--text) !important;
}
[data-theme="dark"] .dropdown-menu > li > a:hover,
[data-theme="dark"] .dropdown-menu > .active > a {
  background: var(--primary) !important;
  color: #fff !important;
}
