/* Service tabs on the instant quote page: 3D printing, 3D scanning, CAD, laser cutting and decals */
.svc-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 28px; padding: 6px; border-radius: 999px; background: var(--shop-card); border: 1px solid var(--shop-line); width: max-content; max-width: 100%; }
.svc-tabs::-webkit-scrollbar { display: none; }
.svc-tabs button { flex: none; display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: none; color: #bbb; font: 600 14px Inter, sans-serif; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.svc-tabs button i { color: var(--shop-accent); font-size: 15px; }
.svc-tabs button:hover { color: #fff; background: var(--shop-card-2); }
.svc-tabs button.on { background: var(--shop-accent); color: #111; }
.svc-tabs button.on i { color: #111; }
.svc-pane[hidden] { display: none !important; }
body.svc-other .iq-mbar { display: none !important; }

/* shared form bits */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; }
.svc-card { background: var(--shop-card); border: 1px solid var(--shop-line); border-radius: var(--shop-radius); padding: 24px; }
.svc-card h3 { color: #fff; font: 500 20px Prompt, sans-serif; margin: 0 0 6px; }
.svc-card > p.lead { font-size: 14px; line-height: 1.6; margin: 0 0 18px; color: #aaa; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.svc-grid .full { grid-column: 1 / -1; }
.svc-f { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: #ddd; }
.svc-f[hidden] { display: none; }
.svc-f small { font-weight: 400; color: #888; font-size: 12px; }
.svc-in { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--shop-line); background: var(--shop-bg); color: #fff; padding: 0 13px; font: 400 14.5px Inter, sans-serif; outline: none; color-scheme: dark; }
textarea.svc-in { height: auto; min-height: 90px; padding: 11px 13px; resize: vertical; }
.svc-in:focus { border-color: var(--shop-accent); }
.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-chips button { height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--shop-line); background: var(--shop-bg); color: #ccc; font: 500 13.5px Inter, sans-serif; cursor: pointer; }
.svc-chips button.on { border-color: var(--shop-accent); background: rgba(255, 164, 21, .12); color: var(--shop-accent); }
.svc-chips button:disabled { opacity: .35; cursor: not-allowed; }
.svc-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.svc-points li { display: flex; gap: 12px; font-size: 14px; line-height: 1.55; color: #bbb; }
.svc-points li i { color: var(--shop-accent); margin-top: 4px; width: 16px; text-align: center; }
.svc-points li b { color: #fff; font-weight: 600; display: block; }
.svc-ok { display: none; text-align: center; padding: 26px 10px 8px; }
.svc-ok i { font-size: 40px; color: var(--shop-good); margin-bottom: 12px; display: block; }
.svc-ok h4 { color: #fff; font: 500 20px Prompt, sans-serif; margin: 0 0 6px; }
.svc-ok p { margin: 0 0 16px; font-size: 14px; }
.svc-done .svc-form-body { display: none; }
.svc-done .svc-ok { display: block; }
.svc-msg { font-size: 13px; margin-top: 10px; min-height: 18px; }
.svc-msg.bad { color: #ffb3b3; }
.svc-side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 16px; }
.svc-price { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--shop-line); margin-top: 14px; padding-top: 14px; }
.svc-price span { color: #fff; font-weight: 600; }
.svc-price b { color: #fff; font: 600 28px Prompt, sans-serif; }
.svc-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13.5px; }
.svc-rows > div b { color: #fff; font-weight: 500; text-align: right; }
.svc-rows .warn { color: var(--shop-accent); }
.svc-rows .bad { color: #ffb3b3; }
.svc-hint { font-size: 12.5px; color: #888; line-height: 1.5; margin-top: 8px; }
.svc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* laser editor */
.lz-drop { border: 2px dashed #3a3a3a; border-radius: var(--shop-radius); background: var(--shop-card); padding: 40px 24px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.lz-drop:hover, .lz-drop.over { border-color: var(--shop-accent); background: #221c12; }
.lz-drop i.big { font-size: 38px; color: var(--shop-accent); margin-bottom: 14px; display: block; }
.lz-drop h2 { color: #fff; font: 500 22px Prompt, sans-serif; margin: 0 0 6px; }
.lz-drop p { margin: 0 0 18px; font-size: 14px; }
.lz-editor { display: none; background: var(--shop-card); border: 1px solid var(--shop-line); border-radius: var(--shop-radius); overflow: hidden; }
.lz-has .lz-editor { display: block; }
.lz-has .lz-drop { display: none; }
.lz-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--shop-line); }
.lz-bar .sep { width: 1px; height: 28px; background: var(--shop-line); margin: 0 2px; }
.lz-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--shop-line); background: var(--shop-bg); color: #ddd; font: 500 13px Inter, sans-serif; cursor: pointer; white-space: nowrap; }
.lz-btn:hover { border-color: #555; color: #fff; }
.lz-btn:disabled { opacity: .35; cursor: not-allowed; }
.lz-btn.on { border-color: var(--shop-accent); color: var(--shop-accent); }
.lz-btn .dot { width: 10px; height: 10px; border-radius: 50%; }
.lz-op-cut .dot { background: #ff4d4d; }
.lz-op-engrave .dot { background: #3da5ff; }
.lz-op-bend .dot { background: #3ddc84; }
.lz-op-ignore .dot { background: #777; }
.lz-btn kbd { font: 600 10.5px Inter, sans-serif; color: #888; background: #2a2a2a; border-radius: 4px; padding: 1px 5px; }
.lz-sel { height: 36px; border-radius: 10px; border: 1px solid var(--shop-line); background: var(--shop-bg); color: #ddd; padding: 0 8px; font: 500 13px Inter, sans-serif; max-width: 190px; }
.lz-stage { position: relative; height: min(62vh, 560px); min-height: 360px; background: #121212; touch-action: none; cursor: crosshair; }
.lz-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lz-stage.pan { cursor: grab; }
.lz-stage.panning { cursor: grabbing; }
.lz-zoom { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.lz-zoom button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--shop-line); background: rgba(23, 23, 23, .9); color: #ddd; cursor: pointer; }
.lz-info { position: absolute; left: 12px; top: 12px; font-size: 12px; color: #bbb; background: rgba(0, 0, 0, .6); padding: 6px 10px; border-radius: 8px; pointer-events: none; line-height: 1.5; }
.lz-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--shop-line); font-size: 13px; color: #aaa; }
.lz-foot b { color: #fff; font-weight: 600; }
.lz-foot .k { display: inline-flex; align-items: center; gap: 7px; }
.lz-foot .k i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lz-file { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--shop-line); font-size: 13px; color: #aaa; flex-wrap: wrap; }
.lz-file b { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.lz-file .grow { flex: 1; min-width: 160px; }
.lz-file input.svc-in { width: 92px; height: 36px; }
.lz-file select.lz-sel { height: 36px; }
.lz-warn { margin: 12px 16px 0; font-size: 13px; color: var(--shop-accent); line-height: 1.5; }
.lz-warn:empty { display: none; }
.lz-help { font-size: 12.5px; color: #888; padding: 0 16px 14px; line-height: 1.6; }
.lz-help b { color: #ccc; font-weight: 600; }

/* decal editor */
.dc-editor { background: var(--shop-card); border: 1px solid var(--shop-line); border-radius: var(--shop-radius); overflow: hidden; }
.dc-stage { position: relative; height: min(66vh, 600px); min-height: 380px; background: #101010; touch-action: none; }
.dc-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dc-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.dc-empty div { background: rgba(23, 23, 23, .88); border: 1px dashed #444; border-radius: 18px; padding: 26px 30px; pointer-events: auto; cursor: pointer; }
.dc-empty i { font-size: 34px; color: var(--shop-accent); display: block; margin-bottom: 10px; }
.dc-empty h2 { color: #fff; font: 500 20px Prompt, sans-serif; margin: 0 0 4px; }
.dc-empty p { margin: 0; font-size: 13.5px; }
.dc-empty[hidden] { display: none; }
.dc-stage.over .dc-empty div { border-color: var(--shop-accent); }
.dc-props { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; padding: 12px 16px; border-top: 1px solid var(--shop-line); }
.dc-props[hidden] { display: none; }
.dc-props .svc-f { font-size: 12px; }
.dc-props .svc-in { width: 96px; height: 38px; }
.dc-props .name { flex-basis: 100%; color: #fff; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }

@media (max-width: 1199px) { .svc-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 991px) { .svc-layout { grid-template-columns: 1fr; } .svc-side { position: static; } }
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card { padding: 18px; }
  .svc-tabs { border-radius: 18px; }
  .svc-tabs button { height: 40px; padding: 0 14px; font-size: 13px; }
  .lz-btn kbd { display: none; }
}

/* Buy now / Add to cart on the laser and decal quotes */
.svc-buy { margin-top: 16px; display: grid; gap: 10px; }
.svc-buy .svc-msg { margin-top: 0; min-height: 0; }
.svc-or { display: flex; align-items: center; gap: 12px; margin: 10px 0 4px; color: #888; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.svc-or::before, .svc-or::after { content: ''; flex: 1; border-top: 1px solid var(--shop-line); }

/* CNC milling & machining tab */
.cn-upload { padding: 0; border: 0; background: none; }
.cn-upload .cn-head, .cn-upload #cnFiles, .cn-upload > .svc-hint { display: none; }
.cn-upload.cn-has { padding: 24px; border: 1px solid var(--shop-line); background: var(--shop-card); }
.cn-upload.cn-has .lz-drop { display: none; }
.cn-upload.cn-has .cn-head, .cn-upload.cn-has #cnFiles, .cn-upload.cn-has > .svc-hint { display: block; }
.cn-upload.cn-has .cn-head { display: flex; }
.cn-head { align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cn-head h3 { margin: 0; }
.cn-file { display: grid; grid-template-columns: 36px minmax(0, 1fr) 32px 32px; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--shop-line); }
.cn-file > i { font-size: 24px; color: var(--shop-accent); text-align: center; }
.cn-file b { display: block; color: #fff; font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cn-file small { color: #888; font-size: 12px; margin-right: 10px; }
.cn-file .bad, .cn-ok { font-size: 12.5px; }
.cn-file .bad { color: #ffb3b3; }
.cn-ok { color: #7bd88f; }
.cn-bar { display: block; height: 6px; border-radius: 3px; background: #2b2b2b; overflow: hidden; margin-top: 6px; }
.cn-bar i { display: block; height: 100%; width: 0; background: var(--shop-accent); transition: width .2s; }
.cn-x { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--shop-line); background: none; color: #aaa; cursor: pointer; }
.cn-x:hover { color: #fff; border-color: #666; }
.cn-link { background: none; border: 0; padding: 0; color: var(--shop-accent); text-decoration: underline; cursor: pointer; font: inherit; }
.cn-size { display: flex; align-items: center; gap: 8px; }
.cn-size input { min-width: 0; flex: 1; }
.cn-size span { color: #777; }
.cn-good { color: #7bd88f; }
.cn-mats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cn-mat { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 10px; border-radius: 12px; border: 1px solid var(--shop-line); background: var(--shop-bg); color: #ccc; cursor: pointer; font: 500 13.5px Inter, sans-serif; text-align: center; }
.cn-mat.on { border-color: var(--shop-accent); background: rgba(255, 164, 21, .1); color: var(--shop-accent); }
.cn-mat-img { width: 100%; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: radial-gradient(circle at 50% 40%, #2c2c2c, #161616); }
.cn-mat-img img { max-width: 88%; max-height: 88%; object-fit: contain; }
.cn-mat-img i { font-size: 30px; color: #555; }

.cn-file.on b { color: var(--shop-accent); }
.cn-eye.on { color: var(--shop-accent); border-color: var(--shop-accent); }
.cn-view { position: relative; height: 340px; margin: 0 0 18px; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #2a2a2a, #141414); }
.cn-view[hidden] { display: none !important; }
.cn-view canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.cn-view-info { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12.5px; }
.cn-view-info:empty { display: none; }
.cn-view-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; color: #bbb; font-size: 14px; background: rgba(20, 20, 20, .6); }
.cn-view-msg[hidden] { display: none; }
.cn-view-help { position: absolute; right: 12px; bottom: 10px; color: #777; font-size: 11.5px; pointer-events: none; }
@media (max-width: 575px) { .cn-view { height: 260px; } }
