/* 
   TDS Product Configurator  v2.0
   Brand: Navy #0F2044  ·  Red #E63946
   Google Font: DM Sans
    */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

/* Tokens */
:root {
    --n:    #0F2044;   /* navy */
    --n2:   #1a3468;
    --r:    #E63946;   /* red */
    --rb:   #fef1f2;
    --g:    #2D9B6F;   /* green */
    --gb:   #edfaf4;
    --w:    #ffffff;
    --off:  #F5F6F9;
    --bd:   #DDE1EB;
    --t:    #1A1E2A;
    --t2:   #5A617A;
    --t3:   #9BA3B8;
    --rad:  10px;
    --rad2: 16px;
    --sh:   0 1px 3px rgba(15,32,68,.06), 0 6px 24px rgba(15,32,68,.07);
    --tr:   180ms cubic-bezier(.4,0,.2,1);
    --f:    'DM Sans', system-ui, sans-serif;
}

/* Reset & base  */
.tds-cfg *, .tds-cfg *::before, .tds-cfg *::after { box-sizing: border-box; }
.tds-cfg {
    font-family: var(--f);
    color: var(--t);
    font-size: 14px;
    line-height: 1.55;
    margin-top: 24px;
}
.tds-cfg button { font-family: var(--f); cursor: pointer; min-height: inherit; }
.tds-cfg input, .tds-cfg select, .tds-cfg textarea { font-family: var(--f); }

/* Card shell  */
.tds-card {
    background: var(--w);
    border: 1.5px solid var(--bd);
    border-radius: var(--rad2);
    padding: 20px 22px;
    margin-bottom: 14px;
    box-shadow: var(--sh);
}

.tds-card__head {
    display: flex;
    align-items: center;
    /*justify-content: space-between;*/
    margin-bottom: 16px;
	gap: 15px;
}
.tds-card__title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--n);
}
.tds-card__title svg { color: var(--r); }

/* small chip beside title */
.tds-chip {
    font-size: 12px;
    font-weight: 500;
    color: var(--t2);
    background: var(--off);
    border: 1px solid var(--bd);
    border-radius: 20px;
    padding: 3px 11px;
    transition: all var(--tr);
    white-space: nowrap;
}
.tds-chip.has-val { background: var(--rb); color: var(--r); border-color: var(--r); font-weight: 900; }

/* qty badge */
.tds-badge {
    font-size: 12px; font-weight: 700;
    background: var(--n); color: var(--w);
    border-radius: 20px; padding: 3px 12px;
}

/* 
   COLOUR SWATCHES
    */
.tds-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}
.tds-cfg button.tds-swatch {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    background: var(--c, #ccc) !important;   /* CSS var injected by PHP */
    padding: 0;
    position: relative;
    outline: none;
    transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr);
    cursor: pointer;
    flex-shrink: 0;
}
.tds-price-strip .amount {
    color: #a2b1b6;
}
.tds-swatch.is-light { box-shadow: inset 0 0 0 1.5px #c5cad7; }
.tds-swatch:hover { transform: scale(1.18); box-shadow: 0 0 0 3px rgba(15,32,68,.14); }
.tds-swatch.is-active { border-color: var(--n); box-shadow: 0 0 0 3px rgba(15,32,68,.18); }
/* Tick overlay via pseudo — colour set by --tick CSS var */
.tds-swatch::after {
    content: '';
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolyline points='1,5 4.2,8.5 9,1.5' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat;
    opacity: 0;
    border-radius: 50%;
    transition: opacity var(--tr);
}
.tds-swatch[style*="--tick:#111"]::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolyline points='1,5 4.2,8.5 9,1.5' stroke='%23111' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
.tds-swatch.is-active::after { opacity: 1; }

/*
   SIZE GRID
    */
.tds-size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 6px;
    margin-bottom: 16px;
}
.tds-sc {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--off);
    border: 1.5px solid var(--bd);
    border-radius: var(--rad);
    padding: 7px 3px 6px;
    transition: border-color var(--tr), background var(--tr), box-shadow var(--tr);
}
.tds-sc.is-set {
    border-color: var(--n);
    background: #eaeefc;
    box-shadow: 0 0 0 3px rgba(15,32,68,.08);
}
.tds-sc__lbl {
    font-size: 9px; font-weight: 700;
    letter-spacing: .07em; text-transform: uppercase;
    color: var(--t2);
}
.tds-sc.is-set .tds-sc__lbl { color: var(--n); }

/* Qty control — vertical stack: [+] [0] [−] */
.tds-sc__ctrl {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.tds-sc__btn {
    width: 18px; height: 18px;
    border-radius: 50% !important;
    border: 1.5px solid var(--bd);
    background: var(--w) !important;
    color: var(--t2) !important;
    padding: 0 !important;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--tr) !important;
    flex-shrink: 0;
}
.tds-sc__btn:hover { background: var(--n); border-color: var(--n); color: var(--w); }
.tds-sc__btn:active { transform: scale(.88); }

.tds-sc__ctrl input[type=number].tds-sc__in {
    width: 28px; height: 20px;
    text-align: center;
    font-size: 11px; font-weight: 600;
    border: 1.5px solid var(--bd);
    border-radius: 4px;
    background: var(--w);
    color: var(--t);
    -moz-appearance: textfield;
    padding: 0;
}
.tds-sc__in::-webkit-inner-spin-button,
.tds-sc__in::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tds-sc__in:focus { outline: none; border-color: var(--n); }

/* Tier table */
.tds-tier-wrap { overflow-x: auto; margin-bottom: 16px; }
.tds-tier {
    width: 100%; border-collapse: separate; border-spacing: 0;
    font-size: 11.5px;
    border: 1.5px solid var(--bd);
    border-radius: var(--rad); overflow: hidden;
}
.tds-tier th, .tds-tier td {
    padding: 7px 12px; text-align: center;
    border-right: 1px solid var(--bd);
}
.tds-tier th:last-child, .tds-tier td:last-child { border-right: none; }
.tds-tier th {
    text-align: left; font-weight: 700; font-size: 10.5px;
    letter-spacing: .06em; text-transform: uppercase;
    background: var(--off); color: var(--t2);
}
.tds-tier__base  { background: var(--off); color: var(--t2); font-weight: 500; }
.tds-tier__save  { background: var(--gb); color: var(--g); font-weight: 700; }

/* Estimated Total strip */
.tds-price-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--n);
    border-radius: var(--rad);
    padding: 14px 18px;
    gap: 12px;
    flex-wrap: wrap;
}
.tds-price-strip__label {
    font-size: 10px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: rgba(255,255,255,.55);
    display: block;
}
.tds-price-strip__sub {
    font-size: 11px; color: rgba(255,255,255,.5); margin-top: 2px;
}
.tds-price-strip__right {
    display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap;
    justify-content: flex-end;
}
.tds-price-strip__unit {
    font-size: 17px; font-weight: 700; color: var(--w);
}
.tds-price-strip__unit small {
    font-size: 11px; font-weight: 400; color: rgba(255,255,255,.5);
}
.tds-price-strip__mult,
.tds-price-strip__eq { font-size: 13px; color: rgba(255,255,255,.4); }
.tds-price-strip__qty { font-size: 13px; color: rgba(255,255,255,.65); }
.tds-price-strip__total {
    font-size: 22px; font-weight: 800; color: var(--w);
    background: rgba(255,255,255,.12);
    padding: 2px 10px; border-radius: 6px;
}
.tds-price-strip__total strong { font-weight: 800; }

/* 
   STEP PROGRESS BAR
    */
.tds-prog {
    display: flex;
    align-items: flex-start;
    margin-bottom: 28px;
    padding: 0 2px;
}
.tds-prog__dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
    flex-shrink: 0;
}
.tds-prog__n, .tds-prog__chk {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bd);
    background: var(--w);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: var(--t3);
    transition: all var(--tr);
}
.tds-prog__chk { display: none; position: absolute; top: 0; }
.tds-prog__name {
    font-size: 10px; font-weight: 600; color: var(--t3);
    letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}

/* Active */
.tds-prog__dot.is-active .tds-prog__n {
    background: var(--r); border-color: var(--r);
    color: var(--w); box-shadow: 0 0 0 4px rgba(230,57,70,.15);
}
.tds-prog__dot.is-active .tds-prog__name { color: var(--r); }

/* Done */
/*.tds-prog__dot.is-done .tds-prog__n    { display: none; }*/
.tds-prog__dot.is-done .tds-prog__chk  {
    display: flex;
    background: var(--g); border-color: var(--g); color: var(--w);
}
.tds-prog__dot.is-done .tds-prog__name { color: var(--g); }
.tds-prog__dot.is-done, .tds-prog__dot.is-reachable { cursor: pointer; }
.tds-prog__dot.is-done:hover .tds-prog__chk { box-shadow: 0 0 0 4px rgba(45,155,111,.18); }

.tds-prog__line {
    flex: 1;
    height: 2px;
    background: var(--bd);
    align-self: flex-start;
    margin: 15px 5px 0;
    border-radius: 2px;
    transition: background var(--tr);
}
.tds-prog__line.is-done { background: var(--g); }

/* 
   STEP PANELS
    */
.tds-steps-card { padding: 22px; }

.tds-panel { animation: tds-in 200ms ease both; }
@keyframes tds-in { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }

.tds-panel__nav {
    display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.tds-panel__title {
    margin: 0 0 4px;
    font-size: 16px; font-weight: 800; color: var(--n);
}
.tds-panel__nav .tds-panel__title { margin: 0; }
.tds-panel__sub {
    margin: 0 0 20px;
    font-size: 13px; color: var(--t2); line-height: 1.55;
}

/* Back button */
.tds-back {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 600; color: var(--t2);
    background: var(--off); border: 1.5px solid var(--bd);
    border-radius: 20px; padding: 5px 13px 5px 9px;
    transition: all var(--tr); flex-shrink: 0;
}
.tds-back:hover { border-color: var(--n); color: var(--n); background: #edf0f8; }

/* Primary action button */
.tds-btn-primary {
    display: inline-flex; align-items: center; gap: 7px;
    margin-top: 18px;
    font-size: 14px; font-weight: 700; color: var(--w);
    background: var(--n);
    border: none; border-radius: 10px;
    padding: 11px 22px;
    transition: all var(--tr);
}
.tds-btn-primary:hover { background: var(--n2); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(15,32,68,.2); }
.tds-btn-primary:active { transform: none; }
.tds-btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Instructions card */
.tds-instructions-body { padding: 0 18px 14px; }
.tds-instructions-field {
    width: 100%; box-sizing: border-box;
    border: 1.5px solid var(--bd);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px; font-family: inherit; color: var(--t);
    resize: vertical; min-height: 56px;
    transition: border-color var(--tr);
}
.tds-instructions-field:focus {
    outline: none; border-color: var(--r);
    box-shadow: 0 0 0 3px rgba(230,57,70,.1);
}
.tds-char-hint { font-size: 12px; color: var(--t2); text-align: right; margin-top: 4px; }

/* Help bar */
.tds-help-bar {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    background: var(--off); border: 1.5px solid var(--bd);
    border-radius: var(--rad2); padding: 12px 18px; margin-bottom: 12px;
}
.tds-help-bar__label { font-weight: 700; color: var(--t); font-size: 14px; flex-shrink: 0; }
.tds-help-bar__btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px; border-radius: 8px;
    font-size: 13px; font-weight: 600; text-decoration: none;
    transition: all var(--tr);
}
.tds-help-bar__btn--call { background: var(--r); color: #fff; }
.tds-help-bar__btn--call:hover { background: var(--n2); color: #fff; transform: translateY(-1px); }
.tds-help-bar__btn--mail { background: #fff; color: var(--t); border: 1.5px solid var(--bd); }
.tds-help-bar__btn--mail:hover { border-color: var(--r); color: var(--r); transform: translateY(-1px); }

/* Method cards */
.tds-method-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.tds-method { cursor: pointer; }
.tds-method input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.tds-method__card {
    position: relative;
    border: 2px solid var(--bd); border-radius: var(--rad);
    padding: 22px 16px 18px;
    background: var(--off);
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 8px;
    transition: all var(--tr);
    min-height: 150px;
    justify-content: center;
}
.tds-method:hover .tds-method__card { border-color: var(--n); background: #edf0f8; }
.tds-method input:checked + .tds-method__card {
    border-color: var(--r); background: var(--rb);
    box-shadow: 0 0 0 3px rgba(230,57,70,.1);
}
.tds-method__icon { color: var(--n); line-height: 0; }
.tds-method input:checked + .tds-method__card .tds-method__icon { color: var(--r); }
.tds-method__name { font-size: 15px; font-weight: 800; color: var(--t); }
.tds-method__desc { font-size: 12px; color: var(--t2); line-height: 1.45; }
.tds-method__check {
    position: absolute; top: 10px; right: 10px;
    color: var(--r); opacity: 0; transition: opacity var(--tr);
}
.tds-method input:checked + .tds-method__card .tds-method__check { opacity: 1; }

/* Location cards */
.tds-loc-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px;
    margin-bottom: 4px;
}
.tds-loc { cursor: pointer; }
.tds-loc input[type=checkbox] { position: absolute; opacity: 0; width: 0; height: 0; }
.tds-loc__card {
    position: relative;
    border: 2px solid var(--bd); border-radius: var(--rad);
    padding: 14px 12px 12px;
    background: var(--off);
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    transition: all var(--tr);
    min-height: 88px;
}
.tds-loc:hover .tds-loc__card { border-color: var(--n); }
.tds-loc.is-checked .tds-loc__card {
    border-color: var(--n); background: #eaeefc;
    box-shadow: 0 0 0 3px rgba(15,32,68,.1);
}
.tds-loc__chk {
    position: absolute; top: 8px; right: 8px;
    width: 18px; height: 18px;
    border-radius: 4px; border: 2px solid var(--bd);
    background: var(--w); color: transparent;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--tr);
}
.tds-loc.is-checked .tds-loc__chk { background: var(--n); border-color: var(--n); color: var(--w); }
.tds-loc__icon { color: var(--n2); line-height: 0; margin-bottom: 2px; }
.tds-loc__name { font-size: 13px; font-weight: 700; color: var(--t); line-height: 1.3; padding-right: 24px; }
.tds-loc__price { font-size: 11px; color: var(--t2); font-variant-numeric: tabular-nums; }
.tds-loc.is-checked .tds-loc__price { color: var(--n); font-weight: 600; }

/* Location tabs (Step 3) */
.tds-loc-tabs {
    display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px;
    border-bottom: 2px solid var(--bd); padding-bottom: 10px;
}
.tds-tab {
    font-size: 12px; font-weight: 600; color: var(--t2);
    background: var(--off); border: 1.5px solid var(--bd);
    border-radius: 20px; padding: 5px 14px;
    transition: all var(--tr);
}
.tds-tab.is-active {
    background: var(--n); color: var(--w); border-color: var(--n);
}
.tds-tab:hover:not(.is-active) { border-color: var(--n); color: var(--n); }

/* Art panel (per location) */
.tds-art-panel { display: none; }
.tds-art-panel.is-active { display: block; animation: tds-in 180ms ease both; }

.tds-art-panel__row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

/* Upload / drop zone */
.tds-drop {
    position: relative;
    border: 2px dashed var(--bd); border-radius: var(--rad);
    background: var(--off); min-height: 130px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; overflow: hidden;
    transition: all var(--tr);
}
.tds-drop:hover, .tds-drop.drag-over { border-color: var(--n); background: #edf0f8; }
.tds-drop.is-done { border-color: var(--g); border-style: solid; background: var(--gb); }
.tds-drop__input {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2;
}
.tds-drop__idle, .tds-drop__prog, .tds-drop__done {
    display: flex; flex-direction: column; align-items: center;
    gap: 7px; padding: 16px; text-align: center;
    pointer-events: none;
}
.tds-drop__idle svg { color: var(--t3); }
.tds-drop__idle strong { font-size: 13px; color: var(--t); }
.tds-drop__hint {
    font-size: 10.5px; color: var(--t3);
    background: var(--w); border: 1px solid var(--bd);
    border-radius: 20px; padding: 2px 10px;
}
/* Progress */
.tds-pbar { width: 100%; height: 5px; background: var(--bd); border-radius: 3px; overflow: hidden; }
.tds-pbar__fill { height: 100%; background: var(--r); border-radius: 3px; width: 0; transition: width 100ms linear; }
.tds-pbar__pct { font-size: 11px; color: var(--t2); font-weight: 600; }
/* Done state */
.tds-drop__done { flex-direction: row; flex-wrap: wrap; justify-content: center; }
.tds-drop__fname { font-size: 12px; font-weight: 500; color: var(--g); word-break: break-all; }
.tds-drop__replace {
    pointer-events: all;
    font-size: 11px; font-weight: 600; color: var(--g);
    background: none; border: 1.5px solid var(--g);
    border-radius: 20px; padding: 2px 10px;
    z-index: 3; position: relative;
    transition: all var(--tr);
}
.tds-drop__replace:hover { background: var(--g); color: var(--w); }
.tds-drop__err {
    margin-top: 6px; padding: 8px 12px; font-size: 12px;
    color: #b91c1c; background: #fef2f2;
    border: 1px solid #fecaca; border-radius: var(--rad);
}

/* Text side */
.tds-text-side { display: flex; flex-direction: column; gap: 10px; }
.tds-field-label {
    font-size: 11px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--t2);
    display: block;
}
.tds-optional { text-transform: none; font-weight: 400; letter-spacing: 0; color: var(--t3); }
.tds-textarea {
    width: 100%; min-height: 80px; resize: vertical;
    border: 1.5px solid var(--bd); border-radius: var(--rad);
    padding: 10px 12px; font-size: 13px; color: var(--t);
    background: var(--off); line-height: 1.5;
    transition: border-color var(--tr);
}
.tds-textarea:focus { outline: none; border-color: var(--n); background: var(--w); }

.tds-char-row { display: flex; justify-content: flex-end; margin-top: -4px; }
.tds-char-ct { font-size: 11px; color: var(--t3); transition: color var(--tr); }
.tds-char-ct.warn { color: var(--r); font-weight: 700; }

.tds-sel-wrap { position: relative; }
.tds-sel-wrap::after {
    content:''; position:absolute; right:11px; top:50%;
    transform:translateY(-50%);
    border:4px solid transparent; border-top:5px solid var(--t2);
    pointer-events:none;
}
.tds-sel {
    width: 100%; border: 1.5px solid var(--bd); border-radius: var(--rad);
    padding: 9px 32px 9px 12px; font-size: 13px; color: var(--t);
    background: var(--off); appearance: none; cursor: pointer;
    transition: border-color var(--tr);
}
.tds-sel:focus { outline: none; border-color: var(--n); }

/* Font preview */
.tds-preview {
    border: 1.5px dashed var(--bd); border-radius: var(--rad);
    padding: 10px 12px; background: var(--w);
}
.tds-preview__lbl {
    display: block; font-size: 10px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--t3); margin-bottom: 4px;
}
.tds-preview__text { font-size: 20px; color: var(--t); word-break: break-word; line-height: 1.4; }

/* Review (Step 4) */
.tds-review { display: flex; flex-direction: column; gap: 0; margin-bottom: 4px; }
.tds-rv-row {
    display: flex; gap: 12px; align-items: baseline;
    padding: 9px 0; border-bottom: 1px solid var(--bd); font-size: 13px;
}
.tds-rv-row:last-child { border-bottom: none; }
.tds-rv-key { font-weight: 700; color: var(--t2); min-width: 110px; flex-shrink: 0; font-size: 12px; }
.tds-rv-val { color: var(--t); }
.tds-rv-file { color: var(--g); font-weight: 500; }
.tds-rv-empty { font-size: 13px; color: var(--t3); font-style: italic; padding: 12px 0; }

.tds-review-total {
    margin-top: 12px; padding: 12px 16px;
    background: var(--off); border-radius: var(--rad);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: var(--t2);
}
.tds-review-total strong { font-size: 20px; font-weight: 800; color: var(--n); }

/* Empty state */
.tds-empty-state {
    font-size: 13px; color: var(--t2);
    background: var(--off); border: 1.5px dashed var(--bd);
    border-radius: var(--rad); padding: 14px 16px;
}
.tds-link { background: none; border: none; color: var(--r); font-weight: 600; text-decoration: underline; cursor: pointer; }

/* Utilities */
.hidden { display: none !important; }

/* Cart meta */
.tds-cart-meta { list-style: none; padding: 0; margin: 5px 0 0; font-size: 12px; }
.tds-cart-meta li { display: flex; gap: 6px; padding: 2px 0; }
.tds-cart-meta-key { font-weight: 600; color: #666; flex-shrink: 0; }

/* Responsive */
@media (max-width: 640px) {
    .tds-method-grid  { grid-template-columns: 1fr; }
    .tds-loc-grid     { grid-template-columns: 1fr 1fr; }
    .tds-size-grid    { grid-template-columns: repeat(auto-fill, minmax(40px,1fr)); gap: 4px; }
    .tds-art-panel__row { grid-template-columns: 1fr; }
    .tds-price-strip  { flex-direction: column; }
    .tds-price-strip__right { justify-content: flex-start; }
}

/* ── Bundle Mode ───────────────────────────────────────────────── */

/* Counter pill in the size card header */
.tds-bundle-counter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--off);
    border: 1.5px solid var(--bd);
    color: var(--t2);
    transition: background var(--tr), color var(--tr), border-color var(--tr);
    min-width: 110px;
    justify-content: center;
}

/* Partial progress */
.tds-bundle-counter.is-partial {
    background: #fff8e1;
    border-color: #f5c842;
    color: #7a5c00;
}

/* Exactly complete — green */
.tds-bundle-counter.is-complete {
    background: var(--gb);
    border-color: var(--g);
    color: var(--g);
}

/* Over-filled — red (shouldn't happen with JS cap but safety net) */
.tds-bundle-counter.is-over {
    background: var(--rb);
    border-color: var(--r);
    color: var(--r);
}

/* Info banner under card head */
.tds-bundle-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--t2);
    background: #f0f4ff;
    border: 1px solid #c5d1f5;
    border-radius: var(--rad);
    padding: 9px 14px;
    margin-bottom: 14px;
    line-height: 1.45;
}
.tds-bundle-info svg { flex-shrink: 0; color: #3b5bdb; }
.tds-bundle-info strong { color: var(--n); }

/* Dim the + button when bundle is full */
.tds-cfg--bundle .tds-sc__plus:disabled,
.tds-cfg--bundle .tds-sc__plus[aria-disabled="true"] {
    opacity: 0.35;
    cursor: not-allowed;
}