/* Sticker configurator. Colours can be overridden from the theme, e.g. .sc-app{--sc-acc:#0a7;} */
.sc-app{
  --sc-ink:#1b1a2b;--sc-mut:#6c6a7d;--sc-line:#e6e3dc;--sc-bg:#faf8f4;--sc-acc:#ff5a36;--sc-acc-soft:#fff1ec;--sc-ok:#1f8a5b;
  --sc-radius:16px;--sc-shadow:0 1px 2px rgba(20,20,40,.05),0 10px 30px rgba(20,20,40,.07);
  color:var(--sc-ink);font-size:15px;line-height:1.5;
  /* Break out of narrow theme content columns and centre on the page. */
  /* JS centres it in the viewport (see centre() in configurator.js). */
  width:min(1180px,calc(100vw - 48px));margin:8px 0 56px;max-width:none!important;
}
.sc-app *{box-sizing:border-box}
.sc-app button{font:inherit;color:inherit}

.sc-hero{margin:0 0 20px}
.sc-hero h2{margin:0 0 6px;font-size:clamp(26px,3.2vw,38px);line-height:1.15;letter-spacing:-.02em}
.sc-hero p{margin:0;color:var(--sc-mut);font-size:16px}

.sc-tabs{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 10px;margin:0 0 8px;scrollbar-width:none}
.sc-tabs::-webkit-scrollbar{display:none}
.sc-tab{white-space:nowrap;border:1px solid var(--sc-line);background:#fff;border-radius:99px;padding:10px 18px;font-size:15px;font-weight:600;cursor:pointer;transition:.15s}
.sc-tab:hover{border-color:var(--sc-ink)}
.sc-tab.on{background:var(--sc-ink);color:#fff;border-color:var(--sc-ink)}

.sc-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:28px;align-items:start}
.sc-card{background:#fff;border:1px solid var(--sc-line);border-radius:var(--sc-radius);box-shadow:var(--sc-shadow)}
.sc-cfg{padding:8px 28px 12px}
.sc-side{position:sticky;top:24px}
.sc-sum{padding:20px}

/* steps */
.sc-step{padding:22px 0;border-bottom:1px solid var(--sc-line)}
.sc-step:last-child{border-bottom:0}
.sc-sh{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-size:16px;font-weight:700;letter-spacing:0}
.sc-n{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--sc-ink);color:#fff;font-size:13px;font-weight:700}
.sc-cards,.sc-quick,.sc-seg{display:flex;flex-wrap:wrap;gap:10px}
.sc-opt{display:inline-flex;align-items:center;gap:8px;border:1.5px solid var(--sc-line);border-radius:12px;padding:10px 14px;font-size:15px;cursor:pointer;background:#fff;transition:.15s}
.sc-opt:hover{border-color:#bdb8ad}
.sc-opt.on{border-color:var(--sc-acc);background:var(--sc-acc-soft);font-weight:600}
.sc-dot{display:inline-block;width:16px;height:16px;border-radius:50%;border:1px solid rgba(0,0,0,.18);flex:none}
.sc-shp svg{flex:none;opacity:.85}
.sc-q-b{min-width:56px;justify-content:center}

.sc-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.sc-field{position:relative;display:block}
.sc-field span{display:block;font-size:12px;font-weight:600;color:var(--sc-mut);margin:0 0 4px}
.sc-field em{position:absolute;right:12px;bottom:11px;font-style:normal;color:var(--sc-mut);font-size:14px;pointer-events:none}
.sc-qf{max-width:200px;margin-top:12px}
.sc-app input[type=number],.sc-app input[type=text]{width:100%;padding:11px 12px;border:1.5px solid var(--sc-line);border-radius:10px;font-size:16px;background:#fff;color:var(--sc-ink);font-family:inherit}
.sc-app input[type=number]:focus,.sc-app input[type=text]:focus{outline:0;border-color:var(--sc-acc);box-shadow:0 0 0 3px var(--sc-acc-soft)}
.sc-app input[type=range]{width:100%;accent-color:var(--sc-acc)}

/* upload */
.sc-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:26px 18px;border:2px dashed #cfc9bc;border-radius:14px;background:var(--sc-bg);cursor:pointer;color:var(--sc-ink);transition:.15s}
.sc-drop:hover,.sc-drop.over{border-color:var(--sc-acc);background:var(--sc-acc-soft)}
.sc-drop input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.sc-drop b{text-decoration:underline;text-underline-offset:3px}
.sc-drop small{color:var(--sc-mut);font-size:12px}
.sc-file-ok{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.sc-chip{display:inline-block;max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px 12px;border-radius:99px;background:var(--sc-bg);border:1px solid var(--sc-line);font-size:14px}
.sc-crop{margin-top:14px;padding:14px;border-radius:12px;background:var(--sc-bg);border:1px solid var(--sc-line)}
.sc-crop .sc-seg{margin:10px 0}
.sc-l{display:block;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--sc-mut);margin:10px 0 4px}
.sc-help{color:var(--sc-mut);font-size:13px}
.sc-err{color:#b00020;font-size:13px;margin-top:8px}
.sc-link{background:none;border:0;padding:0;color:var(--sc-ink);text-decoration:underline;text-underline-offset:3px;cursor:pointer;font-size:14px}

/* summary */
.sc-prev{background:repeating-conic-gradient(#f2efe8 0 25%,#fff 0 50%) 0 0/18px 18px;border-radius:12px;padding:14px 14px 8px;border:1px solid var(--sc-line)}
.sc-prev svg{display:block;width:100%;height:auto;max-height:440px}
.sc-prev.has{cursor:grab;touch-action:none}.sc-prev.has:active{cursor:grabbing}
.sc-dim{text-align:center;color:var(--sc-mut);font-size:12px;padding:2px 0 4px}
.sc-out{margin-top:18px}
.sc-price{font-size:38px;font-weight:800;letter-spacing:-.03em;line-height:1.1}
.sc-price small{font-size:15px;font-weight:600;color:var(--sc-mut);letter-spacing:0}
.sc-unit{color:var(--sc-mut);font-size:14px;margin-top:4px}
.sc-vat{color:var(--sc-mut);font-size:13px;margin-top:2px}
.sc-btn{width:100%;margin-top:16px;background:var(--sc-acc);color:#fff;border:0;border-radius:12px;padding:15px 18px;font-weight:700;font-size:17px;cursor:pointer;transition:.15s;box-shadow:0 6px 16px rgba(255,90,54,.28)}
.sc-btn:hover:not(:disabled){filter:brightness(.95)}
.sc-btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.sc-msg{min-height:22px;margin-top:10px;font-size:14px}
.sc-msg a{color:var(--sc-ink);font-weight:600}
.sc-ok{color:var(--sc-ok);font-weight:600}
.sc-trust{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px;color:var(--sc-mut)}
.sc-trust li::before{content:"✓";color:var(--sc-ok);font-weight:700;margin-right:6px}
.sc-tiers-h{margin:20px 0 8px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--sc-mut)}
.sc-tiers{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.sc-tier{display:flex;justify-content:space-between;gap:6px;font-size:13px;background:var(--sc-bg);border:1px solid var(--sc-line);border-radius:8px;padding:6px 10px}
.sc-tier b{font-weight:700}
.sc-tier.on{background:var(--sc-ok);border-color:var(--sc-ok);color:#fff}
.sc-note{color:var(--sc-mut);font-size:12px;margin-top:16px;line-height:1.45}

@media(max-width:900px){
  .sc-app{width:calc(100vw - 32px)}
  .sc-grid{grid-template-columns:1fr;gap:18px}
  .sc-side{position:static;order:-1}
  .sc-cfg{padding:4px 18px 8px}
  .sc-price{font-size:32px}
}
/* Hide the theme's own page title on the configurator page (it has its own heading). */
body.sc-page .wp-block-post-title,body.sc-page .entry-title,body.sc-page .page-title{display:none}

/* process flow under the title */
.sc-flow{list-style:none;margin:16px 0 8px;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;counter-reset:none}
.sc-flow li{position:relative;background:#fff;border:1px solid var(--sc-line);border-radius:12px;padding:12px 14px 12px 48px;display:flex;flex-direction:column;gap:2px;min-height:64px}
.sc-flow .sc-fn{position:absolute;left:12px;top:12px;width:26px;height:26px;border-radius:50%;background:var(--sc-acc);color:#fff;font-weight:700;font-size:14px;display:flex;align-items:center;justify-content:center}
.sc-flow b{font-size:14px;line-height:1.25}
.sc-flow small{color:var(--sc-mut);font-size:12.5px;line-height:1.3}
@media(max-width:720px){.sc-flow{grid-template-columns:1fr 1fr}}
@media(max-width:420px){.sc-flow{grid-template-columns:1fr}}
.sc-pre{margin-bottom:8px}
.sc-radius{margin-top:16px}
.sc-radius input[type=range]{width:100%}

/* cut type cards */
.sc-cuts{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.sc-cut{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:12px;height:auto}
.sc-cut svg{width:100%;max-width:170px;height:auto;background:var(--sc-bg);border-radius:10px}
.sc-cut b{font-size:15px}
.sc-cut small{color:var(--sc-mut);font-size:12.5px;line-height:1.35;font-weight:400}
@media(max-width:420px){.sc-cuts{grid-template-columns:1fr}}
.sc-so{opacity:.5;cursor:not-allowed;text-decoration:line-through}
.sc-so em{font-style:normal;text-decoration:none;display:inline-block}

/* tattoo listing on a product page */
.sc-app.sc-listing{width:100%;margin:16px 0 32px}
.sc-listing .sc-grid{grid-template-columns:1fr}
.sc-listing .sc-side{position:static;order:0!important}
.sc-listing .sc-flow{grid-template-columns:repeat(2,minmax(0,1fr))}

/* tattoo personalisation */
.sc-pk{gap:10px}
.sc-pic{flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;padding:8px;gap:6px;min-width:0}
.sc-pic img{display:block;width:100%;height:auto;object-fit:contain;border-radius:8px;background:#fff}
.sc-pic span{font-size:13px;line-height:1.25}
.sc-designs .sc-pic{width:calc(50% - 5px);flex:0 0 calc(50% - 5px)}
.sc-designs .sc-pic img{aspect-ratio:1/1}
.sc-styles .sc-pic{width:calc(50% - 5px);flex:0 0 calc(50% - 5px)}
.sc-accs .sc-pic{width:calc(33.33% - 7px);flex:0 0 calc(33.33% - 7px)}
.sc-accs .sc-pic img{max-width:100%}
.sc-accs .sc-pic img{aspect-ratio:1/1}
.sc-swatches .sc-pic{flex-direction:row;padding:8px 12px;gap:8px}
.sc-swatches .sc-dot{width:22px;height:22px;border-radius:50%;flex:none}
.sc-pt,.sc-pn{width:100%;box-sizing:border-box;font:inherit;padding:11px 12px;border:1.5px solid var(--sc-line);border-radius:10px}
.sc-pimg{display:block;width:100%;height:auto;max-height:320px;object-fit:contain;border-radius:8px;background:#fff}
@media (min-width:700px){.sc-designs .sc-pic{width:calc(25% - 8px);flex:0 0 calc(25% - 8px)}.sc-styles .sc-pic{width:calc(33.33% - 7px);flex:0 0 calc(33.33% - 7px)}}
.sc-fs{font-style:normal;font-size:22px;line-height:1.3;max-width:100%;overflow-wrap:anywhere;color:#1b1a2b}
.sc-styles .sc-pic{justify-content:center}
.sc-accs .sc-pic{padding:6px}
.sc-nonebox{display:grid;place-items:center;width:100%;aspect-ratio:1/1;border-radius:8px;background:#f6f4ef;color:#9a968b;font-style:normal;font-size:28px}
@media (min-width:700px){.sc-accs .sc-pic{width:calc(20% - 8px);flex:0 0 calc(20% - 8px)}}
.sc-pphoto{display:flex;align-items:center;gap:10px;margin-top:10px}
.sc-pphoto img{width:64px;height:64px;object-fit:cover;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #e6e3dc}
.sc-pphoto span{font-size:14px;font-weight:600}
.sc-pnote{margin:10px 0 0;font-size:13px;line-height:1.45;color:#6c6a7d}

.sc-thumb{width:64px;height:64px;border-radius:50%;object-fit:cover;border:2px solid var(--sc-line);margin-right:10px;vertical-align:middle;display:inline-block}

.sc-thumb{width:72px!important;height:72px!important;min-width:72px;max-width:72px!important;aspect-ratio:1/1;flex:none;border-radius:10px!important;object-fit:cover!important}

.sc-n{flex:none!important;min-width:24px;min-height:24px;aspect-ratio:1/1}
.sc-sh{display:flex;align-items:center;gap:10px}

/* mobile, custom sticker page: preview on top, price block after the options */
@media(max-width:900px){
  .sc-app:not(.sc-listing) .sc-side,.sc-app:not(.sc-listing) .sc-sum{display:contents}
  .sc-app:not(.sc-listing) .sc-prev{order:1;margin-bottom:-4px}
  .sc-app:not(.sc-listing) .sc-cfg{order:0}
  .sc-app:not(.sc-listing) .sc-out{order:2;margin:0;padding:20px;background:#fff;border:1px solid var(--sc-line);border-radius:var(--sc-radius);box-shadow:var(--sc-shadow)}
}

/* design sticker listing */
.sc-dn{width:100%;box-sizing:border-box;font:inherit;padding:11px 12px;border:1.5px solid var(--sc-line);border-radius:10px}
.sc-bw{grid-template-columns:repeat(3,1fr)!important;margin-bottom:10px}
.sc-bw .sc-opt{justify-content:center;text-align:center}
.sc-prev [data-xt]{touch-action:none}
.sc-dec .sc-opt{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px;min-width:96px}
.sc-dec .sc-opt img{width:72px;height:72px;object-fit:contain;border-radius:10px;background:#f6f5f2}
.sc-dec .sc-opt b{font-size:13px}
.sc-own{display:flex;align-items:center;gap:10px;margin-top:10px;flex-wrap:wrap}
.sc-own label{font-size:13px;color:var(--sc-mut)}
.sc-own .sc-cp{width:44px;height:38px;padding:2px;border:1px solid var(--sc-line);border-radius:10px;background:#fff;cursor:pointer}
.sc-own .sc-hx{width:110px;font-family:ui-monospace,Menlo,monospace}
.sc-chkdot{background:repeating-conic-gradient(#ddd 0 25%,#fff 0 50%) 0 0/8px 8px!important;border:1px solid #ccc}
.sc-xz{width:100%;margin-top:6px}
.sc-pvn{font-style:italic;max-width:34em;margin:0 auto;line-height:1.4}
.sc-chk{display:flex;gap:8px;align-items:flex-start;margin-top:10px;font-size:13px;line-height:1.4}.sc-chk input{margin-top:3px}

/* v0.9.33: breathing room under the header; phone layout without overflow */
.sc-app{margin-top:32px!important}
@media(max-width:720px){
  .sc-app{width:auto!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;margin-top:16px!important}
  .sc-flow{grid-template-columns:1fr 1fr!important;gap:8px}
  .sc-flow li{padding:10px 10px 10px 40px;min-height:0}
  .sc-flow .sc-fn{left:9px;top:10px;width:22px;height:22px;font-size:12px}
  .sc-flow b{font-size:13px}
  .sc-flow small{font-size:11.5px}
}

.sc-rights{display:flex;gap:8px;align-items:flex-start;margin-top:10px;font-size:13px;line-height:1.45;color:var(--sc-ink);cursor:pointer}.sc-rights input{margin-top:3px;flex:none}

.sc-shake{color:#c0392b;font-weight:600;animation:scshk .4s}@keyframes scshk{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}

/* design stickers: size + quantity under the preview */
.sc-sq:empty{display:none}
.sc-sq{padding:4px 2px 0}
.sc-sq .sc-step{padding:16px 0 6px;border-bottom:0}
.sc-sq .sc-step+.sc-step{border-top:1px solid var(--sc-line);margin-top:6px}
@media(max-width:900px){.sc-app:not(.sc-listing) .sc-sq{order:1;padding:6px 20px;background:#fff;border:1px solid var(--sc-line);border-radius:var(--sc-radius);box-shadow:var(--sc-shadow)}}
.sc-cuts2{grid-template-columns:1fr 1fr!important;gap:8px}
.sc-cuts2 .sc-cut{padding:8px 6px;gap:4px}
.sc-cuts2 .sc-cut svg{max-width:64px}
.sc-cuts2 .sc-cut b{font-size:13px}
.sc-cuts2 .sc-cut small{font-size:11px;line-height:1.3}
@media(max-width:600px){
  .sc-cards.sc-dec{display:grid!important;grid-template-columns:repeat(3,1fr);gap:8px}
  .sc-dec .sc-opt{min-width:0;padding:6px;width:auto}
  .sc-dec .sc-opt img{width:100%;height:auto;aspect-ratio:1/1}
  .sc-dec .sc-opt b{font-size:12px;text-align:center}
}

/* filled-in size / quantity fields must look "selected", so nobody thinks nothing was chosen */
.sc-field input.sc-w:not(:placeholder-shown),.sc-field input.sc-h:not(:placeholder-shown),.sc-field input.sc-q:not(:placeholder-shown){border-color:var(--sc-acc);background:var(--sc-acc-soft);font-weight:600}
.sc-field input.sc-w:placeholder-shown,.sc-field input.sc-h:placeholder-shown{border-color:#d9534f}

.sc-szrow{display:flex;align-items:center;gap:12px}.sc-szrow input[type=range]{flex:1;min-width:0}.sc-szn{position:relative;flex:0 0 92px}.sc-szn input{width:100%;padding-right:34px}.sc-szn em{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-style:normal;color:var(--sc-mut);font-size:13px;pointer-events:none}
