/* ---------- Repeater summary output (inside forms) ---------- */
.jfb-repeater-summary-label{color:#00ffa0 !important;font-weight:600 !important;font-size:13px !important;line-height:1.25 !important;margin:0 0 4px 0 !important;}
.jfb-repeater-summary-value{font-size:14px !important;line-height:1.35 !important;margin:0 !important;}
.jfb-repeater-summary-hr{opacity:.25;margin:12px 0;border:0;border-top:1px solid currentColor;}

/* ---------- Thank You / Order overview cleanup (Eventix) ---------- */
ul.woocommerce-order-overview.woocommerce-thankyou-order-details.order_details.eventix-processed{display:none !important;}

.eventix-order-summary{margin:14px 0 0 0;}
.eventix-order-summary__section{margin:14px 0 0 0;padding-top:12px;border-top:1px solid rgba(255,255,255,.15);}
.eventix-order-summary__section:first-child{margin-top:0;padding-top:0;border-top:0;}
.eventix-order-summary__section-title{margin:0 0 10px 0;font-weight:700;font-size:13px;color:#fff;opacity:.9;text-transform:uppercase;letter-spacing:.02em;}

.eventix-colleague{border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:12px 12px 10px 12px;background:rgba(255,255,255,.03);}
.eventix-colleague__title{margin:0 0 10px 0;font-weight:700;font-size:13px;opacity:.9;}
.eventix-colleague__item{display:grid;grid-template-columns:minmax(140px,200px) 1fr;column-gap:12px;row-gap:4px;margin:0 0 8px 0;}
@media (max-width: 520px){.eventix-colleague__item{grid-template-columns:1fr;}}
.eventix-colleague__k{color:#00ffa0 !important;font-weight:600 !important;font-size:13px !important;line-height:1.25 !important;}
.eventix-colleague__v{font-size:14px !important;line-height:1.35 !important;word-break:break-word;}
.eventix-colleagues{display:grid;grid-template-columns:repeat(2,minmax(240px,1fr));gap:14px 18px;}
@media (max-width: 860px){.eventix-colleagues{grid-template-columns:1fr;}}

/* ---------- Checkout (Astra / Woo order review) ---------- */
/* Hide the raw variations once we render our clean summary */
#ast-order-review-wrapper .eventix-processed-variation{display:none !important;}
#ast-order-review-wrapper .eventix-order-summary{margin:12px 0 0 0;}
#ast-order-review-wrapper .eventix-order-summary__section-title{font-size:12px;}


/* ---------- Checkout width fix (prevents per-letter wrapping) ---------- */
#ast-order-review-wrapper td.product-name .eventix-order-summary{clear:both;display:block;width:100%;max-width:100%;box-sizing:border-box;}
#ast-order-review-wrapper .eventix-colleagues{width:100%;max-width:100%;box-sizing:border-box;}
#ast-order-review-wrapper .eventix-colleague{width:100%;max-width:100%;box-sizing:border-box;}
#ast-order-review-wrapper .eventix-colleague__item{grid-template-columns:170px minmax(0,1fr);}
#ast-order-review-wrapper .eventix-colleague__v{min-width:0;word-break:normal;overflow-wrap:break-word;}


/* ---------- Checkout: force stacked rows to avoid narrow value column ---------- */
#ast-order-review-wrapper .eventix-colleagues{grid-template-columns:1fr !important;}
#ast-order-review-wrapper .eventix-colleague__item{grid-template-columns:1fr !important;row-gap:3px;}
#ast-order-review-wrapper .eventix-colleague__k{margin:0 0 2px 0;}
#ast-order-review-wrapper .eventix-colleague__v{word-break:normal !important;overflow-wrap:anywhere !important;hyphens:none;}





/* ==========================================================
   Checkout (Astra order review) - STABLE layout
   Always stacked rows to prevent narrow table-column wrapping.
   (Thank you / My Account stay untouched.)
   ========================================================== */
#ast-order-review-wrapper td.product-name .eventix-order-summary{clear:both;display:block;width:100%;max-width:100%;box-sizing:border-box;}
#ast-order-review-wrapper .eventix-colleagues{width:100%;max-width:100%;box-sizing:border-box;grid-template-columns:1fr !important;}
#ast-order-review-wrapper .eventix-colleague{width:100%;max-width:100%;box-sizing:border-box;}
#ast-order-review-wrapper .eventix-colleague__item{grid-template-columns:1fr !important;row-gap:3px;}
#ast-order-review-wrapper .eventix-colleague__k{margin:0 0 2px 0;}
#ast-order-review-wrapper .eventix-colleague__v{
  display:block;
  min-width:0;
  max-width:100%;
  white-space:normal;
  word-break:normal !important;
  overflow-wrap:anywhere !important;
  hyphens:none !important;
}


/* ==========================================================
   Astra MOBILE order review wrapper (collapsed summary)
   Apply same Eventix visual rules inside #ast-order-review-content.
   ========================================================== */
#ast-order-review-content .eventix-order-summary{clear:both;display:block;width:100%;max-width:100%;box-sizing:border-box;}
#ast-order-review-content .eventix-colleagues{width:100%;max-width:100%;box-sizing:border-box;grid-template-columns:1fr !important;}
#ast-order-review-content .eventix-colleague{width:100%;max-width:100%;box-sizing:border-box;}
#ast-order-review-content .eventix-colleague__item{grid-template-columns:1fr !important;row-gap:3px;}
#ast-order-review-content .eventix-colleague__k{margin:0 0 2px 0;}
#ast-order-review-content .eventix-colleague__v{
  display:block;
  min-width:0;
  max-width:100%;
  white-space:normal;
  word-break:normal !important;
  overflow-wrap:anywhere !important;
  hyphens:none !important;
}

/* Ensure our order summary doesn't get cramped by Astra toggle layout */
.ast-mobile-order-review-wrap #ast-order-review-content td.product-name{display:block;}
.ast-mobile-order-review-wrap #ast-order-review-content td.product-total{display:block;text-align:left;padding-top:6px;}


/* --- Stronger Astra mobile wrapper overrides (in case Astra CSS wins) --- */
.ast-mobile-order-review-wrap #ast-order-review-content .eventix-order-summary{display:block !important;width:100% !important;max-width:100% !important;}
.ast-mobile-order-review-wrap #ast-order-review-content .eventix-colleagues{grid-template-columns:1fr !important;width:100% !important;max-width:100% !important;}
.ast-mobile-order-review-wrap #ast-order-review-content .eventix-colleague__item{grid-template-columns:1fr !important;}
.ast-mobile-order-review-wrap #ast-order-review-content .eventix-colleague__v{overflow-wrap:anywhere !important;word-break:normal !important;}


/* Checkout: hide default variation list ONLY for registration item (we append Eventix cards server-side) */
#ast-order-review-wrapper tr.eventix-registration-item dl.variation,
.ast-mobile-order-review-wrap tr.eventix-registration-item dl.variation,
#ast-order-review-content tr.eventix-registration-item dl.variation{
  display:none !important;
}


/* ==========================================================
   Astra MOBILE wrapper layout fixes
   - Put product image+name on top
   - Hide quantity and per-item subtotal column
   - Prevent max-height clipping so totals remain visible
   ========================================================== */
@media (max-width: 544px){
  .ast-mobile-order-review-wrap #ast-order-review-content{
    max-height:none !important;
    overflow:visible !important;
  }
  .ast-mobile-order-review-wrap #ast-order-review-content thead{display:none !important;}
  .ast-mobile-order-review-wrap #ast-order-review-content tr.cart_item td{
    display:block !important;
    width:100% !important;
  }
  /* hide per-item subtotal (product-total column) */
  .ast-mobile-order-review-wrap #ast-order-review-content tr.cart_item td.product-total{
    display:none !important;
  }
  /* hide quantity (×1) */
  .ast-mobile-order-review-wrap #ast-order-review-content tr.cart_item strong.product-quantity{
    display:none !important;
  }
  /* ensure product header is stacked nicely */
  .ast-mobile-order-review-wrap #ast-order-review-content .ast-product-image{
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
  }
  .ast-mobile-order-review-wrap #ast-order-review-content .ast-product-thumbnail img{
    width:48px !important;
    height:48px !important;
    object-fit:cover !important;
  }
}
