/* =========================================================
   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;
    font-weight: 800;
    margin: 30px 0 8px;
    font-family: Open Sans;
    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;
}

.mm-participant-header {
  padding: 14px 16px;
  font-weight: 900;
  cursor: pointer;
  border-bottom: 1px solid #dbdbdb;
}

.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,
#mmRegApp #mmRegForm 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:focus,
#mmRegApp #mmRegForm 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: #c36;
    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; }

/* 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: 30px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}


/* 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 .mmCatGrid{
  display:grid;
  grid-template-columns:repeat(2,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-img img{
  width:72px;
  height:72px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid #eef2f7;
  display:block;
}

#mmRegApp .mm-cat-title{
    color: #777;
    font-family: Open Sans;
    font-style: normal;
    text-transform: capitalize;
    
}
#mmRegApp .mm-cat-price{
    color: #475569;
    margin-top: 2px;
    font-family: Open sans;
    font-style: normal;
    font-size: 20px;
}

#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-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;
  }
}
