/* ─────────────────────────────────────────────
   customize.css
   Shared styles for all /customize/* routes
   ───────────────────────────────────────────── */

/* ── Fonts ─────────────────────────────────── */
@font-face {
  font-family: 'ScriptFont';
  src: url('https://cdn-zeptoapps.com/product-personalizer/font/white-coat-manila.myshopify.com/Leckerlione-regular.ttf?v=12341774346549') format('truetype');
  font-weight: normal;
  font-style: normal;
}
*{
  font-family: Arial, sans-serif;
}
/* ── Layout ─────────────────────────────────── */
header{
	display:flex;
	justify-content: center;
	width: 100%;
	padding: 20px 0;
}
header img{
	height: 20px;
}
.cust-page {
  max-width: 580px;
  margin: 60px auto;
  font-family: Arial, sans-serif;
  padding: 0 20px;
}
.cust-list{ 
    max-height: 50vh;
    overflow-y: auto;
}
.cust-product-list{
  width:55%;
}
.cust-qr-codes{
  display: flex;
  gap: 20px;
  align-content:center;
  text-align:center;
}
.cust-qr{
  flex: 1;
}
.cust-qr img{
  width: 100%;
  margin-top: 10px;
}
.cust-page--wide {
  max-width: 1200px;
  margin: 0 auto;
	margin-top: 30px;
  font-family: Arial, sans-serif;
  padding: 0 20px;
  display:flex;
  gap: 50px;
  flex-direction: row-reverse;
}

.cust-page--narrow {
  max-width: 480px;
  margin: 80px auto;
  font-family: Arial, sans-serif;
  padding: 0 20px;
  text-align: center;
}

.cust-page--form {
  max-width: 480px;
  margin: 80px auto;
  font-family: Arial, sans-serif;
  padding: 0 20px;
}

/* ── Typography ─────────────────────────────── */
.cust-page h1 {
  font-size: 24px;
  margin-bottom: 6px;
}

.cust-page--wide h1 {
  font-size: 24px;
}

.cust-page--form h1 {
  font-size: 26px;
  margin-bottom: 8px;
}

.cust-subtitle {
  color: #888;
  font-size: 13px;
  margin-bottom: 6px;
}

.cust-meta {
  color: #666;
  font-size: 14px;
  margin-bottom: 24px;
}
.cust-summary{
  flex: 1
}
.cust-back-link {
  font-size: 13px;
  color: #666;
  text-decoration: none;
  display: block;
  margin-bottom: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.cust-back-link:hover {
  color: #000;
}

.cust-section-label {
  font-size: 11px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

/* ── Warning banner ─────────────────────────── */
.cust-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 32px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cust-warning__icon {
  font-size: 22px;
  line-height: 1;
}

.cust-warning__title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.cust-warning__body {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

/* ── Error & alert states ───────────────────── */
.cust-error {
  color: #e53e3e;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}

.cust-error--inline {
  color: #e53e3e;
  font-size: 12px;
  margin-bottom: 4px;
}

.cust-error--field {
  color: #e53e3e;
  font-size: 12px;
  margin-top: 2px;
}

.cust-error--global {
  color: #e53e3e;
  font-size: 13px;
  margin-top: 8px;
  margin-bottom: 4px;
}

.cust-alert-form {
  background: #fff0f0;
  border: 1px solid #f5c2c2;
  color: #c0392b;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
}

/* ── Inputs ─────────────────────────────────── */
.cust-input {
  padding: 9px 11px;
  width: 100%;
  font-size: 14px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 4px;
  font-family: Arial, sans-serif;
  outline: none;
}

.cust-input:focus {
  border-color: #888;
}

.cust-input--error {
  border-color: #e53e3e;
}

/* Text preview typography applied dynamically via JS */
.cust-input--script {
  font-family: 'ScriptFont', cursive;
  font-style: italic;
}

.cust-input--bold {
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.cust-input--uppercase {
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cust-input--titlecase {
  /* Title case is handled in JS, no CSS needed */
}

.cust-input--lowercase {
  text-transform: lowercase;
}

.cust-char-counter {
  text-align: right;
  font-size: 11px;
  margin-top: 3px;
  color: #999;
  height: 0;
}

.cust-char-counter--limit {
  color: #e53e3e;
}

.cust-label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 14px;
}
.cust-label--checkbox  {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── Buttons — base ──────────────────────────── */
.cust-btn {
  padding: 11px 28px;
  font-size: 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: Arial, sans-serif;
}

.cust-btn--primary {
  background: #000;
  color: #fff;
  width: 100%;
  margin-top: 8px;
}

.cust-btn--primary:hover {
  background: #222;
}

.cust-btn--submit {
  background: #000;
  color: #fff;
  width: 100%;
  margin-top: 24px;
  padding: 11px 28px;
  font-size: 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.cust-btn--submit:disabled,
.cust-btn--submit--loading {
  background: #999;
  cursor: not-allowed;
}

.cust-btn--submit--saved {
  background: #2a9d2a;
}

.cust-btn--outline {
  flex: 1;
  padding: 12px 0;
  font-size: 15px;
  background: #fff;
  color: #000;
  border: 2px solid #000;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.cust-btn--confirm {
  flex: 2;
  padding: 12px 0;
  font-size: 15px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.cust-btn--confirm:disabled {
  background: #999;
  cursor: not-allowed;
}

.cust-btn--ghost {
  padding: 8px 12px;
  font-size: 13px;
  background: none;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  color: #666;
  white-space: nowrap;
  font-family: Arial, sans-serif;
}

.cust-btn--ghost:hover {
  border-color: #999;
  color: #333;
}

/* ── Toggle / pill buttons ───────────────────── */
.cust-toggle-btn {
  padding: 7px 14px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: Arial, sans-serif;
}

.cust-toggle-btn--selected {
  border: 2px solid #000;
  background: #000;
  color: #fff;
  font-weight: 600;
}

.cust-toggle-btn--error {
  border-color: #e53e3e;
}

/* ── Font case/style toggle buttons ──────────── */
.cust-font-btn {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.15s;
  font-family: Arial, sans-serif;
}

.cust-font-btn--selected {
  border: 2px solid #000;
  background: #000;
  color: #fff;
}

.cust-font-btn--error {
  border-color: #e53e3e;
}

.cust-font-btn--script {
  font-family: 'ScriptFont', cursive;
  font-style: italic;
}

.cust-font-btn--bold {
  font-weight: 700;
  font-style: normal;
}

.cust-font-group {
  display: flex;
  gap: 24px;
  margin-top: 6px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.cust-font-group__label {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}

.cust-font-group__row {
  display: flex;
  gap: 6px;
}

/* ── Mode toggle (logo picker) ───────────────── */
.cust-mode-btn {
  flex: 1;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
  font-family: Arial, sans-serif;
}

.cust-mode-btn--active {
  border: 2px solid #000;
  background: #000;
  color: #fff;
}

/* ── Thread color swatches ───────────────────── */
.cust-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: box-shadow 0.15s;
}

.cust-swatch--selected {
  box-shadow: 0 0 5px 1px #000;
}

.cust-swatch--light {
  border: 1px solid #ccc;
}

.cust-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
}

.cust-swatches--error {
  padding: 8px;
  border: 1px solid #e53e3e;
  border-radius: 6px;
}

.cust-swatch-selected-label {
  font-size: 12px;
  color: #555;
  margin-top: 6px;
}

/* ── Logo picker grid ────────────────────────── */
.cust-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.cust-logo-upload-grid{
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cust-logo-grid.cust-logo-upload-grid:has(.cust-logo-btn--selected) .cust-logo-btn:not(.cust-logo-btn--selected){
  opacity:0.2;
}

.cust-logo-grid.cust-logo-upload-grid:has(.cust-logo-btn--selected) .cust-logo-btn:not(.cust-logo-btn--selected) img{
  filter:blur(5px)
}
.cust-logo-upload-grid .cust-logo-btn__name{
  font-size: 12px;
}

.cust-logo-btn {
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: border 0.15s;
  font-family: Arial, sans-serif;
  /* width: 108px; */
}

.cust-logo-btn--selected {
  border: 2px solid #000;
  background: #f0f0f0;
}

.cust-logo-btn img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 4px;
}
.cust-logo-search{
  margin-bottom: 20px;
}
.cust-logo-section .cust-empty{
  font-size: 12px;
}
.cust-logo-btn__name {
  font-size: 8px;
  color: #444;
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.cust-logo-btn__check {
  font-size: 11px;
  font-weight: 700;
  color: #000;
}

.cust-logo-upload-info {
  font-size: 12px;
  color: #555;
  margin-top: 6px;
}

/* ── Tabs ────────────────────────────────────── */
.cust-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 4px;
  gap: 4px;
}

.cust-tab {
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: #888;
  transition: color 0.15s;
  font-family: Arial, sans-serif;
}

.cust-tab--active {
  border-bottom: 2px solid #000;
  color: #000;
}

/* ── Section heading ─────────────────────────── */
.cust-section-heading {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
  /* margin-top: 12px; */
}

.cust-section-heading__error {
  font-weight: 400;
  font-size: 12px;
  margin-left: 8px;
  color: #e53e3e;
}

/* ── Review cards ────────────────────────────── */
.cust-review-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  background: #fafafa;
}

.cust-review-card__title {
  font-size: 15px;
}

.cust-review-card__variant {
  color: #555;
  font-size: 14px;
}

.cust-review-card__unit {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.cust-review-card__header {
  margin-bottom: 14px;
}

/* ── Order item cards ────────────────────────── */
.cust-item-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fff;
}

.cust-item-card--over-cap {
  border: 2px solid #e53e3e;
  background: #fff5f5;
}
input:disabled,
.cust-font-btn:disabled {
  background: #e1e1e1;
  border-color: #999;
  color: #cfcfcf;
  cursor: not-allowed;
}

input:disabled::placeholder {
  color: #cfcfcf;
}
.cust-item-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.cust-review-card__meta{
  flex: 1;
}
.cust-review-card{
  display:flex;
  gap: 12px;
}

.cust-item-card__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cust-item-card__unit {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

.cust-item-card__badge {
  margin-left: 8px;
  background: #e8f4fd;
  color: #1a6fa8;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.cust-item-card__over-label {
  margin-left: 8px;
  color: #e53e3e;
  font-size: 12px;
  font-weight: 600;
}

/* ── Customization preview (inside item card) ── */
.cust-preview {
  margin-top: 12px;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 10px 14px;
}

.cust-preview--over-cap {
  background: #fff0f0;
}

.cust-preview__status {
  font-size: 12px;
  font-weight: bold;
  color: #4a4a4a;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cust-preview__status--over {
  color: #e53e3e;
}

.cust-preview__field {
  font-size: 13px;
  margin-bottom: 2px;
}

.cust-preview__meta {
  color: #888;
  font-size: 12px;
}

/* ── Embroidery slot counters ────────────────── */
.cust-slots {
  margin-bottom: 24px;
}

.cust-slots__heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 10px;
}

.cust-slots__row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cust-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  width: 100%;
  max-width: calc((100% / 2) - 50px);
}
.cust-item-card__image{
    width: 100px;
    height: 100px;
    object-fit: scale-down;
}
.custom-item-card__details{
    flex: 1;
    padding-right: 10px;
}
.cust-slot--ok      { background: #f7faff; border: 1px solid #bee3f8; }
.cust-slot--full    { background: #f0fff4; border: 1px solid #c6f6d5; }
.cust-slot--over    { background: #fff5f5; border: 1px solid #fed7d7; }


.cust-group{
  background: #fbfbfb;
  border: 1px solid #DDDDDD;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 10px;
}
.cust-slot__dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.cust-slot__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ddd;
  transition: background 0.2s;
  flex-shrink: 0;
}

.cust-slot__dot--filled-ok   { background: #1a6fa8; }
.cust-slot__dot--filled-full { background: #2a9d2a; }
.cust-slot__dot--filled-over { background: #e53e3e; }

.cust-slot__type {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 1px;
}

.cust-slot__type--ok   { color: #1a6fa8; }
.cust-slot__type--full { color: #2a9d2a; }
.cust-slot__type--over { color: #e53e3e; }

.cust-slot__count {
  font-size: 12px;
  color: #666;
}

/* ── No-embroidery / empty notices ──────────── */
.cust-notice {
  padding: 16px 20px;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  color: #555;
  margin-bottom: 24px;
}

.cust-empty {
  color: #888;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 24px;
}

/* ── Customize link / Edit button ────────────── */
.cust-link {
  background: #000;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.cust-link--edit {
  background: #4a4a4a;
}

.cust-link:hover {
  opacity: 0.85;
}

/* ── Submit area ─────────────────────────────── */
.cust-submit-area {
  margin-top: 24px;
  padding: 20px;
  background: #f0f0f0;
  border-radius: 8px;
  text-align: center;
}

.cust-submit-btn {
  padding: 12px 32px;
  font-size: 16px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: Arial, sans-serif;
}

.cust-submit-btn:disabled {
  cursor: not-allowed;
}

.cust-submit-btn--over     { background: #e53e3e; }
.cust-submit-btn--incomplete { background: #d97706; }
.cust-submit-btn--loading  { background: #999; }

/* Cap error banner */
.cust-cap-error {
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 14px;
  text-align: left;
}

.cust-cap-error--over {
  color: #e53e3e;
  background: #fff5f5;
  border: 1px solid #fed7d7;
}

.cust-cap-error--incomplete {
  color: #d97706;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

/* ── CTA row (review page) ───────────────────── */
.cust-cta-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* ── Success page ────────────────────────────── */
.cust-success__icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.cust-success__link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 24px;
  background: #000;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}

.cust-success__link:hover {
  background: #222;
}

/* ── Placement section ───────────────────────── */
.cust-placement {
  /* margin-bottom: 18px; */
}

.cust-placement__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Logo section ────────────────────────────── */
.cust-logo-section {
  margin-bottom: 18px;
}

.cust-logo-mode-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

/* ── Section divider (Front/Back tabs) ───────── */
.cust-embro-section {
  padding-top: 20px;
}

/* .cust-field-group {
  margin-bottom: 14px;
} */

/* ── Variant label ───────────────────────────── */
.cust-variant {
  color: #555;
}



.cust-signature-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.cust-signature-modal__content {
  background: #fff;
  
  width: 500px;
  border-radius: 12px;
  padding: 24px;
}

.cust-signature-warning {
  margin: 12px 0 18px;
  line-height: 1.5;
}

.cust-signature-canvas {
  width: 500px;
  height: 200px;
  border: 2px dashed #bbb;
  border-radius: 8px;
  background: #fff;

  touch-action: none;
  -webkit-user-select: none;
  user-select: none;

  display: block;
}

.cust-signature-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  gap: 12px;
}

/* ── Modal overlay ─────────────────────────────────────────────────────── */
.cust-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9999;
  padding: 16px;
}

/* ── Modal container ───────────────────────────────────────────────────── */
.cust-modal {
  width: min(560px, 100%);
  max-height: 80vh;

  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);

  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Header ────────────────────────────────────────────────────────────── */
.cust-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 20px 20px 16px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.cust-modal__header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin: 0;
  letter-spacing: -0.02em;
}

.cust-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  color: #555;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.cust-modal__close:hover {
  background: #f0f0f0;
  border-color: #ccc;
}

/* ── Search input wrapper ──────────────────────────────────────────────── */
.cust-modal__search-wrap {
  padding: 14px 20px 10px;
  flex-shrink: 0;
  border-bottom: 1px solid #f0f0f0;
}

.cust-modal__search-wrap .cust-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fafafa;
  color: #111;
  box-sizing: border-box;
}
.cust-modal__search-wrap .cust-input:focus {
  border-color: #111;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* ── Product list (scrollable body) ───────────────────────────────────── */
.cust-product-list {
  overflow-y: auto;
  padding: 12px 16px 16px;
  flex: 1;
  min-height: 0;
}

/* ── Empty / hint states ───────────────────────────────────────────────── */
.cust-modal__hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 20px;
  color: #999;
  font-size: 14px;
  text-align: center;
}
.cust-modal__hint svg {
  opacity: 0.3;
}

/* ── Product row ───────────────────────────────────────────────────────── */
.cust-product-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 10px 12px;
  border: 1.5px solid #ebebeb;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  margin-bottom: 8px;

  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.cust-product-row:last-child {
  margin-bottom: 0;
}
.cust-product-row:hover {
  border-color: #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  background: #fafafa;
}

.cust-product-row__image {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #f5f5f5;
}

.cust-product-row__info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin-bottom: 2px;
}

/* ── Selected product preview ──────────────────────────────────────────── */
.cust-product-picker__selected {
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  background: #fafafa;
  font-size: 14px;
}

.cust-modal {
  box-sizing: border-box;
  width: min(560px, 92vw); /* was min(560px, 100%) — 100% includes scrollbar */
}

.cust-modal__search-wrap .cust-input {
  box-sizing: border-box;
  width: 100%;
}

.cust-product-list {
  box-sizing: border-box;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden; /* ← prevents horizontal bleed */
}

.cust-product-row {
  box-sizing: border-box;
  width: 100%;
}

/* ── Modal table header ────────────────────────────────────────────────── */
.cust-modal__table-header {
  display: flex;
  justify-content: space-between;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

/* ── Product group ─────────────────────────────────────────────────────── */
.cust-product-group {
  border-bottom: 1px solid #f0f0f0;
}
.cust-product-group:last-child {
  border-bottom: none;
}

.cust-product-group__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 8px;
}

.cust-product-group__image {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #f5f5f5;
  border: 1px solid #eee;
}

.cust-product-group__title {
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

/* ── Variant row ───────────────────────────────────────────────────────── */
.cust-variant-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 32px;
  cursor: pointer;
  border-top: 1px solid #f5f5f5;
  transition: background 0.1s;
}
.cust-variant-row:hover {
  background: #f9f9f9;
}
.cust-variant-row--selected {
  background: #f0f7ff;
}

.cust-variant-row__radio {
  accent-color: #111;
  flex-shrink: 0;
}

.cust-variant-row__name {
  flex: 1;
  font-size: 14px;
  color: #333;
}

.cust-variant-row__price {
  font-size: 13px;
  color: #555;
  white-space: nowrap;
}

/* ── Modal footer ──────────────────────────────────────────────────────── */
.cust-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid #eee;
  flex-shrink: 0;
  background: #fff;
}

.cust-modal__footer-count {
  font-size: 13px;
  color: #555;
}

.cust-modal__footer-actions {
  display: flex;
  gap: 10px;
}

.cust-modal__cancel {
  padding: 8px 16px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: background 0.15s;
}
.cust-modal__cancel:hover {
  background: #f5f5f5;
}

.cust-modal__done {
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  background: #111;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s;
}
.cust-modal__done:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.cust-modal__done:not(:disabled):hover {
  opacity: 0.85;
}
.cust-btn--secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.cust-btn--secondary::before {
  /* content: "+"; */
  font-size: 16px;
  line-height: 1;
  color: #555;
}
.cust-btn--secondary:hover {
  background: #f5f5f5;
  border-color: #bbb;
}
.cust-product-picker__selected .cust-meta{
 margin-bottom: 0; 
}
.cust-review-card__header--in-image{
  display:none;
}
.cust-list {
  scrollbar-width: thin;
  scrollbar-color: #bdbdbd transparent;
}

/* Chrome, Edge, Safari */
.cust-list::-webkit-scrollbar {
  width: 8px;
}

.cust-list::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

.cust-list::-webkit-scrollbar-thumb {
  background: #bdbdbd;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.cust-list::-webkit-scrollbar-thumb:hover {
  background: #999;
  background-clip: padding-box;
}
@media screen and (max-width:1024px){
  .cust-page--wide{
    gap: 0;
  }
.cust-item-card__row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    grid-template-areas:
      "img details details"
      "img customize customize";
    gap: 8px 16px;
    align-items: start;
  }

  .cust-item-card__row .cust-item-card__image {
    grid-area: img;
    width: 80px;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }

  .custom-item-card__details {
    grid-area: details;
  }

  .cust-item-card__actions {
    grid-area: customize;
  }
  .cust-link{
    width:100%;
    text-align:center;
    max-width: 150px;
  }
  .cust-review-card__header--in-meta{
    display:none
  }
  .cust-review-card__header--in-image{
    display: block;
    flex: 1;
  }

  .cust-review-card__image{
    display: flex;
  }
  .cust-review-card{
    flex-direction: column;
    row-gap: 25px;
  }
}

@media screen and (max-width: 660px) {
  .cust-page--wide {
    flex-direction: column;
    gap: 0px;
    padding: 0 10px;
    margin-top:0;
  }
  .cust-footer-submit{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
  }
  .cust-list{
    padding-bottom: 100px;
  }
  .cust-product-list{
    padding-left:0;
    padding-right:0;
  }
  .cust-review-card__image{
    display: flex;
    gap: 10px;
  }
  .cust-review-card .cust-item-card__image{
    width: auto;
    max-width: 80px;
    height: 80px;
    object-position: left;
  }
  .cust-logo-grid{
    grid-template-columns: repeat(3, 1fr);
  }
  .cust-logo-grid{
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 360px) {
  .cust-logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}