.jc-wrap { margin: 18px 0; }
.jc-card {
  border: 1px solid #e7e7ea;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}
.jc-header { margin-bottom: 12px; }
.jc-title { font-size: 18px; font-weight: 700; }
.jc-title2 { font-size: 16px; font-weight: 700; }
.jc-sub { font-size: 13px; color: #6b7280; margin-top: 4px; }
.jc-req { color: #ef4444; }

.jc-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.jc-grid-2 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .jc-grid-2 { grid-template-columns: 1fr 1fr; } }

.jc-field { display: flex; flex-direction: column; gap: 8px; }
.jc-label { font-size: 13px; font-weight: 600; color: #111827; }
.jc-input, .jc-select {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 0 12px;
  outline: none;
}
.jc-input:focus, .jc-select:focus { border-color: #111827; }

.jc-radio, .jc-check { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; }
.jc-radio input, .jc-check input { margin-right: 6px; }

/* Pricing badges for option list */
.jc-check .jc-opt{display:flex;align-items:center;gap:8px;flex:1;min-width:220px}
.jc-check .jc-opt{justify-content:space-between}
.jc-opt-label{flex:1}
.jc-opt-price{font-size:12px;opacity:.85;white-space:nowrap}
.jc-opt-price.jc-hide{display:none}

/* Pricing hint box */
.jc-pricing-hint{margin-top:10px;padding:10px;border:1px solid #e5e7eb;border-radius:10px;background:#fafafa}
.jc-pricing-title{font-weight:600;margin-bottom:6px}
.jc-pricing-lines{display:flex;flex-direction:column;gap:4px;font-size:13px}
.jc-pricing-line{display:flex;justify-content:space-between;gap:10px}
.jc-pricing-total{margin-top:8px;font-weight:700;display:flex;justify-content:space-between}
.jc-pricing-note{margin-top:6px;font-size:12px;opacity:.85}

.jc-inline { margin-top: 6px; }
.jc-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.jc-switch input { transform: translateY(1px); }

.jc-divider { border-top: 1px solid #eef2f7; margin: 14px 0; }
.jc-hide { display: none !important; }

.jc-player-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.jc-pill {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
}

.jc-accordion {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 10px;
}
.jc-acc-head {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  background: #f9fafb;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}
.jc-acc-body { padding: 14px; background: #fff; }
.jc-acc-status {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-weight: 600;
}
.jc-acc-status[data-status="complete"] {
  border-color: #10b981;
  color: #065f46;
  background: #ecfdf5;
}
.jc-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.jc-note {
  font-size: 13px;
  color: #6b7280;
  padding: 12px 0;
}
.jc-row { margin-bottom: 10px; }
.jc-mt { margin-top: 10px; }


.jc-actions { margin-top: 12px; display: flex; justify-content: flex-end; }
.jc-actions .button { border-radius: 10px; }

.jc-total { margin-top: 8px; font-size: 13px; color: #111827; font-weight: 600; }

.jc-quote { margin-top: 14px; }
.jc-quote-inner {
  border: 1px dashed #d1d5db;
  border-radius: 14px;
  padding: 14px;
  background: #fafafa;
}
.jc-quote-title { font-weight: 800; font-size: 14px; }
.jc-quote-text { margin-top: 6px; font-size: 13px; color: #4b5563; }
.jc-quote-btn { margin-top: 10px; }

.jc-warning{
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #fca5a5;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  font-weight: 600;
}

/* ------------------------------------------------------------
   Cart/Checkout rendering (keep customer-facing output clean)
------------------------------------------------------------- */
.jc-cart-details { margin-top: 8px; }
.jc-cart-details__toggle {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.jc-cart-details__summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 13px;
  background: #f9fafb;
}
/* Hide default marker (Chrome/Safari) */
.jc-cart-details__summary::-webkit-details-marker { display:none; }
.jc-cart-details__body { padding: 12px; }

/* Make the formatter's tables look good on cart */
.jc-cart-details .jc-summary table { width: 100%; border-collapse: collapse; }
.jc-cart-details .jc-summary td,
.jc-cart-details .jc-summary th { border: 1px solid #e5e7eb; padding: 6px 8px; }
.jc-cart-details .jc-summary thead th { background: #f9fafb; font-weight: 700; }
.jc-cart-details .jc-summary ul { margin: 0 0 0 18px; }

/* Keep images tidy if theme changes table styles */
.jc-cart-details img { max-width: 70px; height: auto; border-radius: 8px; }

/* Clean summary layout (matches requested cart design) */
.jc-summary--clean { font-size: 14px; line-height: 1.6; color: #111827; }
.jc-summary-section { padding: 4px 0; }
.jc-summary-title { font-size: 20px; font-weight: 800; margin: 0 0 10px; }
.jc-summary-row { display: flex; gap: 10px; padding: 3px 0; }
.jc-summary-row .jc-k { min-width: 190px; font-weight: 700; color: #111827; }
.jc-summary-row .jc-v { color: #111827; }
.jc-summary-divider { height: 1px; background: #e5e7eb; margin: 14px 0; }


/* Preview */
.jc-preview {
  margin-top: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  padding: 12px;
}
.jc-preview-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px;
}
.jc-preview-head {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.jc-preview-kv {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.jc-preview-body {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 10px;
  max-height: 260px;
  overflow: auto;
}
.jc-preview-line {
  padding: 8px 6px;
  border-bottom: 1px dashed #eef2f7;
  font-size: 13px;
}
.jc-preview-line:last-child { border-bottom: 0; }

.jc-disabled { opacity: 0.55; }

/* Quote Modal */
body.jc-modal-open { overflow: hidden; }
.jc-modal { position: fixed; inset: 0; z-index: 99999; }
.jc-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(17, 24, 39, 0.55);
}
.jc-modal-card {
  position: relative;
  width: min(560px, calc(100vw - 28px));
  margin: 7vh auto 0;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 55px rgba(0,0,0,0.20);
  padding: 14px 14px 12px;
}
.jc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f7;
}
.jc-modal-title { font-size: 16px; font-weight: 800; }
.jc-modal-x {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.jc-modal-intro { margin: 10px 0 0; font-size: 13px; color: #4b5563; }
.jc-modal-form { margin-top: 12px; }
.jc-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }
.jc-modal-msg { margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: 13px; }
.jc-msg-error { border: 1px solid #fca5a5; background: #fef2f2; color: #991b1b; }
.jc-msg-success { border: 1px solid #86efac; background: #f0fdf4; color: #166534; }

/* Production option helpers */
.jc-radio--stack { flex-direction: column; gap: 10px; }
.jc-help { font-size: 12px; color: #6b7280; line-height: 1.35; }
.jc-help strong { color: #111827; }


/* Enhanced customer-friendly preview */
.jc-preview {
  margin-top: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f8fafc;
  padding: 14px;
}
.jc-preview-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 4px;
}
.jc-preview-sub {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
}
.jc-preview-head {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.jc-preview-stat {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.jc-preview-stat__label {
  font-size: 12px;
  color: #6b7280;
}
.jc-preview-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.jc-preview-section {
  display: block;
}
.jc-preview-section--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.jc-preview-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
}
.jc-preview-panel__label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.jc-preview-panel__value {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}
.jc-preview-logo-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.jc-preview-logo-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.jc-preview-logo-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}
.jc-preview-player-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.jc-preview-player {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}
.jc-preview-player__title {
  font-weight: 700;
  margin-bottom: 6px;
}
.jc-preview-player__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 13px;
  color: #374151;
}
.jc-preview-empty {
  font-size: 13px;
  color: #6b7280;
}
.jc-preview-pricing {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jc-preview-pricing__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}
.jc-preview-pricing__row--total {
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
  font-weight: 800;
}

/* Cleaner cart/order summary card */
.jc-cart-details {
  margin-top: 12px;
}
.jc-cart-details__toggle {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.jc-cart-details__summary {
  list-style: none;
  cursor: pointer;
  padding: 0 0 8px;
  font-weight: 700;
  font-size: 13px;
  background: transparent;
  color: #4b5563;
}
.jc-order-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}
.jc-order-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.jc-order-card__title {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}
.jc-order-card__meta {
  font-size: 12px;
  color: #6b7280;
}
.jc-order-simple__row,
.jc-order-pricing__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.jc-order-section + .jc-order-section {
  margin-top: 12px;
}
.jc-order-label {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 8px;
}
.jc-order-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.jc-order-badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef6df;
  border: 1px solid #d9e8b7;
  font-size: 12px;
  font-weight: 700;
  color: #486313;
}
.jc-order-section--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.jc-order-info-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  background: #f9fafb;
}
.jc-order-value {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}
.jc-order-logo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.jc-order-logo-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.jc-order-logo-item img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}
.jc-order-help {
  font-size: 12px;
  color: #6b7280;
}
.jc-order-players {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.jc-order-player {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}
.jc-order-player__title {
  font-weight: 700;
  margin-bottom: 6px;
}
.jc-order-player__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 13px;
  color: #374151;
}
.jc-order-pricing {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jc-order-pricing__row--total {
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
  font-weight: 800;
}

@media (max-width: 767px) {
  .jc-preview-head,
  .jc-preview-section--split,
  .jc-order-section--split {
    grid-template-columns: 1fr;
  }

  .jc-order-card__header {
    flex-direction: column;
  }
}
