/* Interactive helpers (see widgets.js). Green marks a result the widget worked out. */
.w { background: #FFFFFF; border: 1px solid #E6E4DE; border-radius: 14px; padding: clamp(18px, 3vw, 30px); color: #22262B; }
.w-band { background: #EDF3F8; }
.w-band-in { max-width: 1240px; margin: 0 auto; padding: 56px clamp(20px, 4vw, 48px); }
.w-band-in > .w + .w { margin-top: 22px; }
.w-head { margin-bottom: 18px; }
.w-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #B23A2E; }
.w-head h2 { font-family: 'Lora', serif; font-weight: 600; font-size: clamp(24px, 3.2vw, 32px); line-height: 1.2; margin: 2px 0 0; }
.w-label { display: block; font-size: 14.5px; font-weight: 700; margin: 18px 0 8px; }
.w-label:first-child { margin-top: 0; }
.w-label span { font-weight: 400; color: #5F6672; }
.w-step { display: flex; align-items: center; gap: 10px; font-size: 16.5px; font-weight: 700; margin: 0 0 10px; }
.w-step i { font-style: normal; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: #15283F; color: #FFFFFF; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.w-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.w-tiles.two { grid-template-columns: 1fr 1fr; }
.w-tile { font: inherit; text-align: left; cursor: pointer; background: #FFFFFF; color: #15283F; border: 1.5px solid #76828F; border-radius: 10px; padding: 12px 14px; min-height: 52px; display: flex; flex-direction: column; gap: 2px; justify-content: center; transition: transform 0.12s, background 0.12s; -webkit-tap-highlight-color: transparent; }
.w-tile:hover { border-color: #15283F; transform: translateY(-1px); }
.w-tile strong { font-size: 15.5px; line-height: 1.25; }
.w-tile span { font-size: 13px; color: #5F6672; line-height: 1.35; }
.w-tile svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 4px; }
.w-tile[aria-pressed="true"] { background: #15283F; border-color: #15283F; color: #FFFFFF; }
.w-tile[aria-pressed="true"] span { color: #D5DDE6; }
.w-result { background: #EAF4EC; border: 1px solid #BFD9C6; border-radius: 12px; padding: 18px 20px; color: #22262B; }
.w-result-lead { font-size: 14.5px; font-weight: 600; color: #235C3F; }
.w-result-big { font-family: 'Lora', serif; font-weight: 600; font-size: clamp(28px, 4vw, 38px); line-height: 1.15; color: #235C3F; }
.w-result ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.w-result li { padding-left: 24px; position: relative; }
.w-result li::before { content: '\2713'; position: absolute; left: 0; color: #235C3F; font-weight: 700; }
.w-result p { font-size: 15px; margin: 8px 0 0; color: #3B424B; }
.w-warn { background: #FBF3E4; border: 1px solid #E8D5A8; border-radius: 12px; padding: 14px 16px; font-size: 15px; margin-top: 12px; }
.w-warn.big { padding: 18px 20px; margin-top: 0; }
.w-warn .w-result-lead, .w-warn .w-result-big { color: #7A5A12; }
.w-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.w-btn { font: inherit; cursor: pointer; display: inline-block; text-align: center; font-weight: 700; font-size: 15.5px; padding: 12px 20px; border-radius: 6px; border: 1.5px solid transparent; min-height: 46px; }
.w-btn-green { background: #235C3F; color: #FFFFFF; }
.w-btn-green:hover { background: #1B4A32; opacity: 1; }
.w-btn-line { background: #FFFFFF; color: #15283F; border-color: #15283F; }
.w-note { font-size: 13.5px; color: #5F6672; margin-top: 12px; }
.w-note a, .w-link { color: #44617F; font-weight: 600; text-decoration: underline; }
.w-link { font: inherit; font-size: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.w-input, .w input[type="date"] { font: inherit; font-size: 16px; min-height: 48px; padding: 10px 14px; border: 1px solid #76828F; border-radius: 6px; background: #FFFFFF; color: #22262B; width: 100%; max-width: 280px; -webkit-appearance: none; appearance: none; display: block; text-align: left; }
.w input[type="range"] { width: 100%; height: 34px; accent-color: #15283F; cursor: pointer; }
.w-check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; margin: 16px 0 10px; cursor: pointer; }
.w-check input { width: 20px; height: 20px; }
.w-stepper { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid #76828F; border-radius: 10px; }
.w-stepper button { font: inherit; font-size: 22px; width: 48px; height: 46px; border: 0; background: none; cursor: pointer; color: #15283F; }
.w-stepper b { min-width: 34px; text-align: center; font-size: 18px; }

/* Method finder */
.mf { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.mf-step + .mf-step { margin-top: 20px; animation: w-in 0.3s ease-out; }
.mf-side { background: #FAF6EE; border-radius: 12px; padding: 20px; }
.mf-bars { display: grid; gap: 10px; }
.mf-bar { display: grid; grid-template-columns: 118px 1fr; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #5F6672; }
.mf-bar b { display: block; height: 12px; border-radius: 6px; background: #E6E4DE; overflow: hidden; }
.mf-bar i { display: block; height: 100%; border-radius: 6px; background: #76828F; transition: width 0.45s cubic-bezier(.2,.8,.2,1); }
.mf-bar.top { color: #235C3F; } .mf-bar.top i { background: #235C3F; }
.mf-side .w-result { margin-top: 18px; background: #FFFFFF; animation: w-in 0.35s ease-out; }
@keyframes w-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Size counter */
.szc { padding: 0; }
.szc summary { cursor: pointer; padding: 16px 20px; list-style: none; font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.szc summary::-webkit-details-marker { display: none; }
.szc summary::after { content: '+'; margin-left: auto; font-size: 24px; line-height: 1; color: #B23A2E; }
.szc[open] summary::after { content: '\2212'; }
.szc summary span { color: #5F6672; font-size: 14px; }
.szc[open] { padding: 0 20px 20px; } .szc[open] summary { padding: 16px 0; }
.sz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.sz { border: 1px solid #E6E4DE; border-radius: 10px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.sz > span { font-weight: 700; font-size: 15px; }
.sz > div { display: flex; align-items: center; }
.sz button { font: inherit; font-size: 20px; width: 34px; height: 38px; border: 0; background: #EDF1F5; border-radius: 6px; cursor: pointer; color: #15283F; }
.sz input { font: inherit; font-size: 16px !important; width: 38px; height: 38px; text-align: center; border: 0; background: none; padding: 0; color: #22262B; }
.sz-total { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 12px 18px; }
.sz-total span { font-weight: 600; color: #235C3F; } .sz-total strong { font-family: 'Lora', serif; font-size: 34px; line-height: 1; color: #235C3F; }

/* Placement picker */
.pl { display: grid; grid-template-columns: minmax(220px, 0.9fr) 1.1fr; gap: 20px; align-items: center; }
.pl-art { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: #FAF6EE; border-radius: 12px; padding: 12px; }
.pl-art svg { width: 100%; height: auto; }
.pl-shirt { fill: #FFFFFF; stroke: #76828F; stroke-width: 2; stroke-linejoin: round; }
.pl-neck { fill: none; stroke: #76828F; stroke-width: 2; }
.pl-zone { fill: rgba(58, 114, 153, 0.12); stroke: #3A7299; stroke-width: 1.5; stroke-dasharray: 4 3; cursor: pointer; }
.pl-zone:hover { fill: rgba(58, 114, 153, 0.28); }
.pl-zone.on { fill: #BFD9C6; stroke: #235C3F; stroke-width: 2; stroke-dasharray: none; }
.pl-art text { font-size: 13px; font-weight: 700; fill: #5F6672; font-family: inherit; }
.pl-list { display: grid; gap: 8px; }
.pl-chip[aria-pressed="true"] { background: #EAF4EC; border-color: #235C3F; color: #235C3F; }
.pl-chip[aria-pressed="true"] span { color: #235C3F; }
.pl-chip[aria-pressed="true"] strong::before { content: '\2713\00a0'; }

/* Artwork checker */
.art-check { margin-top: 10px; display: grid; gap: 6px; }
.art-row { border-left: 4px solid #76828F; background: #FFFFFF; border-radius: 6px; padding: 8px 12px; font-size: 14px; }
.art-row strong { display: block; word-break: break-all; }
.art-row span { color: #4A515B; }
.art-row.good { border-color: #235C3F; background: #EAF4EC; }
.art-row.warn { border-color: #C08A1E; background: #FBF3E4; }
.art-note { font-size: 12.5px; color: #5F6672; }

/* Store planner, minimum checker, staff outfitter */
.sp-plan { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.tl { display: grid; gap: 0; }
.tl-row { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding-bottom: 16px; position: relative; }
.tl-row > i { width: 14px; height: 14px; border-radius: 50%; background: #15283F; margin: 4px 0 0 4px; z-index: 1; }
.tl-row:not(.done)::before { content: ''; position: absolute; left: 10px; top: 14px; bottom: -6px; width: 2px; background: #C9D3DD; }
.tl-row.done > i { background: #235C3F; }
.tl-row strong { display: block; font-size: 16.5px; } .tl-row span { font-size: 14.5px; color: #4A515B; }
.sm-alt { border: 1px solid #E6E4DE; border-radius: 12px; padding: 16px 18px; margin-top: 12px; }
.sm-alt strong { font-size: 16.5px; } .sm-alt p { font-size: 15px; color: #4A515B; margin: 4px 0 12px; }

/* Group order sheet */
.go-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.go-chip { background: #15283F; color: #FFFFFF; font-weight: 600; font-size: 15px; border-radius: 999px; padding: 8px 14px; display: inline-flex; align-items: center; gap: 6px; }
.go-chip button { font: inherit; font-size: 18px; line-height: 1; background: none; border: 0; color: #FFFFFF; cursor: pointer; padding: 0 2px; }
.go-add { display: inline-flex; gap: 6px; flex: 1 1 260px; }
.go-add input, .go-row input, .go-row select { font: inherit; font-size: 16px; min-height: 46px; padding: 8px 10px; border: 1px solid #76828F; border-radius: 6px; background: #FFFFFF; color: #22262B; min-width: 0; width: 100%; }
.go-table { margin-top: 18px; display: grid; gap: 8px; }
.go-row { display: grid; grid-template-columns: 1.6fr 1.3fr 86px 66px 40px; gap: 8px; align-items: center; }
.go-head { font-size: 12.5px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: #5F6672; }
.go-row > button { font: inherit; font-size: 22px; height: 46px; border: 0; background: none; color: #B23A2E; cursor: pointer; }
.go-total { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; margin-top: 18px; }
.go-sum { font-size: 15px; display: grid; gap: 4px; }

/* Deal savings */
.sv { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 4px; font-size: 14.5px; }
.sv label { font-weight: 700; }
.sv-in { display: inline-flex; align-items: center; gap: 2px; border: 1px solid #76828F; border-radius: 6px; padding: 0 10px; background: #FFFFFF; font-weight: 600; }
.sv-in input { font: inherit; font-size: 16px; width: 74px; height: 40px; border: 0; background: none; color: #22262B; }
.sv-out { background: #EAF4EC; border: 1px solid #BFD9C6; color: #235C3F; border-radius: 8px; padding: 8px 12px; font-weight: 600; }
.bd-worth { font-size: 14px; font-weight: 600; color: #235C3F; text-align: right; margin-top: 6px; }

@media (max-width: 760px) {
  .mf, .sp-plan, .pl { grid-template-columns: 1fr; gap: 18px; }
  .w-band-in { padding: 36px 16px; }
  .w-tiles { grid-template-columns: 1fr 1fr; }
  .mf .w-tiles:has(svg) { grid-template-columns: 1fr 1fr 1fr; }
  .mf .w-tiles:has(svg) .w-tile { align-items: center; text-align: center; padding: 10px 6px; }
  .mf .w-tiles:has(svg) strong { font-size: 13.5px; }
  .mf-bar { grid-template-columns: 104px 1fr; font-size: 13px; }
  .w-actions .w-btn { flex: 1 1 100%; }
  .go-row { grid-template-columns: 1fr 1fr 40px; }
  .go-row > :nth-child(1) { grid-column: 1 / 3; } .go-row > :nth-child(5) { grid-column: 3; grid-row: 1; }
  .go-row:not(.go-head) { border: 1px solid #E6E4DE; border-radius: 10px; padding: 10px; grid-template-columns: 1fr 86px 66px; }
  .go-row:not(.go-head) > :nth-child(1) { grid-column: 1 / 3; } .go-row:not(.go-head) > :nth-child(5) { grid-column: 3; grid-row: 1; }
  .go-head { display: none; }
  .sz-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .mf-step, .mf-side .w-result { animation: none; } .mf-bar i, .w-tile { transition: none; } }

.go-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.go-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.go-form label span { font-weight: 400; color: #5F6672; }
.go-form input:not([type=file]), .go-form select, .go-form textarea { font: inherit; font-size: 16px; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #76828F; border-radius: 6px; background: #FFFFFF; color: #22262B; }
@media (max-width: 640px) { .go-form { grid-template-columns: 1fr; } }

.w [hidden], .sz-grid[hidden] { display: none !important; }
@media (max-width: 760px) { .sz { padding: 6px 8px; } .sz button { width: 30px; } .sz input { width: 30px; } .szc[open] { padding: 0 14px 16px; } }

.w-tile img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }
.w-tile:has(img) { padding: 8px 8px 12px; justify-content: flex-start; }
.w-tile:has(img) strong { padding: 0 4px; }
@media (max-width: 760px) { .mf .w-tiles:has(img) { grid-template-columns: 1fr 1fr 1fr; } .mf .w-tiles:has(img) .w-tile { text-align: center; padding: 6px 6px 10px; } .mf .w-tiles:has(img) strong { font-size: 13.5px; padding: 0; } }

.w-kicker { color: #3A7299; }
.szc summary::after { color: #3A7299; }

.pl-art { grid-template-columns: 1fr 1fr 1fr; }
.pl { grid-template-columns: 1fr; }
.pl-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
@media (max-width: 640px) { .pl-art { padding: 8px; gap: 2px; } }
.pl-shirt { stroke: #22262B; stroke-width: 1.8; }
.pl-neck { stroke: #22262B; stroke-width: 1.3; stroke-linecap: round; }

.w-range-ends { display: flex; justify-content: space-between; font-size: 12.5px; color: #5F6672; margin-top: -2px; }
.w-stepper button:disabled { opacity: .35; cursor: default; }

.art-row b { font-weight: 700; }
.art-row.good { border-color: #235C3F; background: #235C3F; color: #FFFFFF; } .art-row.good span { color: #FFFFFF; }
.art-row.help { border-color: #B23A2E; background: #FAF6EE; color: #8F2A20; box-shadow: inset 0 0 0 1px #EBD9C9; } .art-row.help span { color: #8F2A20; }
