/* =========================================================
   MATUTUM MARATHON PLUGIN UI (single source of truth)
   Scoped to .mm-wrap to avoid theme/Elementor conflicts
   ========================================================= */

/* Layout wrapper */
.mm-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0px;
}

/* Headings inside plugin only */
.mm-wrap h2, .mm-wrap h3 {
  margin: 0;
  line-height: 2.25;
  letter-spacing: normal;
  text-transform: none;
  font-size: 30px;
  font-family: sans-serif;
  font-style: normal;
  font-weight: 400;
}


.mm-title { font-size: 22px; font-weight: 900; margin-bottom: 12px; }
.mm-wrap h3 { font-size: 25px; font-family: Sans-serif; font-style: normal; font-weight: 400; margin: 18px 0 10px; }
.mm-wrap h4 { 
    font-size: 25px;
    margin: 30px 0 8px;
    text-transform: capitalize;
    font-style: normal;
}

/* Base text */
.mm-wrap, .mm-wrap * { box-sizing: border-box; }
.mm-wrap p { margin: 10px 0; }
.mm-wrap label { font-size: 13px; font-weight: 650;}

/* Boxes / cards (reused in thank you & payment) */
.mm-box {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.mm-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 12px;
}
.mm-card-header { padding: 12px; border-bottom: 1px solid #f1f5f9; background: #eaeaea; background: #ececec;
    border-radius: 14px 14px 0px 0px; }
.mm-card-title { font-weight: 800; }
.mm-card-meta { color: #475569;}
.mm-card-body { padding: 12px; }

.mm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 640px){
  .mm-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   REGISTER FORM (matches your shortcode)
   ========================================================= */




/* Pill inputs (scoped to .mm-form) */
.mm-form input[type="text"],
.mm-form input[type="email"],
.mm-form input[type="tel"],
.mm-form input[type="number"],
.mm-form input[type="date"],
.mm-form select {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 12px 16px;
  font-size: 14px;
  background: #fff;
  transition: box-shadow .15s ease, border-color .15s ease;
}


.mm-payment-notice {
    font-size: 14px;
    line-height: 1.3em;
    padding: 12px;
    margin-top: 10px;
    background: #fffeee;
}



.mm-form input:focus,
.mm-form select:focus {
  outline: none;
  border-color: #58b748;
  box-shadow: 0 0 0 3px rgba(88,183,72,.15);
}

/* Participant accordion */
.mm-participant {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  padding-left: 30px;
  padding-right: 30px;
  margin-bottom: 10px;
}

.mm-participant-header {
  padding: 14px 16px;
  font-weight: 900;
  cursor: pointer;
}

.mm-participant-body {
  display: none;
  padding: 14px 16px;
}

.mm-participant.active .mm-participant-body {
  display: block;
}

/* Merchandise grid */
.mmItems {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 8px 0 10px;
}

.mm-item-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}

.mm-item-card img {
    grid-column: 1;
    grid-row: 1 / span 6;
    width: 90%;
    margin: 0;
    object-fit: cover;
    border-radius: 10px;
}

.mm-item-name { margin-top: 8px; font-weight: 800; }
.mm-item-price { opacity: .8; margin: 4px 0; }
.mm-item-qty-label { display: block; margin-top: 6px; }
.mm-item-qty { width: 100%; padding: 10px 14px; }

@media (max-width: 640px) {
  .mmItems {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mm-item-card {
    display: grid;
    grid-template-columns: 134px minmax(0, 1fr);
    row-gap: 4px;
    align-items: start;
  }

  .mm-item-card img {
    grid-column: 1;
    grid-row: 1 / span 6;
    width: 90%;
    border-radius: 10px;
  }

  .mm-item-card .mm-item-name,
  .mm-item-card .mm-item-price,
  .mm-item-card .mm-item-qty-label,
  .mm-item-card .mm-qty-ticker,
  .mm-item-card .mm-variants {
    grid-column: 2;
  }

  .mm-item-card .mm-item-name {
    margin-top: 0;
  }

  .mm-item-card .mm-item-qty-label {
    margin-top: 2px;
  }
}

/* Summary boxes */
.mm-summary {
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 12px;
  max-width: 520px;
  background: #fff;
}

/* Action buttons row */
.mm-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 35px;
}

/* Buttons */
.mm-add-participant {
  background: #58b748;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .05s ease, opacity .2s ease;
}
.mm-add-participant:hover { opacity: .92; }
.mm-add-participant:active { transform: translateY(1px); }

@media(max-width:600px){
    .mm-add-participant {
        width: 100%;
        padding: 18px 0px;
        font-size: 18px !important;
    }
    .mm-actions {
        flex-direction: column;
    }
    .mm-actions button {
        padding:15px;
    }
    
}

.mm-card-button {
    background: #4f46e5 !important;
    border-radius: 100px !important;
    color: #fff;
    border: none !important;
    font-family: sans-serif !important;
    font-style: normal !important;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: normal !important;
    text-transform: capitalize !important;
    padding: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .05s ease, opacity .2s ease;
    
    display: flex !important;
    flex-direction: row !important;
    align-content: center !important;
    justify-content: center !important;
}

.mm-primary {
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .05s ease, opacity .2s ease;
}
.mm-primary:hover { opacity: .92; }
.mm-primary:active { transform: translateY(1px); }

@media(max-width:600px){
    .mm-primary {
        width: 100%;
        padding: 18px 0px;
        font-size: 18px !important;
    }
}




/* Stronger scoping to beat theme styles */
#mmRegApp #mmRegForm input:not(.mm-floating-control > input),
#mmRegApp #mmRegForm select:not(.mm-floating-control > select) {
  border: 1px solid #e5e7eb !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

#mmRegApp #mmRegForm input:not(.mm-floating-control > input):focus,
#mmRegApp #mmRegForm select:not(.mm-floating-control > select):focus {
  outline: none !important;
  border-color: #58b748 !important;
  box-shadow: 0 0 0 3px rgba(88,183,72,.15) !important;
}


#mmAddParticipantBtn {
    border-radius: 100px;
    font-family: 'Roboto';
    font-style: normal;
    text-transform: capitalize;
    font-weight: normal;
}
#mmContinueBtn {
    border: 1px solid;
    background: #5db547;
    border-radius: 100px;
    font-family: 'Roboto';
    font-style: normal;
    text-transform: capitalize;
    font-weight: normal;
    color: #fff;
}

/* Radio group - modern look */
.mm-radio-group {
  margin: 10px 0;
  flex-wrap: wrap;
  gap: 10px;
}

.mm-radio-label {
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 8px;
}

.mm-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-right: 10px;
  cursor: pointer;
  background: #fff;
  white-space: nowrap;
  background: #f1f1f1;
}

.mm-radio input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}


/* Waiver checkbox alignment */
#mmRegForm label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

#mmRegForm input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}

#mmRegForm p > label {
  justify-content: flex-start;

}

/* Accordion header layout: left title + right name + delete */
.mm-participant-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.mm-ph-right{
  display:flex;
  align-items:center;
  gap:10px;
}

.mm-ph-name{
  font-weight:700;
  opacity:.85;
  max-width: 220px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.mm-ph-delete{
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
  line-height: 1;
}

.mm-ph-delete:hover{
  background: rgba(0,0,0,.05);
}


/* --- Accordion hard override (beats themes) --- */
#mmRegApp .mm-participant-body {
  display: none !important;
}

#mmRegApp .mm-participant.active .mm-participant-body {
  display: block !important;
}

.mm-icon-trash {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
  color: #0f172a;
  opacity: .75;
}

.mm-ph-delete:hover .mm-icon-trash {
  opacity: 1;
}


.mm-field { margin: 10px 0; }
.mm-label { font-size: 13px; font-weight: 650; margin-bottom: 6px; }

.mm-section-title { margin-top: 18px; margin-bottom: 8px; }

#mmRegApp .mm-third-party-registrant{
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
}

#mmRegApp .mm-third-party-registrant.is-hidden,
#mmRegApp .mm-minor-warning.is-hidden{
  display: none !important;
}

#mmRegApp .mm-minor-warning{
  margin: 10px 0 0;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

/* header right side */
.mm-participant-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.mm-ph-right{
  display:flex;
  align-items:center;
  gap:10px;
}

.mm-ph-name{
  font-weight:700;
  opacity:.85;
  max-width: 220px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.mm-ph-delete{
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
  line-height: 1;
}

.mm-ph-delete:hover{ background: rgba(0,0,0,.05); }

.mm-icon-trash{
  width:18px;
  height:18px;
  display:block;
  fill: currentColor;
  color:#0f172a;
  opacity:.75;
}
.mm-ph-delete:hover .mm-icon-trash{ opacity: 1; }

/* Mobile padding adjustment */
@media (max-width: 640px){
  .mm-participant {
  
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .mm-participant > .mm-participant-body {
    padding-bottom: 30px;
  }
}


/* Hard reset trash button (kill theme styles) */
.mm-ph-delete {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: inherit !important;
  padding: 6px !important;
}

/* Prevent hover/active theme colors */
.mm-ph-delete:hover,
.mm-ph-delete:focus,
.mm-ph-delete:active {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* =========================
   Phase A: Multi-column layout
   ========================= */

#mmRegApp .mm-row-2,
#mmRegApp .mm-row-3{
  display: grid;
  gap: 12px;
  align-items: start;
  margin: 10px 0;
}

#mmRegApp .mm-row-2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#mmRegApp .mm-row-3{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#mmRegApp .mm-col{
  min-width: 0;
}

#mmRegApp .mm-field{
  margin: 0;
}

#mmRegApp .mm-radio-group{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 640px){
  #mmRegApp .mm-row-2,
  #mmRegApp .mm-row-3{
    grid-template-columns: 1fr !important;
  }
}

/* Shirt size row placeholder (Phase A/B) */
#mmRegApp .mm-shirt-chart-placeholder{
  height: 140px;
  border: 1px dashed #e5e7eb;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#64748b;
  font-weight:700;
  background:#fff;
}

@media (max-width: 640px){
  #mmRegApp .mm-shirt-chart-placeholder{ height: 120px; }
}


/* =========================
   Phase 7A: Payment page layout
   ========================= */

.mm-pay .mm-pay-header{
  margin-bottom: 14px;
  padding-left: 25px;
}

.mm-pay .mm-muted{
  margin: 6px 0 0;
  color: #475569;
}

.mm-pay .mm-pay-grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr; /* summary wider */
  gap: 14px;
  align-items: start;
}

/* Cards */
.mm-pay .mm-card{
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  padding: 34px 26px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, .10);
}
@media (max-width: 640px){
.mm-pay .mm-card{
    padding: 10px;
}
    
}

.mm-inner-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.mm-pay .mm-card-head{
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.mm-pay .mm-card-title{
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  font-family: sans-serif;
}

.mm-pay .mm-card-body{
  padding: 14px 16px;
}

/* Loading skeleton text */
.mm-pay .mm-skeleton{
  color: #64748b;
  font-weight: 600;
}

/* Status + alerts */
.mm-pay .mm-status{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #e5e7eb;
}

.mm-pay .mm-alert{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #991b1b;
}

/* Trust row */
.mm-pay .mm-trust{
  margin-top: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #475569;
  font-size: 13px;
}

.mm-pay .mm-icon-lock{
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Mobile */
@media (max-width: 860px){
  .mm-pay .mm-pay-grid{
    grid-template-columns: 1fr;
  }
}

/* Mobile padding requirement */
@media (max-width: 640px){
  .mm-pay.mm-wrap{
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .mm-pay .mm-card{
    border-radius: 14px;
  }
}


.mm-pay .mm-card-head{
  padding: 14px 16px !important;
}

.mm-pay .mm-card-title{
  margin: 0 !important;
}


/* =========================
   Phase 7B: Payment method tiles (override theme button styles)
   ========================= */

.mm-pay .mm-methods{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Force neutral button base (kill theme styles) */
.mm-pay .mm-method-btn{
  appearance: none;
  -webkit-appearance: none;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;

  display: flex !important;
  align-items: center !important;
  flex-direction: column;
  justify-content: center;
  gap: 12px !important;

  width: 100% !important;
  max-width: 100% !important;
  height: 150px;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.06) !important;

  /* kill weird theme text stuff */
  text-transform: none !important;
  letter-spacing: normal !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;

  color: #0f172a !important;
  overflow: hidden;
}

/* Remove theme pseudo elements or backgrounds */
.mm-pay .mm-method-btn::before,
.mm-pay .mm-method-btn::after{
  content: none !important;
  display: none !important;
}

/* Hover/active */
.mm-pay .mm-method-btn:hover{
  border-color: #cbd5e1 !important;
  transform: translateY(-1px);
}
.mm-pay .mm-method-btn:active{
  transform: translateY(0);
  opacity: .96;
}

/* Disabled */
.mm-pay .mm-method-btn:disabled{
  opacity: .55 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Logo */
.mm-pay .mm-method-icon{
  width: 200px !important;
  object-fit: contain !important;
  display: block !important;
  background: #fff !important;
}

.mm-pay .mm-directdebit-icon{
  width: 160px !important;
  object-fit: contain !important;
  display: block !important;
  background: #fff !important;
}

/* Text */
.mm-pay .mm-method-text{
    font-family: sans-serif;
    color: #0f172a !important;
    font-size: 14px;
    font-weight: 400;
}

/* Optional: show 2 columns on wider screens */
@media (min-width: 860px){
  .mm-pay .mm-methods{
    grid-template-columns: 1fr;
  }
}


/* =========================
   Phase 7B-2: Selected + Loading states
   ========================= */

.mm-pay .mm-method-btn{
  position: relative;
  transition: transform .08s ease, opacity .2s ease, border-color .2s ease, box-shadow .2s ease;
}

/* Selected */
.mm-pay .mm-method-btn.is-selected{
  border-color: #58b748 !important;
  box-shadow: 0 0 0 3px rgba(88,183,72,.14) !important;
}

/* Check badge */
.mm-pay .mm-method-btn .mm-check{
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #58b748;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.mm-pay .mm-method-btn .mm-check svg{
  width: 14px;
  height: 14px;
  fill: #fff;
}

/* Loading overlay */
.mm-pay .mm-method-btn.is-loading{
  pointer-events: none !important;
  opacity: .85 !important;
}

.mm-pay .mm-method-btn .mm-spin{
  margin-left: auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(15,23,42,.25);
  border-top-color: rgba(15,23,42,.9);
  animation: mmspin .8s linear infinite;
}

@keyframes mmspin{
  to { transform: rotate(360deg); }
}


/* Order summary totals */
.mm-pay .mm-sum{
  margin-top: 14px;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.mm-pay .mm-sum-row{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  color: #0f172a;
}

.mm-pay .mm-sum-total{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
  font-size: 16px;
  font-weight: 900;
}

/* ===== Card number field with brand icon inside ===== */
#mmPayApp .mm-card-panel { margin-top: 14px; }

#mmPayApp .mm-card-number-wrap{
  position: relative;
  display: block;
}

#mmPayApp #mmCardNumber{
  width: 100%;
  padding: 15px; /* reserve space for the brand icon */
  box-sizing: border-box;
}

.mm-card-fields {
    padding: 15px !important; /* reserve space for the brand icon */
}

#mmPayApp .mm-card-brand{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  object-fit: contain;
  pointer-events: none; /* so taps still focus input */
  opacity: .9;
}

#mmRegApp .mm-shirt-chart-img{
  width:100%;
  height:auto;
  display:block;
  border-radius:14px;
  border:1px solid #e5e7eb;
}
#mmRegApp .mm-shirt-chart{
  display:flex;
  align-items:flex-start;
}

#mmRegApp .mm-shirt-chart-full{
  width:100%;
  margin:10px 0 14px;
}

.mm-form .mm-size-chart-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:20px;
  margin:10px 0 20px;
  align-items:start;
}
.mm-form .mm-size-chart-grid > .mm-shirt-chart{
  min-width:0;
  width:100%;
  margin:0;
}
.mm-form .mm-size-chart-grid .mm-shirt-chart-img{
  display:block;
  width:100%;
  height:auto;
  border-radius:14px;
  border:1px solid #e5e7eb;
}
@media (min-width:768px){
  .mm-form .mm-size-chart-grid.has-multiple{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

#mmRegApp .mm-shirt-size-row{
  margin-top:0;
}

#mmRegApp .mmCatGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}

@media (max-width:640px){
  #mmRegApp .mmCatGrid{ grid-template-columns:1fr; }
}

#mmRegApp .mm-cat-card{
  position:relative;
  border:1px solid #e5e7eb;
  border-radius:16px;
  background:#fff;
  padding:10px;
  text-align:left;
  cursor:pointer;
  display:flex;
  gap:10px;
  align-items:center;
}

#mmRegApp .mm-cat-card:hover{ opacity:.95; }

#mmRegApp .mm-cat-card.is-closed{
  cursor:not-allowed;
  background:#f8fafc;
  border-color:#d1d5db;
  opacity:.72;
}

#mmRegApp .mm-cat-card.is-closed:hover{
  opacity:.72;
}

#mmRegApp .mm-cat-card.is-closed .mm-cat-img img{
  filter:grayscale(1);
}

#mmRegApp .mm-cat-img img{
  width:100px;
  height:100px;
  object-fit:cover;
  border-radius:12px;
  display:block;
}

#mmRegApp .mm-cat-title{
    color: #777;
    font-family: Open Sans;
    font-style: normal;
    text-transform: capitalize;
    
}

#mmRegApp .mm-cat-closed-badge{
  display:inline-flex;
  align-items:center;
  margin-left:8px;
  padding:2px 7px;
  border-radius:999px;
  background:#111827;
  color:#fff;
  font-size:11px;
  font-weight:800;
  line-height:1.4;
  letter-spacing:0;
  vertical-align:middle;
}

#mmRegApp .mm-cat-price{
    color: #475569;
    margin-top: 2px;
    font-style: normal;
    font-size: 20px;
    font-weight: 700;
}

#mmRegApp .mm-cat-entitlements{
  display:none;
  margin-top:4px;
  color:#15803d;
  font-size:12px;
  font-weight:500;
  line-height:1.4;
}

#mmRegApp .mm-cat-card.is-selected .mm-cat-entitlements{
  display:block;
}

#mmRegApp .mm-cat-check{
  position:absolute;
  right:10px;
  top:10px;
  width:22px;
  height:22px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
}

#mmRegApp .mm-cat-check svg{ width:16px;height:16px; fill:currentColor; }

#mmRegApp .mm-cat-card.is-closed .mm-cat-check{
  display:none;
}

#mmRegApp .mm-cat-card.is-selected{
  border-color:#58b748;
  box-shadow:0 0 0 3px rgba(88,183,72,.18);
}

#mmRegApp .mm-cat-card.is-selected .mm-cat-check{
  opacity:1;
  background:#58b748;
  color:#fff;
  border-color:#58b748;
}

/* =========================================
   Merchandise Qty ticker (SVG) - Desktop + Mobile
   ========================================= */

.mm-qty-ticker{
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.mm-qty-ticker button{
  all: unset; /* prevents theme button background */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.mm-qty-ticker .mm-qty-minus {
    background-color: transparent;
    border: none;
}

.mm-qty-ticker .mm-qty-minus:hover {
    background:none;
    border:none;
}

.mm-qty-ticker .mm-qty-plus:hover {
    background:none;
    border:none;
}

.mm-qty-ticker .mm-qty-minus:focus {
    background:none;
    border:none;
}

.mm-qty-ticker .mm-qty-plus:focus {
    background:none;
    border:none;
}

.mm-qty-ticker .mm-qty-plus {
    background-color: transparent;
    border: none;
}

.mm-qty-ticker svg{
  width: 34px;
  height: 34px;
  color: #6b7280;
}

.mm-qty-ticker button:hover svg{
  color: #374151;
}

.mm-qty-ticker button:active svg{
  color: #111827;
  transform: scale(0.95);
}

.mm-qty-input{
  height: 44px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

/* remove native number arrows */
.mm-qty-input::-webkit-outer-spin-button,
.mm-qty-input::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}
.mm-qty-input[type=number]{ -moz-appearance: textfield; }


/* Waiver link */
.mm-waiver-link{
  display:inline-block;
  margin-left:10px;
  font-size: 14px;
  text-decoration: underline;
}

/* Modal base */
.mm-modal{
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.mm-modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
}

.mm-modal-dialog{
  position: relative;
  max-width: 860px;
  margin: 5vh auto;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  display:flex;
  flex-direction: column;
  max-height: 90vh;
}

.mm-modal-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

.mm-modal-title{
  font-weight: 700;
  font-size: 16px;
}

.mm-modal-x{
  all: unset;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  padding: 0 6px;
  color: #444;
}

.mm-modal-body{
  padding: 14px;
  overflow: auto;
}

.mm-modal-foot{
  padding: 12px 16px;
  border-top: 1px solid #eee;
}

/* Prevent background scroll when modal open */
.mm-modal-open{
  overflow: hidden;
}

/* Waiver content formatting */
.mm-waiver-content h1,
.mm-waiver-content h2,
.mm-waiver-content h3{
  margin: 0.6em 0 0.4em;
  line-height: 1.2;
}

.mm-waiver-content p{
  margin: 0.5em 0;
  line-height: 1.6;
}

.mm-waiver-content ul,
.mm-waiver-content ol{
  margin: 0.5em 0 0.8em 1.2em;
}

.mm-waiver-content li{
  margin: 0.25em 0;
}

/* Mobile */
@media (max-width: 640px){
  .mm-modal-dialog{
    margin: 0;
    max-width: none;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
}

.mm-modal{ position:fixed; inset:0; z-index:100000; }
.mm-modal-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.55); }
.mm-modal-dialog{
  position:relative;
  background:#fff;
  width:min(720px, calc(100% - 24px));
  margin: 60px auto;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
}
.mm-modal-head{
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 14px; border-bottom:1px solid #e5e7eb;
}
.mm-modal-title{ font-size:16px; font-weight:700; }
.mm-modal-body{ padding:35px; }
body.mm-modal-open{ overflow:hidden; }




/* Direct Debit accordion */
.mm-method-directdebit{
  position: relative;
}

.mm-dd-panel{
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: rgba(255,255,255,0.6);
}

.mm-dd-note{
  font-weight: 600;
  margin-bottom: 10px;
}

.mm-dd-banks{
 display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap:10px;
}

.mm-dd-banks button{
    background: none !important;
    border: none !important;
}


.mm-dd-bank{
  appearance: none;
  border: 1px solid #d0d0d0;
  background: transparent;
  border-radius: 12px;
  padding: 12px 10px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
}

.mm-dd-bank:active{
  transform: translateY(1px);
}

.mm-dd-hint{
  margin-top: 10px;
  font-size: 13px;
  opacity: .85;
}

/* mobile: make banks 1 column if needed */
@media (max-width: 420px){
  .mm-dd-banks{
    grid-template-columns: 1fr;
  }
}

/* Participant merchandise storefront */
.mmItems.mm-shop { display:block; margin:16px 0 28px; color:#172b29; }
.mm-shop-intro > span { font-size:11px; font-weight:800; letter-spacing:.16em; color:#52726a; }
.mm-shop-intro p { margin:7px 0 20px; color:#65736e; font-size:14px; }
.mm-shop-layout { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:24px; align-items:start; }
.mm-shop-products { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.mm-product { overflow:hidden; border:1px solid #e3e9e5; border-radius:18px; background:#fff; box-shadow:0 4px 18px #17372b05; }
.mm-product-image { position:relative; aspect-ratio:1.12; background:#f3f6f3; display:flex; align-items:center; justify-content:center; padding:24px; }
.mm-product-image img { width:100%; height:100%; max-height:260px; object-fit:contain; mix-blend-mode:multiply; }
.mm-product-badge { position:absolute; top:12px; left:12px; padding:5px 8px; border-radius:6px; background:#ffffffdf; font-size:9px; font-weight:800; letter-spacing:.1em; color:#51645c; }
.mm-product-body { padding:18px; }
.mm-product-body h5 { margin:0 0 6px; font-size:17px; font-weight:750; color:#172b29; }
.mm-product-price { font-size:16px; font-weight:650; color:#476458; }
.mm-product-actions { display:flex; align-items:end; gap:12px; margin-top:18px; min-height:64px; }
.mm-product-size { flex:1; min-width:0; }
.mm-product-size > span { display:block; font-size:11px; font-weight:700; margin-bottom:5px; }
.mm-shop .mm-product-size select { width:100%; height:44px; padding:8px 10px; border:1px solid #dce4de; border-radius:9px; background:#fff; font-size:13px; color:#253b32; }
.mm-shop button.mm-cart-add { flex:0 0 46px; width:46px; height:44px; padding:0; border:0; border-radius:10px; background:#5db547; color:white; display:grid; place-items:center; cursor:pointer; }
.mm-shop button.mm-cart-add:hover { background:#438a32; }
.mm-shop button.mm-cart-add:disabled { opacity:.35; cursor:default; }
.mm-shop button:focus-visible, .mm-shop select:focus-visible { outline:3px solid #7fae94; outline-offset:3px; }
.mm-product-no-size { flex:1; align-self:center; font-size:12px; color:#78857d; }
.mm-product-limit { display:block; margin-top:10px; color:#78857d; font-size:11px; }
.mm-merch-cart { position:sticky; top:24px; padding:20px; border:1px solid #e0e7e0; border-radius:18px; background:#f8faf7; }
.mm-cart-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; padding-bottom:16px; border-bottom:1px solid #e1e8df; }
.mm-cart-heading h5 { margin:0; font-size:18px; color:#172b29; }
.mm-cart-count { white-space:nowrap; font-size:11px; font-weight:700; background:#e7eee5; padding:5px 9px; border-radius:20px; }
.mm-cart-empty { padding:32px 0; font-size:14px; line-height:1.6; text-align:center; color:#52665b; }
.mm-cart-empty small { display:block; margin-top:6px; color:#7b877e; font-size:12px; }
.mm-cart-line { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:15px 0; border-bottom:1px solid #e1e8df; }
.mm-shop .mm-cart-thumbnail { display:block; flex:0 0 64px; width:64px; height:64px; object-fit:contain; background:#fff; border:1px solid #e1e8df; border-radius:10px; }
.mm-cart-item-details { flex:1; min-width:0; overflow-wrap:anywhere; }
.mm-cart-line strong,.mm-cart-line small,.mm-cart-line span { display:block; }
.mm-cart-line strong { font-size:13px; }
.mm-cart-line small { color:#78857d; font-size:11px; margin:3px 0; }
.mm-cart-line span { font-size:12px; font-weight:600; }
.mm-shop .mm-cart-line button { width:36px; height:36px; flex-shrink:0; border:1px solid #dce4de; border-radius:50%; background:white; color:#64786a; padding:0; font-size:22px; cursor:pointer; }
.mm-cart-total { display:flex; justify-content:space-between; gap:12px; padding-top:18px; font-size:12px; }
.mm-cart-total strong { white-space:nowrap; font-size:15px; }
.mm-cart-note { margin:12px 0 0; font-size:11px; color:#7b877e; line-height:1.5; }
.mm-shop-status { font-size:12px; color:#476458; min-height:18px; margin:10px 0 0; }
@media(min-width:1200px) { .mm-shop-products { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:900px) { .mm-shop-layout { grid-template-columns:1fr; } .mm-merch-cart { position:static; } }
@media(max-width:480px) { .mm-shop-products { gap:10px; } .mm-product-body { padding:12px; } .mm-product-image { padding:16px; } .mm-product-body h5 { font-size:14px; } .mm-product-actions { gap:6px; flex-wrap:wrap; } .mm-product-size { flex-basis:100%; } .mm-product-actions .mm-cart-add { margin-left:auto; } }

/* Full-width merchandise gallery and cart */
.mmItems.mm-shop[hidden], .mm-section-title[hidden] { display:none !important; }
.mm-shop .mm-shop-layout { grid-template-columns:minmax(0,1fr); }
.mm-shop .mm-merch-cart { position:static; }
.mm-shop .mm-product-image { background:#fff; padding:0; }
.mm-shop .mm-product-image img { display:block; width:100%; height:100%; max-height:none; object-fit:contain; mix-blend-mode:normal; border-radius:0; }
.mm-shop .mm-product-preview { display:block; width:100%; height:100%; padding:0; margin:0; border:0; border-radius:0; background:#fff; cursor:zoom-in; overflow:hidden; }
.mm-shop .mm-product-preview:focus-visible { outline-offset:-4px; }
.mm-product-badge { pointer-events:none; }
.mm-merch-preview { box-sizing:border-box; width:min(960px,94vw); max-width:94vw; max-height:92vh; padding:48px 16px 16px; border:0; border-radius:18px; background:white; color:#172b29; box-shadow:0 24px 80px #0004; }
.mm-merch-preview::backdrop { background:#102019bd; }
.mm-merch-preview > img { display:block; width:100%; height:auto; max-height:72vh; object-fit:contain; background:white; }
.mm-merch-preview > p { margin:12px 0 0; text-align:center; font-size:15px; }
.mm-merch-preview .mm-preview-close { position:absolute; top:8px; right:10px; width:36px; height:36px; display:grid; place-items:center; padding:0; border:1px solid #dce4de; border-radius:50%; background:white; color:#172b29; font-size:26px; cursor:pointer; }
.mm-merch-preview .mm-preview-close:focus-visible { outline:3px solid #7fae94; outline-offset:2px; }

/* Soft, image-led merchandise cards for desktop and mobile. */
.mmItems.mm-shop { color:#17171d; font-family:-apple-system,BlinkMacSystemFont,sans-serif; }
.mm-shop .mm-shop-intro { display:block; }
.mm-shop .mm-shop-intro p { margin:0 0 22px; max-width:560px; color:#86868b; font-size:14px; font-weight:400; line-height:1.6; letter-spacing:0; }
.mm-shop .mm-shop-layout { gap:24px; }
.mm-shop .mm-shop-products { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; padding:0; align-items:stretch; background:transparent; border-radius:28px; }
.mm-shop .mm-product { display:flex; flex-direction:column; min-width:0; padding:12px; border:1px solid #f3f3f6; border-radius:26px; background:#fff; box-shadow:0 8px 30px #222b4510; }
.mm-shop .mm-product-image { position:relative; flex:none; width:100%; aspect-ratio:1.12; padding:0; border:0; border-radius:18px; background:#fff; overflow:hidden; box-sizing:border-box; }
.mm-shop .mm-product-preview { position:absolute; inset:0; background:#fff; }
.mm-shop .mm-product-image img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.mm-shop .mm-product-badge, .mm-shop .mm-product-limit { display:none; }
.mm-shop .mm-product-body { display:flex; flex:1; flex-direction:column; min-width:0; padding:14px 4px 4px; }
.mm-shop .mm-product-body h5 { margin:0 0 7px; color:#1d1d1f; font-size:18px; line-height:1.3; font-weight:600; letter-spacing:-.02em; overflow-wrap:anywhere; }
.mm-shop .mm-product-price { margin:0 0 14px; color:#424245; font-size:15px; line-height:1.45; font-weight:400; letter-spacing:0; }
.mm-shop .mm-product-actions { display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:44px 48px; align-items:stretch; gap:10px; min-height:0; margin-top:auto; }
.mm-shop .mm-product-size { display:block; width:100%; min-width:0; margin:0; padding:0; }
.mm-shop .mm-product-size > span { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.mm-shop .mm-product-size select { display:block; box-sizing:border-box; width:100%; min-width:0; max-width:100%; height:44px; margin:0; padding:8px 28px 8px 12px; border:1px solid #d6d6df; border-radius:12px; background-color:#fcfcfd; color:#25252d; font-size:16px; line-height:1.2; }
.mm-shop .mm-product-no-size { align-self:center; margin:0; color:#81818e; font-size:14px; line-height:1.4; }
.mm-shop .mm-product-actions button.mm-cart-add { display:flex; justify-content:center; align-items:center; gap:9px; width:100%; min-width:0; height:48px; margin:0; padding:0 8px; border:0; border-radius:999px; background:linear-gradient(165deg,#72c45d,#5db547); color:#fff; font-family:inherit; font-size:16px; font-weight:500; line-height:1.2; box-shadow:0 5px 16px #5db5471a; }
.mm-shop .mm-product-actions button.mm-cart-add:hover { background:#438a32; }
.mm-shop .mm-product-actions button.mm-cart-add svg { width:21px; height:21px; flex-shrink:0; }
.mm-shop .mm-product-actions button.mm-cart-add span { white-space:nowrap; }
.mm-shop .mm-merch-cart { padding:24px; border:1px solid #eeeef2; border-radius:24px; background:#fff; box-shadow:0 8px 30px #222b450a; }
.mm-shop .mm-cart-heading h5 { color:#17171d; font-weight:600; }
.mm-shop .mm-cart-count { background:#fcebf1; color:#a82c55; }
@media(max-width:760px) {
  .mm-shop .mm-shop-products { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:0; border-radius:20px; }
  .mm-shop .mm-product { padding:8px; border-radius:20px; }
  .mm-shop .mm-product-image { aspect-ratio:1.12; border-radius:14px; }
  .mm-shop .mm-product-body { padding:10px 2px 3px; }
  .mm-shop .mm-shop-intro p { font-size:13px; margin-bottom:18px; }
  .mm-shop .mm-product-body h5 { font-size:15px; letter-spacing:-.015em; margin-bottom:5px; }
  .mm-shop .mm-product-price { font-size:13px; margin-bottom:12px; }
  .mm-shop .mm-product-actions { grid-template-rows:44px 44px; gap:8px; }
  .mm-shop .mm-product-actions button.mm-cart-add { height:44px; gap:6px; font-size:13px; }
  .mm-shop .mm-product-actions button.mm-cart-add svg { width:18px; height:18px; }
  .mm-shop .mm-product-size select { padding-left:9px; border-radius:10px; }
  .mm-shop .mm-product-no-size { font-size:12px; }
  .mm-shop .mm-merch-cart { padding:16px; border-radius:20px; }
}
@media(max-width:360px) {
  .mm-shop .mm-shop-products { gap:8px; }
  .mm-shop .mm-product { padding:6px; border-radius:16px; }
  .mm-shop .mm-product-body h5 { font-size:14px; }
  .mm-shop .mm-product-price { font-size:12px; }
  .mm-shop .mm-product-actions button.mm-cart-add { font-size:12px; gap:4px; }
}

/* Soft checkout panels and participant totals. */
.mm-shop .mm-merch-cart { padding:24px; border:1px solid #f2f2f5; border-radius:28px; background:#fff; box-shadow:0 10px 36px #202b4410; }
.mm-shop .mm-cart-heading { border:0; padding:0 4px 20px; }
.mm-shop .mm-cart-heading h5 { margin:0; color:#1d1d1f; font-size:26px; font-weight:600; letter-spacing:-.03em; }
.mm-shop .mm-cart-count { padding:9px 16px; border-radius:999px; background:#f5f5f7; color:#515156; font-size:14px; font-weight:600; }
.mm-shop .mm-cart-panel { padding:0 20px 20px; border:1px solid #eeeef2; border-radius:22px; }
.mm-shop .mm-cart-line { padding:20px 0; gap:18px; border-bottom:1px solid #e8e8ed; }
.mm-shop .mm-cart-thumbnail { flex-basis:88px; width:88px; height:88px; border:1px solid #e8e8ed; border-radius:14px; background:#fff; }
.mm-shop .mm-cart-line strong { font-size:18px; line-height:1.3; font-weight:600; letter-spacing:-.02em; color:#1d1d1f; }
.mm-shop .mm-cart-line small { margin:6px 0 8px; font-size:14px; line-height:1.4; color:#86868b; }
.mm-shop .mm-cart-line span { font-size:17px; font-weight:600; color:#1d1d1f; }
.mm-shop .mm-cart-line button { width:44px; height:44px; border:1px solid #e4e4e9; background:#fafafa; color:#86868b; font-size:28px; }
.mm-shop .mm-cart-line button:hover { color:#5db547; background:#f0f8ed; }
.mm-shop .mm-cart-total { align-items:center; padding-top:20px; font-size:16px; line-height:1.4; color:#1d1d1f; }
.mm-shop .mm-cart-total strong { font-size:20px; font-weight:600; letter-spacing:-.02em; }
.mm-shop .mm-cart-note { margin:12px 0 0; font-size:13px; color:#86868b; }
.mm-shop .mm-shop-status:empty { display:none; }
.mm-shop .mm-shop-status:not(:empty) { display:flex; align-items:center; gap:12px; padding:14px 18px; margin:14px 0 0; border:1px solid #e2eee7; border-radius:16px; background:#f4faf6; color:#276746; font-size:14px; line-height:1.5; }
.mm-shop .mm-shop-status:not(:empty)::before { content:'✓'; display:grid; place-items:center; flex:0 0 24px; height:24px; background:#5b9e78; color:#fff; border-radius:50%; font-size:16px; }
.mm-participant-summary-title { margin:28px 0 14px; font-family:-apple-system,BlinkMacSystemFont,sans-serif; font-size:24px; font-weight:600; letter-spacing:-.03em; color:#1d1d1f; }
.mm-summary.mm-participant-summary { display:block; width:100%; max-width:none; box-sizing:border-box; padding:12px 20px; border:1px solid #f2f2f5; border-radius:24px; background:#fff; box-shadow:0 8px 30px #202b440c; font-family:-apple-system,BlinkMacSystemFont,sans-serif; color:#1d1d1f; }
.mm-participant-summary > div { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:0; padding:16px 4px; border-bottom:1px solid #e8e8ed; font-size:16px; line-height:1.4; }
.mm-participant-summary > div.is-hidden { display:none; }
.mm-participant-summary > div strong { font-weight:500; white-space:nowrap; }
.mm-participant-summary > div:nth-last-child(2) { border-bottom:0; }
.mm-participant-summary > div:last-child { padding:16px 14px; margin:0 -6px 2px; border:0; border-radius:12px; background:#f5f5f7; font-weight:600; }
.mm-participant-summary > div:last-child strong { font-weight:600; font-size:19px; }
@media(max-width:640px) {
  .mm-shop .mm-merch-cart { padding:16px 12px; border-radius:22px; }
  .mm-shop .mm-cart-heading { padding:0 4px 16px; }
  .mm-shop .mm-cart-heading h5 { font-size:22px; }
  .mm-shop .mm-cart-count { padding:7px 12px; font-size:12px; }
  .mm-shop .mm-cart-panel { padding:0 12px 16px; border-radius:16px; }
  .mm-shop .mm-cart-line { gap:10px; padding:16px 0; }
  .mm-shop .mm-cart-thumbnail { flex-basis:60px; width:60px; height:60px; border-radius:10px; }
  .mm-shop .mm-cart-line strong { font-size:14px; }
  .mm-shop .mm-cart-line small { font-size:12px; margin:4px 0; }
  .mm-shop .mm-cart-line span { font-size:14px; }
  .mm-shop .mm-cart-line button { width:36px; height:36px; font-size:24px; }
  .mm-shop .mm-cart-total { font-size:13px; gap:8px; }
  .mm-shop .mm-cart-total strong { font-size:17px; }
  .mm-shop .mm-cart-note { font-size:12px; line-height:1.5; }
  .mm-shop .mm-shop-status:not(:empty) { padding:12px; gap:8px; font-size:12px; }
  .mm-participant-summary-title { font-size:22px; }
  .mm-summary.mm-participant-summary { padding:10px 16px; border-radius:20px; }
  .mm-participant-summary > div { font-size:14px; padding:14px 0; }
  .mm-participant-summary > div:last-child strong { font-size:17px; }
}

.mm-merchandise [hidden] { display:none !important; }
.mm-ev-wrap.mm-shop-page .mm-ev-tabs { flex-direction:row; flex-wrap:nowrap; align-items:center; margin:0; }
.mm-ev-wrap.mm-shop-page .mm-ev-hero-inner { flex:1 1 0; margin:0; min-width:0; }
.mm-ev-wrap.mm-shop-page .mm-shop-header-title { flex:none; margin:0 0 0 auto; color:#1d1d1f; font-size:clamp(22px,3vw,30px); font-weight:600; letter-spacing:-.03em; text-align:right; }
.mm-shop-header-title,.mm-ev-nav .mm-shop-link { display:inline-flex; align-items:center; gap:8px; }
.mm-store-icon { width:1em; height:1em; flex-shrink:0; color:inherit; }
.mm-shop-steps { display:flex; list-style:none; gap:12px; padding:0; margin:28px 0; }
.mm-shop-steps li { flex:1; border-top:3px solid #d9d9df; padding-top:12px; color:#6e6e73; font-size:14px; }
.mm-shop-steps li[aria-current],.mm-shop-steps li.is-complete { border-color:#5db547; color:#28751b; }
.mm-shop-options { min-width:0; padding:28px; background:#fff; border:1px solid #e8e8ed; border-radius:24px; scroll-margin-top:180px; }
.mm-shop-guest label { display:block; margin:18px 0; }
.mm-shop-guest input,.mm-shop-guest select,.mm-shop-guest textarea { display:block; width:100%; box-sizing:border-box; margin-top:8px; }
.mm-shop-guest textarea { min-height:100px; padding:12px 14px; border:1px solid #d2d2d7; border-radius:12px; font:inherit; }
.mm-ev-wrap.mm-shop-page .mm-ev-tab-panel[data-panel="registration"] { max-width:1480px; box-sizing:border-box; padding:40px 24px 64px; overflow:visible; }
.mm-shop-pickup { white-space:pre-line; padding:16px; background:#f2f8ef; border-radius:12px; }
.mm-shop-choices { display:grid; gap:12px; }
.mm-shop-choices button { width:100%; height:auto; white-space:normal; line-height:1.5; padding:14px; border:1px solid #5db547; border-radius:999px; background:#5db547; color:#fff; font:inherit; font-size:14px; cursor:pointer; }
.mm-shop-choices button:disabled { opacity:.5; cursor:not-allowed; }
.mm-shop-options .mm-merch-verification { grid-template-columns:1fr; }
.mm-shop-choices button[data-checkout="guest"] { background:#fff; color:#28751b; border:1px solid #5db547; }
.mm-merchandise .mm-shop-choices button[data-checkout="registration"] { background:#5db547; border-color:#5db547; color:#fff; opacity:1; }
.mm-merchandise .mm-shop-choices button[data-checkout="registration"]:hover:not(:disabled) { background:#438a32; border-color:#438a32; color:#fff; }
.mm-shop-back { background:none !important; color:#28751b !important; padding:0 !important; margin-bottom:20px; border:0; }
.mm-ev-nav a.mm-ev-tab { text-decoration:none; display:inline-flex; align-items:center; }
@media(max-width:640px) {
  .mm-shop-steps { gap:8px; }
  .mm-shop-steps li { font-size:12px; }
  .mm-shop-options { padding:20px; }
  .mm-ev-wrap.mm-shop-page .mm-ev-tab-panel[data-panel="registration"] { padding:28px 12px; }
}

/* Overall checkout summary. */
.mm-overall-summary { box-sizing:border-box; width:100%; margin:30px 0; padding:32px; border:1px solid #e8e8ed; border-radius:24px; background:#fff; box-shadow:0 12px 36px #202b440b; font-family:-apple-system,BlinkMacSystemFont,sans-serif; color:#1d1d1f; }
.mm-overall-summary > h3 { margin:0 0 24px; font-size:28px; line-height:1.25; font-weight:600; letter-spacing:-.035em; color:#1d1d1f; }
.mm-overall-totals { padding:20px 24px; border:1px solid #e5e5eb; border-radius:16px; background:#f7f7f9; }
.mm-overall-totals > div { display:flex; justify-content:space-between; align-items:baseline; gap:20px; padding:7px 0; font-size:16px; line-height:1.5; color:#62626d; }
.mm-overall-totals strong { flex-shrink:0; font-size:17px; font-weight:600; color:#1d1d1f; white-space:nowrap; }
.mm-overall-totals hr { height:0; margin:16px 0 12px; border:0; border-top:1px solid #e0e0e7; }
.mm-overall-totals > div:last-child { font-size:18px; font-weight:600; }
.mm-overall-totals > div:last-child strong { font-size:22px; }
.mm-overall-summary .mm-overall-waiver { display:flex; flex-wrap:wrap; align-items:center; gap:12px 24px; margin:24px 0; font-size:14px; line-height:1.6; color:#51515b; }
.mm-overall-waiver > label { display:flex; align-items:flex-start; gap:10px; margin:0; font-weight:400; }
.mm-overall-summary .mm-overall-waiver input[type="checkbox"] { flex:0 0 20px; width:20px; height:20px; margin:2px 0 0; accent-color:#5db547; }
.mm-overall-summary .mm-waiver-link { color:#5db547; text-decoration:underline; text-underline-offset:3px; font-size:14px; }
.mm-overall-summary > .mm-actions { display:flex; flex-direction:row; gap:12px; margin-top:24px; flex-wrap:wrap; }
.mm-overall-summary .mm-actions button { min-height:48px; padding:12px 28px; border-radius:999px; font-family:inherit; font-size:15px; font-weight:600; line-height:1.4; text-transform:none; cursor:pointer; box-shadow:none; }
.mm-overall-summary #mmAddParticipantBtn { border:1px solid #d8d8e0; color:#62626d; background:#f9f9fb; }
.mm-overall-summary #mmContinueBtn { border:1px solid #5db547; color:#fff; background:#5db547; }
.mm-overall-summary #mmContinueBtn:hover { background:#438a32; border-color:#438a32; }
.mm-overall-summary #mmAddParticipantBtn:hover { background:#efeff3; }
.mm-overall-summary .mm-actions button:disabled { opacity:.5; cursor:default; }
.mm-overall-summary button:focus-visible, .mm-overall-summary a:focus-visible, .mm-overall-waiver input:focus-visible { outline:3px solid #5db54780; outline-offset:3px; }
@media(max-width:640px) {
  .mm-overall-summary { padding:20px 16px; border-radius:20px; }
  .mm-overall-summary > h3 { font-size:23px; margin-bottom:18px; }
  .mm-overall-totals { padding:14px; border-radius:12px; }
  .mm-overall-totals > div { font-size:13px; gap:12px; }
  .mm-overall-totals strong { font-size:14px; }
  .mm-overall-totals > div:last-child { font-size:16px; }
  .mm-overall-totals > div:last-child strong { font-size:19px; }
  .mm-overall-summary .mm-overall-waiver { font-size:13px; gap:10px; margin:20px 0; }
  .mm-overall-summary .mm-waiver-link { font-size:13px; }
  .mm-overall-summary > .mm-actions { flex-direction:column; margin-top:20px; }
  .mm-overall-summary .mm-actions button { width:100%; padding:12px 16px; }
}

/* Event artwork and Apple-inspired registration navigation. */
.mm-ev-modern .mm-ev-hero { display:block; position:relative; height:250px; min-height:250px; overflow:hidden; margin:0; padding:0; background:#f5f5f7; }
.mm-ev-modern .mm-ev-hero > .mm-ev-banner-image { display:block; position:absolute; inset:0; width:100%; max-width:none; min-height:0; height:100%; object-fit:cover; object-position:center; margin:0; }
.mm-ev-modern .mm-ev-tabs { box-sizing:border-box; display:flex; flex-direction:row; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:24px; width:100%; margin:0; padding:20px max(24px,calc((100% - 1240px)/2)); background:linear-gradient(135deg,#fff,#f7f7fa); border-bottom:1px solid #e8e8ed; box-shadow:0 8px 24px #202b4409; font-family:-apple-system,BlinkMacSystemFont,sans-serif; }
.mm-ev-modern .mm-ev-hero-inner { flex:1 1 320px; gap:18px; padding:0; margin:0; color:#1d1d1f; min-width:0; }
.mm-ev-modern .mm-ev-logo { flex-shrink:0; width:76px; height:76px; object-fit:contain; border-radius:50%; border:1px solid #e8e8ed; background:#fff; box-shadow:0 6px 16px #202b4410; }
.mm-ev-modern .mm-ev-head { text-align:left; min-width:0; }
.mm-ev-modern .mm-ev-head h1 { margin:0 0 8px; color:#25252d; font-family:inherit; font-size:20px; font-weight:600; line-height:1.3; letter-spacing:-.025em; text-transform:none; }
.mm-ev-modern .mm-ev-head > div { display:flex; flex-wrap:wrap; align-items:center; gap:8px; color:#7b7b86; font-size:14px; line-height:1.5; }
.mm-ev-modern .mm-ev-date, .mm-ev-modern .mm-ev-venue { display:inline-flex; align-items:center; gap:8px; }
.mm-ev-modern .mm-ev-head svg { width:18px; height:18px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.mm-ev-modern .mm-ev-nav { display:flex; flex-wrap:wrap; gap:10px; }
.mm-ev-modern .mm-ev-tab { min-height:46px; padding:12px 22px; border:1px solid #e6e6ed; border-radius:999px; background:#fcfcfe; color:#42424c; font-family:inherit; font-size:14px; font-weight:400; line-height:1.4; white-space:nowrap; box-shadow:0 6px 18px #202b4408; }
.mm-ev-modern .mm-ev-tab.is-active { border-color:#5db547; background:#5db547; color:#fff; box-shadow:0 6px 18px #5db54725; }
.mm-ev-modern .mm-ev-tab:hover { background:#f0f8ed; }
.mm-ev-modern .mm-ev-tab.is-active:hover { background:#438a32; }
.mm-ev-modern .mm-ev-tab:focus-visible { outline:3px solid #5db54780; outline-offset:3px; }
@media(max-width:760px) {
  .mm-ev-modern .mm-ev-tabs { padding:18px 16px; gap:18px; }
  .mm-ev-modern .mm-ev-hero-inner { flex-basis:100%; gap:12px; }
  .mm-ev-modern .mm-ev-logo { width:58px; height:58px; border-radius:50%; }
  .mm-ev-modern .mm-ev-head h1 { font-size:17px; margin-bottom:5px; }
  .mm-ev-modern .mm-ev-head > div { font-size:12px; gap:5px; }
  .mm-ev-modern .mm-ev-head svg { width:16px; height:16px; }
  .mm-ev-modern .mm-ev-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; gap:8px; }
  .mm-ev-modern .mm-ev-tab { width:100%; padding:10px 12px; font-size:13px; box-sizing:border-box; }
}

/* Desktop registration with a floating checkout sidebar. */
@media(min-width:1100px) {
  .mm-ev-modern .mm-ev-tab-panel[data-panel="registration"] { max-width:1480px; padding:32px 24px; overflow:visible; }
  #mmRegApp, #mmWalkinRegApp { max-width:1432px; overflow:visible; }
  #mmRegForm, #mmWalkinRegForm { display:grid; grid-template-columns:minmax(0,1fr) 350px; align-items:start; gap:28px; }
  #mmRegForm > #mmParticipants, #mmWalkinRegForm > #mmParticipants { min-width:0; }
  #mmRegForm > .mm-overall-summary, #mmWalkinRegForm > .mm-overall-summary { position:sticky; top:24px; z-index:5; align-self:start; margin:0; padding:24px 20px; max-height:calc(100dvh - 48px); overflow:auto; scrollbar-width:thin; }
  #mmRegForm > .mm-overall-summary > h3, #mmWalkinRegForm > .mm-overall-summary > h3 { font-size:23px; line-height:1.3; margin:0 0 20px; }
  .mm-overall-summary .mm-overall-totals { padding:16px; }
  .mm-overall-summary .mm-overall-totals > div { font-size:13px; gap:12px; }
  .mm-overall-summary .mm-overall-totals strong { font-size:15px; }
  .mm-overall-summary .mm-overall-totals > div:last-child { font-size:16px; }
  .mm-overall-summary .mm-overall-totals > div:last-child strong { font-size:20px; }
  .mm-overall-summary > .mm-actions { flex-direction:column; gap:10px; }
  .mm-overall-summary .mm-actions button { width:100%; padding:12px 16px; }
  .mm-overall-summary .mm-overall-waiver { font-size:13px; gap:12px; }
  .mm-overall-summary .mm-waiver-link { font-size:13px; }
  #mmParticipants .mm-shop-products { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(min-width:1400px) {
  #mmRegForm, #mmWalkinRegForm { grid-template-columns:minmax(0,1fr) 380px; gap:32px; }
  #mmParticipants .mm-shop-products { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

/* Keep event navigation aligned with the form and sticky above the banner. */
.mm-ev-modern { --mm-menu-height:116px; --mm-menu-top:0px; }
.mm-ev-modern .mm-ev-tabs { position:sticky; top:var(--mm-menu-top); z-index:20; padding-left:max(24px,calc((100% - 1432px)/2)); padding-right:max(24px,calc((100% - 1432px)/2)); }
body.admin-bar .mm-ev-modern { --mm-menu-top:32px; }
.mm-ev-modern .mm-participant { scroll-margin-top:calc(var(--mm-menu-height) + var(--mm-menu-top) + 16px); }
@media(min-width:1100px) {
  .mm-ev-modern #mmRegForm > .mm-overall-summary { top:calc(var(--mm-menu-height) + var(--mm-menu-top) + 20px); max-height:calc(100dvh - var(--mm-menu-height) - var(--mm-menu-top) - 40px); }
  .mm-ev-modern #mmRegForm > .mm-overall-summary:has(.mm-modal[aria-hidden="false"]) { z-index:30; }
}
@media(min-width:601px) and (max-width:782px) {
  body.admin-bar .mm-ev-modern { --mm-menu-top:46px; }
}
@media(max-width:600px) {
  body.admin-bar .mm-ev-modern { --mm-menu-top:0px; }
}

/* Compact event navigation leaves more room for registration content. */
.mm-ev-modern.is-menu-stuck .mm-ev-tabs { padding-top:10px; padding-bottom:10px; gap:14px; }
.mm-ev-modern.is-menu-stuck .mm-ev-logo { width:48px; height:48px; border-radius:50%; }
.mm-ev-modern.is-menu-stuck .mm-ev-hero-inner { gap:12px; }
.mm-ev-modern.is-menu-stuck .mm-ev-head h1 { font-size:17px; margin-bottom:3px; }
.mm-ev-modern.is-menu-stuck .mm-ev-head > div { font-size:12px; }
.mm-ev-modern.is-menu-stuck .mm-ev-head svg { width:15px; height:15px; }
.mm-ev-modern.is-menu-stuck .mm-ev-nav { gap:8px; }
.mm-ev-modern.is-menu-stuck .mm-ev-tab { min-height:40px; padding:9px 16px; font-size:13px; }
@media(max-width:760px) {
  .mm-ev-modern.is-menu-stuck .mm-ev-tabs { padding-top:8px; padding-bottom:8px; gap:8px; }
  .mm-ev-modern.is-menu-stuck .mm-ev-logo { width:36px; height:36px; border-radius:50%; }
  .mm-ev-modern.is-menu-stuck .mm-ev-head h1 { font-size:14px; margin-bottom:2px; }
  .mm-ev-modern.is-menu-stuck .mm-ev-head > div { font-size:11px; gap:4px; }
  .mm-ev-modern.is-menu-stuck .mm-ev-nav { display:flex; flex-wrap:nowrap; overflow-x:auto; gap:6px; padding:2px 0; scrollbar-width:thin; }
  .mm-ev-modern.is-menu-stuck .mm-ev-tab { flex:0 0 auto; width:auto; min-height:40px; padding:9px 12px; font-size:12px; }
}

.mm-ev-modern .mm-ev-tabs { transition:padding-top .45s cubic-bezier(.22,1,.36,1),padding-bottom .45s cubic-bezier(.22,1,.36,1),gap .45s cubic-bezier(.22,1,.36,1); }
.mm-ev-modern .mm-ev-logo { transition:width .45s cubic-bezier(.22,1,.36,1),height .45s cubic-bezier(.22,1,.36,1),border-radius .45s cubic-bezier(.22,1,.36,1); }
.mm-ev-modern .mm-ev-hero-inner, .mm-ev-modern .mm-ev-nav { transition:gap .45s cubic-bezier(.22,1,.36,1); }
.mm-ev-modern .mm-ev-head h1 { transition:font-size .45s cubic-bezier(.22,1,.36,1),margin-bottom .45s cubic-bezier(.22,1,.36,1); }
.mm-ev-modern .mm-ev-head > div { transition:font-size .45s cubic-bezier(.22,1,.36,1); }
.mm-ev-modern .mm-ev-head svg { transition:width .45s cubic-bezier(.22,1,.36,1),height .45s cubic-bezier(.22,1,.36,1); }
.mm-ev-modern .mm-ev-tab { transition:padding .45s cubic-bezier(.22,1,.36,1),min-height .45s cubic-bezier(.22,1,.36,1),font-size .45s cubic-bezier(.22,1,.36,1),background-color .2s ease; }
@media(prefers-reduced-motion:reduce) {
  .mm-ev-modern .mm-ev-tabs, .mm-ev-modern .mm-ev-logo, .mm-ev-modern .mm-ev-hero-inner, .mm-ev-modern .mm-ev-nav, .mm-ev-modern .mm-ev-head h1, .mm-ev-modern .mm-ev-head > div, .mm-ev-modern .mm-ev-head svg, .mm-ev-modern .mm-ev-tab { transition:none; }
}

/* Prevent scroll anchoring and discrete reflow during sticky-header animation. */
.mm-ev-modern { overflow-anchor:none; }
@media(max-width:760px) {
  .mm-ev-modern .mm-ev-nav { display:flex; flex-wrap:nowrap; overflow-x:auto; padding:2px 0; scrollbar-width:thin; }
  .mm-ev-modern .mm-ev-tab { flex:0 0 auto; width:auto; }
}

/* Hide the mobile navigation scrollbar while preserving swipe scrolling. */
@media(max-width:760px) {
  .mm-ev-modern .mm-ev-nav,
  .mm-ev-modern.is-menu-stuck .mm-ev-nav { scrollbar-width:none; -ms-overflow-style:none; }
  .mm-ev-modern .mm-ev-nav::-webkit-scrollbar { display:none; width:0; height:0; }
}

/* Collapsible registration navigation on mobile, including the sticky header. */
.mm-ev-modern .mm-ev-menu-toggle { display:none; }
@media(max-width:760px) {
  .mm-ev-modern.has-event-menu .mm-ev-tabs { flex-direction:row; flex-wrap:wrap; gap:12px; }
  .mm-ev-modern.has-event-menu .mm-ev-hero-inner { flex:1 1 0; min-width:0; }
  .mm-ev-modern.has-event-menu .mm-ev-head { overflow-wrap:anywhere; }
  .mm-ev-modern.has-event-menu .mm-ev-menu-toggle { display:inline-flex; flex:0 0 44px; align-items:center; justify-content:center; width:44px; height:44px; padding:0; border:0; border-radius:0; background:transparent; color:#42424c; font-size:28px; cursor:pointer; }
  .mm-ev-modern .mm-ev-menu-toggle:focus-visible { outline:3px solid #5db54780; outline-offset:3px; }
  .mm-ev-modern.has-event-menu .mm-ev-nav { display:none; }
  .mm-ev-modern.has-event-menu.is-event-menu-open .mm-ev-nav { display:grid; grid-template-columns:minmax(0,1fr); flex-basis:100%; width:100%; gap:8px; padding:4px 0; max-height:50vh; max-height:50dvh; overflow:auto; }
  .mm-ev-modern.has-event-menu .mm-ev-nav .mm-ev-tab { width:100%; min-height:44px; padding:10px 14px; white-space:normal; text-align:left; border-radius:12px; font-size:13px; }
}

/* Category detail cards: rates, inclusions and race schedule. */
.mm-ev-modern .mm-ev-tab-panel[data-panel="categories"] { max-width:1280px; padding:40px 24px; box-sizing:border-box; font-family:-apple-system,BlinkMacSystemFont,sans-serif; }
.mm-ev-modern .mm-race-cat-list { display:grid; gap:28px; }
.mm-category-detail { overflow:hidden; border:1px solid #fff; border-radius:28px; background:#fff; box-shadow:0 12px 36px #202b440b; }
.mm-ev-modern .mm-category-detail-heading { display:flex; align-items:center; justify-content:center; gap:12px; margin:0; padding:26px 32px; background:#faf7f9; border-bottom:1px solid #f0edf0; color:#1d1d1f; font-family:inherit; font-size:26px; font-weight:600; letter-spacing:-.035em; line-height:1.3; }
.mm-ev-modern .mm-category-detail .mm-race-cat-card { padding:32px; border:0; border-radius:0; box-shadow:none; background:transparent; transform:none; }
.mm-ev-modern .mm-category-detail .mm-race-cat-grid { display:grid; grid-template-columns:1fr 1fr 1.15fr; grid-template-areas:'rates entitlements schedule'; gap:28px; align-items:stretch; }
.mm-category-rates { grid-area:rates; }
.mm-category-entitlements { grid-area:entitlements; }
.mm-category-schedule { grid-area:schedule; }
.mm-category-detail .mm-race-cat-grid > div { min-width:0; }
.mm-category-entitlements, .mm-category-schedule { border-left:1px solid #e9e9ef; padding-left:28px; }
.mm-ev-modern .mm-category-detail .mm-race-cat-title { font-size:11px; letter-spacing:.1em; font-weight:600; line-height:1.5; color:#626674; }
.mm-ev-modern .mm-category-detail .mm-race-cat-rate { font-family:inherit; font-size:34px; line-height:1.2; font-weight:600; letter-spacing:-.04em; margin-top:10px; color:#1d1d1f; overflow-wrap:anywhere; }
.mm-ev-modern .mm-category-detail .mm-race-cat-sub { margin-top:6px; font-size:13px; font-weight:400; line-height:1.6; color:#86868b; }
.mm-category-rates > div[style="height: 15px;"] { height:0 !important; margin:22px 0; border-top:1px solid #eeeef3; }
.mm-ev-modern .mm-category-schedule .mm-race-cat-title:not(:first-child) { margin-top:22px !important; }
.mm-ev-modern .mm-category-schedule .mm-race-cat-sub { color:#303441; font-size:15px; font-weight:500; }
.mm-ev-modern .mm-category-detail .mm-race-cat-ents { list-style:none; margin:14px 0 0; padding:0; color:#626674; font-size:14px; }
.mm-category-detail .mm-race-cat-ents li { display:flex; align-items:center; gap:12px; margin:0 0 12px; line-height:1.5; }
.mm-category-detail .mm-category-check { display:grid; place-items:center; flex:0 0 30px; height:30px; border-radius:50%; background:#f0f8ed; color:#5db547; font-size:18px; }
@media(max-width:800px) {
  .mm-ev-modern .mm-ev-tab-panel[data-panel="categories"] { padding:24px 16px; }
  .mm-category-detail { border-radius:22px; }
  .mm-ev-modern .mm-category-detail-heading { padding:18px; font-size:22px; }
  .mm-ev-modern .mm-category-detail .mm-race-cat-card { padding:22px; }
  .mm-ev-modern .mm-category-detail .mm-race-cat-grid { grid-template-columns:1fr; grid-template-areas:'rates' 'entitlements' 'schedule'; gap:24px; }
  .mm-category-entitlements, .mm-category-schedule { border-left:0; border-top:1px solid #e9e9ef; padding-left:0; padding-top:24px; }
  .mm-ev-modern .mm-category-detail .mm-race-cat-rate { font-size:30px; }
}

/* Left-align category details on mobile. */
@media(max-width:800px) {
  .mm-ev-modern .mm-category-detail,
  .mm-ev-modern .mm-category-detail .mm-race-cat-title,
  .mm-ev-modern .mm-category-detail .mm-race-cat-rate,
  .mm-ev-modern .mm-category-detail .mm-race-cat-sub,
  .mm-ev-modern .mm-category-detail .mm-race-cat-ents { text-align:left; }
  .mm-ev-modern .mm-category-detail-heading { justify-content:flex-start; text-align:left; padding-left:22px; padding-right:22px; }
  .mm-ev-modern .mm-category-detail .mm-race-cat-grid { justify-items:stretch; }
}

/* Participant name and selected category in the accordion header. */
.mm-participant-header .mm-ph-identity { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; flex:1; min-width:0; }
.mm-participant-header .mm-ph-name { min-width:0; overflow-wrap:anywhere; color:#1d1d1f; font-size:16px; font-weight:600; }
.mm-participant-header .mm-ph-category { display:inline-flex; align-items:center; padding:6px 12px; border:1px solid #d5e9cf; border-radius:999px; background:#f0f8ed; color:#438a32; font-size:12px; font-weight:500; line-height:1.4; max-width:100%; overflow-wrap:anywhere; }
.mm-participant-header .mm-ph-category[hidden] { display:none; }
.mm-participant-header .mm-ph-right { flex-shrink:0; }
@media(max-width:640px) {
  .mm-participant-header .mm-ph-identity { gap:6px 8px; }
  .mm-participant-header .mm-ph-name { font-size:14px; }
  .mm-participant-header .mm-ph-category { padding:4px 9px; font-size:11px; }
}

/* Temporary bag confirmation, outside the participant accordion. */
.mm-merch-toast { position:fixed; z-index:99999; left:50%; bottom:calc(24px + env(safe-area-inset-bottom,0px)); transform:translate(-50%,12px); box-sizing:border-box; width:max-content; max-width:calc(100vw - 32px); padding:14px 22px; border:1px solid #d5e9cf; border-radius:16px; background:#fff; color:#1d1d1f; box-shadow:0 10px 40px #202b4426; font-family:-apple-system,BlinkMacSystemFont,sans-serif; font-size:14px; line-height:1.5; text-align:center; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .2s ease,transform .2s ease,visibility .2s; }
.mm-merch-toast.is-visible { opacity:1; visibility:visible; transform:translate(-50%,0); }
@media(prefers-reduced-motion:reduce) { .mm-merch-toast { transition:none; } }

/* Unified registration typography, matching the Overall Summary. */
:is(.mm-ev-modern, #mmRegApp, #mmWalkinRegApp, .mm-merch-preview, .mm-merch-toast, #mmRegistrationNotice) {
  font-family:-apple-system,BlinkMacSystemFont,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
:is(.mm-ev-modern, #mmRegApp, #mmWalkinRegApp, .mm-merch-preview, .mm-merch-toast, #mmRegistrationNotice) :where(h1,h2,h3,h4,h5,h6,p,div,span,a,label,input,select,option,textarea,button,strong,small,li,dt,dd,th,td,legend) {
  font-family:-apple-system,BlinkMacSystemFont,Helvetica,Arial,sans-serif !important;
  font-style:normal;
}
:is(#mmRegApp, #mmWalkinRegApp) .mm-section-title {
  font-weight:600;
  letter-spacing:-.025em;
  line-height:1.3;
}
:is(#mmRegApp, #mmWalkinRegApp) :is(.mm-label, label) {
  font-weight:500;
}

/* Payment checkout: clean two-column order review and method cards. */
#mmPayApp { max-width:1200px; padding:28px 24px 100px; color:#15151d; background:transparent; font-family:-apple-system,BlinkMacSystemFont,Helvetica,Arial,sans-serif; -webkit-font-smoothing:antialiased; }
#mmPayApp :is(h2,h3,p,div,span,button,a,small,strong,label,input,code) { font-family:inherit !important; font-style:normal; }
#mmPayApp .mm-pay-header { margin:0 0 24px; padding:0; }
#mmPayApp #mmEditRegistration { margin:0 0 18px; padding:8px 0; border:0; background:transparent; color:#0071e3; box-shadow:none; font-size:14px; font-weight:400; }
#mmPayApp #mmEditRegistration[hidden] { display:none; }
#mmPayApp .mm-title { margin:0 0 6px; font-size:36px; font-weight:600; letter-spacing:-.04em; line-height:1.2; }
#mmPayApp .mm-pay-header .mm-muted { margin:0; color:#747480; font-size:17px; line-height:1.5; }
#mmPayApp .mm-pay-grid { grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:24px; align-items:start; }
#mmPayApp .mm-pay-grid > section { min-width:0; }
#mmPayApp .mm-pay-grid > section:first-child > .mm-card-body { padding:0; }
#mmPayApp .mm-card, #mmPayApp .mm-sum, #mmPayApp .mm-payment-status-card { padding:24px 28px; border:1px solid #e8eaf0; border-radius:18px; background:#fff; box-shadow:0 10px 30px #202b4409; }
#mmPayApp .mm-card { margin-bottom:14px; }
#mmPayApp .mm-payment-status-card { margin:0 0 24px; padding:18px 20px; }
#mmPayApp .mm-payment-status-card .mm-row { display:flex; flex-direction:column; gap:6px; font-size:14px; color:#6e7180; overflow-wrap:anywhere; }
#mmPayApp .mm-payment-status-card .mm-row > div:first-child { color:#0071e3; font-size:15px; }
#mmPayApp .mm-payment-status-card strong { font-weight:500; color:#242432; }
#mmPayApp .mm-payment-status-card code { background:none; padding:0; color:inherit; font-size:12px; }
#mmPayApp .mm-subtitle { margin:0 0 14px; font-size:23px; font-weight:600; line-height:1.3; letter-spacing:-.025em; }
#mmPayApp .mm-card-head-participants { display:flex; justify-content:space-between; align-items:center; padding:0 0 16px; margin:0; border-bottom:1px solid #eceef3; }
#mmPayApp .mm-card-name { font-size:22px; font-weight:600; line-height:1.3; letter-spacing:-.03em; overflow-wrap:anywhere; }
#mmPayApp .mm-card-price { flex:0 0 38px; height:38px; border-radius:50%; display:grid; place-items:center; background:#f2f3f6; color:#858995; }
#mmPayApp .mm-meta-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 20px; margin:0; padding:18px 0; border-bottom:1px solid #eceef3; }
#mmPayApp .mm-meta-row { min-width:0; font-size:12px; }
#mmPayApp .mm-meta-k { min-width:52px; font-weight:500; color:#646879; }
#mmPayApp .mm-meta-v { overflow-wrap:anywhere; min-width:0; color:#333744; }
#mmPayApp .cat-head { display:flex; justify-content:space-between; gap:12px; padding:16px 0; border-bottom:1px solid #eceef3; font-size:14px; }
#mmPayApp .mm-section-title { font-size:14px; line-height:1.4; margin:0 0 12px; }
#mmPayApp .mm-addon-img { width:52px; height:52px; object-fit:contain; border-radius:8px; background:#fff; }
#mmPayApp .mm-addon-name { font-size:14px; white-space:normal; overflow-wrap:anywhere; }
#mmPayApp .mm-addon-sub { font-size:12px; font-weight:400; color:#808391; }
#mmPayApp .mm-addon-price { font-size:14px; color:#444859; }
#mmPayApp .mm-sum { margin-top:14px; }
#mmPayApp .mm-sum-row { display:flex; justify-content:space-between; gap:14px; padding:7px 0; font-size:14px; font-weight:400; }
#mmPayApp .mm-sum-total { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-top:14px; padding-top:16px; border-top:1px solid #e8eaf0; font-size:25px; font-weight:600; letter-spacing:-.025em; }
#mmPayApp .mm-sum-total span { font-size:21px; }
#mmPayApp section[aria-label="Payment methods"] { padding:26px; }
#mmPayApp .mm-card-head, #mmPayApp section[aria-label="Payment methods"] .mm-card-body { padding:0; border:0; }
#mmPayApp .mm-card-title { font-size:23px; line-height:1.3; font-weight:600; letter-spacing:-.03em; margin:0 0 18px; }
#mmPayApp .mm-payment-notice { padding:14px 16px; margin:0 0 18px; border:0; border-radius:10px; background:#eff5ff; font-size:12px; line-height:1.7; color:#65748e; }
#mmPayApp .mm-payment-notice a { color:#0071e3; }
#mmPayApp .mm-methods { display:flex; flex-direction:column; gap:12px; }
#mmPayApp .mm-method-btn { position:relative; display:flex; align-items:center; justify-content:flex-start; gap:20px; width:100%; min-height:108px; padding:20px; border:1px solid #e3e7ef !important; border-radius:12px; background:#fff !important; color:#161623 !important; box-shadow:0 2px 6px #202b4405; text-align:left; text-transform:none; }
#mmPayApp .mm-method-btn:hover, #mmPayApp .mm-method-btn.is-selected { border-color:#88b8ff !important; background:#f3f7ff !important; }
#mmPayApp .mm-method-btn::after { content:'›'; margin-left:auto; color:#8b96ab; font-size:28px; font-weight:300; }
#mmPayApp .mm-method-icon, #mmPayApp .mm-directdebit-icon { width:68px; height:68px; object-fit:contain; flex:0 0 68px; }
#mmPayApp .mm-method-text { font-size:22px; font-weight:600; line-height:1.3; letter-spacing:-.03em; }
#mmPayApp .mm-method-directdebit .mm-method-text { font-size:18px; }
#mmPayApp .mm-method-text small { display:block; margin-top:6px; font-size:12px; font-weight:400; letter-spacing:0; color:#737e94; }
#mmPayApp .mm-trust { display:flex; align-items:center; gap:8px; margin:24px 0 16px; padding-top:18px; border-top:1px solid #eceef3; font-size:11px; color:#7b8394; }
#mmPayApp .mm-trust + .mm-payment-notice { margin-bottom:0; background:#fff9e9; color:#77705f; }
#mmPayApp .mm-method-btn:focus-visible, #mmPayApp #mmEditRegistration:focus-visible { outline:3px solid #0071e3; outline-offset:3px; }
@media(max-width:800px) {
  #mmPayApp { padding:20px 16px 110px; }
  #mmPayApp .mm-pay-grid { grid-template-columns:minmax(0,1fr); gap:20px; }
  #mmPayApp .mm-title { font-size:29px; }
  #mmPayApp .mm-pay-header .mm-muted { font-size:14px; }
  #mmPayApp .mm-card, #mmPayApp .mm-sum, #mmPayApp section[aria-label="Payment methods"] { padding:20px; }
  #mmPayApp .mm-meta-grid { grid-template-columns:1fr; }
  #mmPayApp .mm-card-name { font-size:20px; }
  #mmPayApp .mm-method-btn { min-height:94px; padding:16px; gap:14px; }
  #mmPayApp .mm-method-icon, #mmPayApp .mm-directdebit-icon { width:54px; height:54px; flex-basis:54px; }
  #mmPayApp .mm-method-text { font-size:20px; }
}

/* Override legacy vertical payment tiles and oversized logo rules. */
#mmPayApp .mm-method-btn { flex-direction:row; height:auto; min-height:112px; padding:20px !important; gap:20px !important; border-radius:12px !important; }
#mmPayApp .mm-method-icon, #mmPayApp .mm-directdebit-icon { width:76px !important; height:64px; flex:0 0 76px; background:transparent !important; }
#mmPayApp .mm-method-text { flex:1; min-width:0; text-align:left; }
#mmPayApp .mm-method-btn::after { content:'›' !important; display:block !important; position:static; flex:0 0 auto; }
#mmPayApp .mm-card-title { margin-bottom:18px; }
@media(max-width:480px) {
  #mmPayApp .mm-method-btn { min-height:100px; padding:16px !important; gap:14px !important; }
  #mmPayApp .mm-method-icon, #mmPayApp .mm-directdebit-icon { width:58px !important; height:54px; flex-basis:58px; }
}

/* Payment guidance icons matching the checkout reference. */
#mmPayApp .mm-payment-status-card { display:flex; align-items:center; gap:18px; }
#mmPayApp .mm-payment-clock { display:grid; place-items:center; flex:0 0 54px; width:54px; height:54px; border-radius:16px; background:#e7f1ff; color:#007aff; }
#mmPayApp .mm-payment-clock svg { display:block; width:30px; height:30px; }
#mmPayApp .mm-payment-status-card .mm-row { min-width:0; flex:1; }
#mmPayApp .mm-payment-secure, #mmPayApp .mm-payment-warning { display:flex; align-items:flex-start; gap:14px; }
#mmPayApp .mm-payment-notice-icon { display:block; flex:0 0 24px; width:24px; height:24px; margin-top:2px; }
#mmPayApp .mm-payment-secure { background:#eff5ff; }
#mmPayApp .mm-payment-secure .mm-payment-notice-icon { color:#007aff; }
#mmPayApp .mm-payment-warning { background:#fff9e9; }
#mmPayApp .mm-payment-warning .mm-payment-notice-icon { color:#d9ab2c; }
@media(max-width:480px) {
  #mmPayApp .mm-payment-status-card { gap:12px; padding:16px; }
  #mmPayApp .mm-payment-clock { flex-basis:44px; width:44px; height:44px; border-radius:13px; }
  #mmPayApp .mm-payment-clock svg { width:26px; height:26px; }
  #mmPayApp .mm-payment-secure, #mmPayApp .mm-payment-warning { gap:10px; }
}

/* Race time allowance, measured from gun start to cutoff. */
.mm-category-detail .mm-cutoff-details { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.mm-category-detail .mm-cutoff-duration { display:inline-flex; align-items:center; padding:5px 11px; border:1px solid #d5e9cf; border-radius:999px; background:#f0f8ed; color:#438a32; font-size:12px; font-weight:500; line-height:1.4; white-space:nowrap; }

/* Apple-style floating field labels, kept as real accessible labels. */
:is(#mmRegApp,#mmWalkinRegApp) .mm-floating-control { display:block; position:relative; width:100%; margin:0 0 .8235294118rem; font-weight:400; }
:is(#mmRegApp,#mmWalkinRegApp) .mm-floating-control > :is(input,select) { box-sizing:border-box; width:100%; min-height:0; height:3.2941176471rem; margin:0; padding:1.0588235294rem .9411764706rem 0; border:1px solid; border-color:#929299; border-radius:12px; background:#fff; color:#1d1d1f; font-size:17px; font-weight:400; letter-spacing:-.022em; line-height:1.2353641176; box-shadow:none; }
:is(#mmRegApp,#mmWalkinRegApp) .mm-floating-control > select { padding-right:34px; }
:is(#mmRegApp,#mmWalkinRegApp) .mm-floating-label { position:absolute; left:.9411764706rem; right:.9411764706rem; top:calc((3.2941176471rem - 22px)/2); z-index:1; color:#77777e; font-size:17px; line-height:22px; font-weight:400; pointer-events:none; transform-origin:left top; transition:transform .2s ease,top .2s ease; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
:is(#mmRegApp,#mmWalkinRegApp) .mm-floating-control:focus-within > .mm-floating-label,
:is(#mmRegApp,#mmWalkinRegApp) .mm-floating-control:has(input:not(:placeholder-shown)) > .mm-floating-label,
:is(#mmRegApp,#mmWalkinRegApp) .mm-floating-fixed > .mm-floating-label { top:5px; transform:scale(.73); right:-20%; }
:is(#mmRegApp,#mmWalkinRegApp) .mm-floating-control > :is(input,select):focus { outline:0; border-color:#0071e3; box-shadow:0 0 0 3px #0071e325; }
:is(#mmRegApp,#mmWalkinRegApp) .mm-floating-control > input:disabled { background:#f5f5f7; }
@media(prefers-reduced-motion:reduce) { :is(#mmRegApp,#mmWalkinRegApp) .mm-floating-label { transition:none; } }
:is(#mmRegApp,#mmWalkinRegApp) .mm-floating-control:has(select option:checked[value=""]):not(:focus-within) > .mm-floating-label { top:calc((3.2941176471rem - 22px)/2); transform:scale(1); right:34px; }
:is(#mmRegApp,#mmWalkinRegApp) .mm-floating-control:has(select option:checked[value=""]):not(:focus-within) > select { color:transparent; }
:is(#mmRegApp,#mmWalkinRegApp) .mm-floating-control > select option { color:#1d1d1f; }


/* Registration primary color, scoped away from payment and event pages. */
:is(#mmRegApp,#mmWalkinRegApp) {
  --mm-registration-primary:#5db547;
  --mm-registration-primary-dark:#438a32;
}
:is(#mmRegApp,#mmWalkinRegApp) :is(.mm-primary,.mm-shop button.mm-cart-add,#mmContinueBtn) {
  background:var(--mm-registration-primary);
  border-color:var(--mm-registration-primary);
}
:is(#mmRegApp,#mmWalkinRegApp) .mm-card-button { background:var(--mm-registration-primary) !important; }
:is(#mmRegApp,#mmWalkinRegApp) :is(.mm-primary,.mm-shop button.mm-cart-add,#mmContinueBtn):hover {
  background:var(--mm-registration-primary-dark);
  border-color:var(--mm-registration-primary-dark);
}
:is(#mmRegApp,#mmWalkinRegApp) .mm-shop button.mm-cart-add { box-shadow:0 5px 16px #5db5471a; }
:is(#mmRegApp,#mmWalkinRegApp) .mm-cat-card.is-selected { border-color:var(--mm-registration-primary); box-shadow:0 0 0 3px #5db54724; }
:is(#mmRegApp,#mmWalkinRegApp) .mm-cat-card.is-selected .mm-cat-check { background:var(--mm-registration-primary); border-color:var(--mm-registration-primary); }
:is(#mmRegApp,#mmWalkinRegApp) input:is([type="checkbox"],[type="radio"]) { accent-color:var(--mm-registration-primary); }
:is(#mmRegApp,#mmWalkinRegApp) .mm-waiver-link { color:var(--mm-registration-primary-dark); }
:is(#mmRegApp,#mmWalkinRegApp) .mm-shop .mm-cart-line button:hover { color:var(--mm-registration-primary-dark); background:#f0f8ed; }
:is(#mmRegApp,#mmWalkinRegApp) .mm-ph-category { background:#f0f8ed; border-color:#d5e9cf; color:var(--mm-registration-primary-dark); }
:is(#mmRegApp,#mmWalkinRegApp) :is(button,a,input):focus-visible { outline-color:var(--mm-registration-primary); }
:is(#mmRegApp,#mmWalkinRegApp) .mm-floating-control > :is(input,select):focus,
#mmRegApp #mmRegForm input:not(.mm-floating-control > input):focus,
#mmRegApp #mmRegForm select:not(.mm-floating-control > select):focus {
  border-color:var(--mm-registration-primary) !important;
  box-shadow:0 0 0 3px #5db54726 !important;
}

/* Entered registration values retain the requested size and color. */
:is(#mmRegApp,#mmWalkinRegApp) .mm-floating-control > input,
:is(#mmRegApp,#mmWalkinRegApp) .mm-floating-control > select {
  font-size:17px !important;
  color:#1d1d1f;
  -webkit-text-fill-color:#1d1d1f;
}
:is(#mmRegApp,#mmWalkinRegApp) .mm-floating-control:has(select option:checked[value=""]):not(:focus-within) > select {
  color:transparent;
  -webkit-text-fill-color:transparent;
}
:is(#mmRegApp,#mmWalkinRegApp) .mm-floating-control > select option {
  color:#1d1d1f;
  -webkit-text-fill-color:#1d1d1f;
}

/* Merchandise uses the registration template's floating desktop summary. */
.mm-ev-modern .mm-ev-tab-panel[data-panel="merchandise"] { max-width:1480px; padding:40px 24px 64px; overflow:visible; }
.mm-merchandise.mm-wrap { box-sizing:border-box; max-width:1432px; margin:0 auto; padding:0; color:#1d1d1f; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.mm-merchandise *, .mm-merchandise *::before, .mm-merchandise *::after { box-sizing:border-box; }
.mm-merch-header { margin:0 0 32px; }
.mm-merch-eyebrow { color:#6e6e73; font-size:11px; font-weight:600; letter-spacing:.14em; }
.mm-merch-header h2 { margin:12px 0; color:#1d1d1f; font-size:clamp(30px,4vw,48px); line-height:1.1; font-weight:600; letter-spacing:-.045em; }
.mm-merch-header p { margin:0; color:#6e6e73; font-size:17px; line-height:1.6; }
.mm-merch-verification { margin:0 0 32px; padding:24px 28px; background:#f5f5f7; border:1px solid #e8e8ed; border-radius:24px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px 32px; align-items:center; }
.mm-merch-verification h3 { margin:0 0 8px; font-size:21px; font-weight:600; letter-spacing:-.025em; }
.mm-merch-verification p { color:#6e6e73; font-size:14px; line-height:1.6; margin:0; }
.mm-merchandise .mm-merch-verify { display:flex; align-items:end; gap:12px; margin:0; }
.mm-merchandise .mm-merch-verify label { flex:1; min-width:0; font-size:12px; font-weight:500; color:#6e6e73; }
.mm-merchandise .mm-merch-verify input { display:block; width:100%; height:48px; margin:6px 0 0; padding:12px 14px; border:1px solid #d2d2d7; border-radius:12px; background:#fff; color:#1d1d1f; font:inherit; font-size:16px; }
.mm-merchandise .mm-merch-verify button, .mm-merchandise .mm-merch-checkout { min-height:48px; padding:12px 20px; border:0; border-radius:999px; background:#5db547; color:#fff; font:inherit; font-size:14px; font-weight:500; cursor:pointer; white-space:normal; }
.mm-merchandise .mm-merch-verify button:hover, .mm-merchandise .mm-merch-checkout:hover { background:#438a32; }
.mm-merchandise button:disabled { opacity:.45; cursor:default; }
.mm-merchandise :is(button,input,select):focus-visible { outline:3px solid #5db54780; outline-offset:3px; }
.mm-merch-verification .mm-merch-person { grid-column:1/-1; padding:14px 16px; color:#1d1d1f; background:#fff; border-radius:12px; overflow-wrap:anywhere; }
.mm-merchandise .mm-merch-confirm { grid-column:1/-1; display:flex; align-items:center; gap:10px; font-size:14px; color:#424245; }
.mm-merchandise .mm-merch-confirm input { width:18px; height:18px; margin:0; accent-color:#5db547; }
.mm-merchandise .mm-merch-message { grid-column:1/-1; }
.mm-merchandise [hidden] { display:none !important; }
.mm-merchandise .mm-merch-message:empty { display:none; }
.mm-merchandise .mm-shop-intro { display:none; }
.mm-merchandise .mmItems.mm-shop { margin:0; }
.mm-merchandise .mm-shop .mm-shop-products { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.mm-merchandise .mm-shop .mm-product { padding:16px; border:1px solid #eeeef2; border-radius:28px; box-shadow:0 8px 28px #202b4408; }
.mm-merchandise .mm-shop .mm-product-image { aspect-ratio:1.12; }
.mm-merchandise .mm-shop .mm-product-body { padding:20px 8px 8px; }
.mm-merchandise .mm-shop .mm-product-body h5 { font-size:21px; }
.mm-merchandise .mm-shop .mm-product-price { font-size:16px; margin-bottom:20px; }
.mm-merchandise .mm-shop .mm-merch-cart { padding:24px; border-radius:28px; box-shadow:0 14px 44px #202b4410; }
.mm-merchandise .mm-shop .mm-cart-heading h5 { font-size:25px; }
.mm-merchandise .mm-shop .mm-cart-count { font-size:12px; padding:8px 12px; }
.mm-merchandise .mm-shop .mm-cart-panel { padding:0; border:0; border-radius:0; }
.mm-merchandise .mm-shop .mm-cart-line { gap:12px; padding:16px 0; }
.mm-merchandise .mm-shop .mm-cart-thumbnail { width:56px; height:56px; flex-basis:56px; }
.mm-merchandise .mm-shop .mm-cart-line strong { font-size:14px; }
.mm-merchandise .mm-shop .mm-cart-line small { font-size:12px; }
.mm-merchandise .mm-shop .mm-cart-line span { font-size:14px; }
.mm-merchandise .mm-shop .mm-cart-line button { width:32px; height:32px; font-size:22px; }
.mm-merchandise .mm-shop .mm-cart-total { font-size:13px; }
.mm-merchandise .mm-shop .mm-cart-total strong { font-size:15px; }
.mm-merchandise .mm-shop .mm-cart-note { display:none; }
.mm-merchandise .mm-merch-total > div { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin:12px 0; font-size:13px; color:#6e6e73; }
.mm-merchandise .mm-merch-total strong { color:#1d1d1f; white-space:nowrap; font-weight:600; }
.mm-merchandise .mm-merch-total .mm-merch-grand-total { padding-top:18px; margin:20px 0; border-top:1px solid #e8e8ed; font-size:18px; color:#1d1d1f; }
.mm-merchandise .mm-merch-grand-total strong { font-size:23px; letter-spacing:-.03em; }
.mm-merchandise .mm-merch-checkout { width:100%; }
.mm-merchandise .mm-merch-checkout-hint { margin:12px 0 0; color:#86868b; text-align:center; font-size:12px; line-height:1.6; }
@media(min-width:1100px) {
  .mm-merchandise .mm-shop .mm-shop-layout { grid-template-columns:minmax(0,1fr) 350px; gap:28px; align-items:start; }
  .mm-merchandise .mm-shop .mm-merch-cart { position:sticky; top:calc(var(--mm-menu-height,0px) + var(--mm-menu-top,0px) + 24px); align-self:start; max-height:calc(100dvh - var(--mm-menu-height,0px) - var(--mm-menu-top,0px) - 48px); overflow:auto; scrollbar-width:thin; }
}
@media(min-width:1400px) {
  .mm-merchandise .mm-shop .mm-shop-layout { grid-template-columns:minmax(0,1fr) 380px; gap:32px; }
  .mm-merchandise .mm-shop .mm-shop-products { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:1099px) {
  .mm-merch-verification { grid-template-columns:1fr; }
  .mm-merchandise .mm-shop .mm-merch-cart { position:static; }
}
@media(max-width:640px) {
  .mm-ev-modern .mm-ev-tab-panel[data-panel="merchandise"] { padding:28px 16px 40px; }
  .mm-merch-header { margin-bottom:24px; }
  .mm-merch-header p { font-size:15px; }
  .mm-merch-verification { padding:20px 16px; border-radius:20px; margin-bottom:24px; }
  .mm-merchandise .mm-merch-verify { flex-direction:column; align-items:stretch; }
  .mm-merchandise .mm-shop .mm-shop-products { gap:12px; }
  .mm-merchandise .mm-shop .mm-product { padding:8px; border-radius:20px; }
  .mm-merchandise .mm-shop .mm-product-body { padding:12px 2px 4px; }
  .mm-merchandise .mm-shop .mm-product-body h5 { font-size:15px; }
  .mm-merchandise .mm-shop .mm-product-price { font-size:14px; margin-bottom:14px; }
  .mm-merchandise .mm-shop .mm-merch-cart { padding:20px; border-radius:24px; }
}

/* One registration page, with a separate view for existing participants. */
.mm-registration-flow { width:100%; max-width:1432px; margin:0 auto; scroll-margin-top:calc(var(--mm-menu-height,0px) + var(--mm-menu-top,0px) + 20px); }
.mm-registration-flow > [hidden] { display:none !important; }
.mm-additional-merch-entry { box-sizing:border-box; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:22px 26px; margin:0 0 28px; border:1px solid #e8e8ed; border-radius:22px; background:#f5f5f7; color:#1d1d1f; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.mm-additional-merch-entry strong { font-size:20px; font-weight:600; letter-spacing:-.025em; }
.mm-additional-merch-entry p { margin:6px 0 0; color:#6e6e73; font-size:14px; line-height:1.5; }
.mm-additional-merch-entry button { flex-shrink:0; padding:13px 22px; min-height:48px; border:0; border-radius:999px; background:#5db547; color:#fff; font:inherit; font-size:14px; font-weight:500; cursor:pointer; }
.mm-additional-merch-entry button:hover { background:#438a32; }
.mm-registration-flow .mm-return-registration { display:inline-flex; align-items:center; margin:0 0 24px; padding:10px 0; border:0; background:transparent; color:#438a32; font:inherit; font-size:14px; cursor:pointer; }
.mm-registration-flow :is([data-mm-show-merch],[data-mm-show-registration]):focus-visible { outline:3px solid #5db54780; outline-offset:4px; }
@media(max-width:640px) {
  .mm-additional-merch-entry { flex-direction:column; align-items:stretch; gap:16px; padding:20px; border-radius:20px; }
  .mm-additional-merch-entry button { width:100%; }
}

/* Compact transaction-choice popup. */
.mm-flow-choice { box-sizing:border-box; width:calc(100% - 32px); max-width:460px; max-height:calc(100dvh - 48px); margin:auto; padding:36px; overflow:auto; border:1px solid #e8e8ed; border-radius:24px; background:#fff; color:#1d1d1f; box-shadow:0 24px 80px #0003; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; text-align:center; }
.mm-flow-choice, .mm-flow-choice::backdrop { animation:none !important; transition:none !important; }
.mm-flow-choice::backdrop { background:rgba(15,23,42,.46); -webkit-backdrop-filter:blur(5px); backdrop-filter:blur(5px); }
.mm-flow-choice > h2 { margin:0 0 28px; color:#1d1d1f; font-size:26px; line-height:1.25; letter-spacing:-.035em; font-weight:600; }
.mm-flow-options { display:grid; grid-template-columns:1fr; gap:12px; }
.mm-flow-options > button { display:block; width:100%; min-height:50px; padding:14px 20px; border:1px solid #d2d2d7; border-radius:999px; background:#fff; color:#1d1d1f; text-align:center; font:inherit; font-size:16px; font-weight:500; cursor:pointer; }
.mm-flow-options > button[data-mm-choose="registration"] { border-color:#5db547; background:#5db547; color:#fff; }
.mm-flow-options > button[data-mm-choose="registration"]:hover:not(:disabled) { border-color:#438a32; background:#438a32; }
.mm-flow-options > button[data-mm-choose="merchandise"]:hover { border-color:#86868b; background:#fff; color:#5db547; }
.mm-flow-options > button:focus-visible { outline:3px solid #5db54780; outline-offset:3px; }
.mm-flow-options > button:disabled { opacity:.45; cursor:not-allowed; }
.mm-flow-choice .mm-flow-unavailable { margin:18px 0 0; color:#6e6e73; font-size:13px; line-height:1.5; }
@media(max-width:480px) {
  .mm-flow-choice { padding:28px 24px; border-radius:22px; }
  .mm-flow-choice > h2 { font-size:23px; margin-bottom:24px; }
}

.mm-merch-register-prompt { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 28px; padding:18px 22px; border:1px solid #e8e8ed; border-radius:20px; background:#f5f5f7; color:#6e6e73; font-size:15px; }
.mm-merch-register-prompt button { min-height:44px; padding:11px 22px; border:0; border-radius:999px; background:#5db547; color:#fff; font:inherit; font-weight:500; cursor:pointer; }
.mm-merch-register-prompt button:hover:not(:disabled) { background:#438a32; }
@media(max-width:480px) {
  .mm-merch-register-prompt { padding:16px; gap:12px; }
  .mm-merch-register-prompt button { padding:11px 16px; font-size:14px; }
}

.mm-flow-choice .mm-flow-options > button { position:relative; height:auto; min-height:76px; padding:16px 52px; white-space:normal; }
.mm-flow-choice .mm-choice-icon { position:absolute; left:74px; top:50%; transform:translateY(-50%); width:35px; height:35px; color:inherit; pointer-events:none; }
.mm-flow-choice .mm-flow-options > button > span { display:block; }
.mm-flow-choice .mm-flow-options > button small { position:static; display:block; padding:0; color:inherit; font-size:12px; font-weight:400; line-height:1.5; }
@media(max-width:640px) {
  .mm-flow-choice .mm-flow-options > button { padding:16px 16px 16px 56px; }
  .mm-flow-choice .mm-choice-icon { left:50px; width:45px; height:45px; }
}
