.pk {
  --pk-accent: #007bff;
  --pk-ink: #2e3238;
  --pk-muted: #6c7178;
  --pk-line: #e3e5e8;
  --pk-line-strong: #c9cdd2;
  --pk-soft: #f5f6f7;
  --pk-pick: color-mix(in oklab, var(--pk-accent) 6%, #fff);
  --pk-warn: #a15c00;
  --pk-error: #b3261e;
  --pk-ok: #1e7b45;
  --pk-radius: 3px;
  --pk-head: Jost, inherit;
  color: var(--pk-ink);
  font-size: 15px;
  line-height: 1.5;
  margin: 8px 0 28px;
  -webkit-font-smoothing: antialiased;
}
.pk *, .pk *::before, .pk *::after { box-sizing: border-box; }
.pk :where(button, input, textarea) { font: inherit; color: inherit; }
.pk-muted { color: var(--pk-muted); font-weight: 400; }
.pk-small { font-size: 12px; }
.pk-note { margin: 0 0 10px; font-size: 13px; color: var(--pk-muted); }

/* ---------- preview ---------- */
.pk-preview { margin: 0 0 16px; }
.pk-stage-wrap { background: var(--pk-soft); padding: clamp(20px, 7%, 56px); }
.pk-stage { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; max-height: 440px; margin: 0 auto; }
.pk-stage > svg { width: min(100%, 440px); height: auto; max-height: 100%; filter: drop-shadow(0 1px 2px rgb(30 35 45 / .2)) drop-shadow(0 10px 22px rgb(30 35 45 / .14)); }
.pk-stage.pk-portrait > svg { width: auto; height: 100%; }
.pk-preview-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--pk-muted); }
.pk-spec strong { color: var(--pk-ink); font-weight: 600; }
.pk-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; align-items: center; }
.pk-thumb { display: inline-flex; width: 52px; height: 40px; padding: 3px; border: 1px solid transparent; border-radius: var(--pk-radius); background: none; cursor: pointer; align-items: center; justify-content: center; }
.pk-thumb svg { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.pk-thumb:hover { border-color: var(--pk-line-strong); }
.pk-thumb[aria-pressed="true"] { border-color: var(--pk-accent); box-shadow: inset 0 0 0 1px var(--pk-accent); }
.pk-thumb-more { font-size: 13px; color: var(--pk-muted); padding: 0 6px; }
.pk-thumb-wrap { position: relative; display: inline-flex; }
/* Remove a sign (Sixten): a small round ×, always visible on touch, on hover elsewhere. */
.pk-thumb-del { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; padding: 0; border: 1px solid var(--pk-line-strong); border-radius: 50%; background: #fff; color: var(--pk-muted); font-size: 14px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.pk-thumb-del:hover, .pk-thumb-del:focus-visible { color: #fff; background: #c62828; border-color: #c62828; }
@media (hover: hover) {
  .pk-thumb-del { opacity: 0; transition: opacity .12s; }
  .pk-thumb-wrap:hover .pk-thumb-del, .pk-thumb-del:focus-visible, .pk-thumb[aria-pressed="true"] + .pk-thumb-del { opacity: 1; }
}
/* Text height of the picked sign. */
.pk-textsize { display: inline-flex; align-items: center; gap: 6px; }
.pk-ts-btn { width: 28px; height: 28px; padding: 0; border: 1px solid var(--pk-line-strong); border-radius: var(--pk-radius); background: #fff; color: var(--pk-ink); font-size: 16px; line-height: 1; cursor: pointer; }
.pk-ts-btn:hover:not(:disabled) { background: var(--pk-soft); }
.pk-ts-btn:disabled { opacity: .4; cursor: default; }
.pk-ts-val { min-width: 4.6em; text-align: center; color: var(--pk-ink); font-variant-numeric: tabular-nums; }
.pk-textsize .pk-link { font-size: 13px; }
.pk-ts-reset[data-off] { visibility: hidden; }
.pk-preview-host > [data-pk-hidden] { display: none !important; }

@media (min-width: 1000px) {
  .pk-page.product--outer { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(32px, 4vw, 64px); align-items: start; }
  .pk-page > .product-form--alt { display: none !important; }
  .pk-page > .product-gallery, .pk-page > .product-main { width: auto !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0; padding-right: 0; }
  .pk-page > .product-gallery { position: sticky; top: 16px; }
}

/* ---------- fields ---------- */
.pk-field { padding: 16px 0 14px; border-top: 1px solid var(--pk-line); }
.pk-field:first-child { border-top: 0; padding-top: 4px; }
.pk-field-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.pk-label { font-family: var(--pk-head); font-size: 17px; font-weight: 600; }
.pk-right { margin-left: auto; }
.pk-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; font-size: 14px; }
.pk-seg-label { min-width: 4.5em; }

.pk-numbers { display: block; width: 100%; min-height: 3.2em; resize: vertical; padding: 9px 11px; border: 1px solid var(--pk-line-strong); border-radius: var(--pk-radius); font-size: 17px; font-weight: 600; letter-spacing: .02em; line-height: 1.4; font-variant-numeric: tabular-nums; }
.pk-numbers::placeholder { font-weight: 400; color: #9aa0a6; }
.pk-numbers:focus, .pk-mm:focus, .pk-series-in:focus, .pk-stepper input:focus { outline: 2px solid var(--pk-accent); outline-offset: -1px; border-color: transparent; }
.pk-numbers[aria-invalid="true"] { border-color: var(--pk-error); }
.pk-series { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; font-size: 14px; }
.pk-series-in { width: 5.2em; padding: 6px 8px; border: 1px solid var(--pk-line-strong); border-radius: var(--pk-radius); font-weight: 600; text-align: center; }
.pk-btn-small { padding: 6px 12px; border: 1px solid var(--pk-accent); border-radius: var(--pk-radius); background: #fff; color: var(--pk-accent) !important; cursor: pointer; font-size: 14px; font-weight: 600; }
.pk-btn-small:hover { background: var(--pk-pick); }
.pk-summary { margin: 12px 0 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.pk-summary strong { font-weight: 600; margin-right: 4px; }
.pk-status { margin: 8px 0 0; font-size: 13px; font-weight: 600; }
.pk-error { color: var(--pk-error); }
.pk-warn { color: var(--pk-warn); }
.pk-ok { color: var(--pk-ok); }

.pk-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pk-options-3 { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.pk-option { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 12px; border: 1px solid var(--pk-line-strong); border-radius: var(--pk-radius); background: #fff; cursor: pointer; text-align: left; line-height: 1.35; }
.pk-option:hover { border-color: var(--pk-ink); }
.pk-option[aria-pressed="true"] { border-color: var(--pk-accent); box-shadow: inset 0 0 0 1px var(--pk-accent); background: var(--pk-pick); }
.pk-option strong { font-weight: 600; }
.pk-option .pk-muted { font-size: 13px; }
.pk-custom { margin-top: 10px; }
.pk-mm { width: 5.5em; padding: 7px 9px; border: 1px solid var(--pk-line-strong); border-radius: var(--pk-radius); font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }

.pk-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.pk-swatch {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 34px; padding: 0;
  border-radius: 3px; border: 1px solid rgb(0 0 0 / .18); background: var(--sw, #fff); color: var(--ink, #111); cursor: pointer;
  font: 700 17px/1 system-ui, -apple-system, 'Segoe UI', sans-serif;
  transition: transform .15s cubic-bezier(.22, 1, .36, 1);
}
.pk-swatch:hover { transform: scale(1.05); }
.pk-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pk-accent); }
.pk-swatch:focus-visible, .pk-swatch:focus-within { outline: 2px solid var(--pk-accent); outline-offset: 3px; }
.pk-swatch-custom { background: conic-gradient(from 90deg, #e53935, #fdd835, #43a047, #00acc1, #3949ab, #8e24aa, #e53935); overflow: hidden; }
.pk-swatch-custom[aria-pressed="true"] { background: var(--sw); }
.pk-swatch-custom::after { content: '+'; position: absolute; inset: 0; display: grid; place-items: center; font: 600 20px/1 system-ui, sans-serif; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .5); pointer-events: none; }
.pk-swatch-custom[aria-pressed="true"]::after { content: '✎'; font-size: 15px; }
.pk-swatch-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }

.pk-seg { display: inline-flex; border: 1px solid var(--pk-line-strong); border-radius: var(--pk-radius); background: #fff; overflow: hidden; }
.pk-seg button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-left: 1px solid var(--pk-line); background: none; cursor: pointer; font-size: 13px; color: var(--pk-muted); }
.pk-seg button:first-child { border-left: 0; }
.pk-seg button[aria-pressed="true"] { color: var(--pk-ink); font-weight: 600; background: var(--pk-pick); box-shadow: inset 0 -2px 0 var(--pk-accent); }
.pk-seg .pk-font-slab { font-family: 'Roboto Slab', Georgia, serif; }
.pk-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--sw); border: 1px solid rgb(0 0 0 / .25); }

/* ---------- buy ---------- */
.pk-buybar { position: sticky; bottom: 0; z-index: 5; padding: 14px 0 12px; background: #fff; border-top: 1px solid var(--pk-line); }
.pk-copies { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; font-size: 14px; }
.pk-price { margin-left: auto; color: var(--pk-muted); font-variant-numeric: tabular-nums; }
.pk-price strong { color: var(--pk-ink); font-size: 16px; }
.pk-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--pk-line-strong); border-radius: var(--pk-radius); background: #fff; }
.pk-stepper button { width: 32px; border: 0; background: none; cursor: pointer; font-size: 17px; color: var(--pk-muted); }
.pk-stepper button:hover { color: var(--pk-ink); background: var(--pk-soft); }
.pk-stepper input { width: 2.6em; text-align: center; border: 0; border-left: 1px solid var(--pk-line); border-right: 1px solid var(--pk-line); padding: 6px 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.pk-add { display: block; width: 100%; padding: 12px 16px; border: 0; border-radius: var(--pk-radius); background: var(--pk-accent); color: #fff !important; font-weight: 600; font-size: 16px; cursor: pointer; }
.pk-add:hover:not(:disabled) { filter: brightness(.94); }
.pk-add:disabled { opacity: .45; cursor: not-allowed; }
.pk-msg { margin: 8px 0 0; font-size: 14px; }
.pk-msg.pk-error { color: var(--pk-error); margin: 0 0 8px; }
.pk-link { padding: 0; border: 0; background: none; color: var(--pk-accent); cursor: pointer; font-size: 14px; text-underline-offset: 3px; }
.pk-link:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .pk-price { margin-left: 0; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pk-swatch { transition: none; } }
@media (max-width: 600px) {
  .pk-thumb { width: 44px; height: 34px; }
  .pk-strip { gap: 6px; }
}

.pk-filerow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; }
.pk-upload { position: relative; display: inline-flex; align-items: center; gap: 6px; overflow: hidden; }
.pk-upload:focus-within { outline: 2px solid var(--pk-accent); outline-offset: 2px; }
.pk-upload-icon { font-weight: 700; }
.pk-file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.pk-templates { display: inline-flex; gap: 8px; margin-left: auto; }
.pk-templates a { color: var(--pk-accent); text-underline-offset: 3px; }
.pk-status.pk-muted { font-weight: 400; color: var(--pk-muted); }
.pk-was { color: var(--pk-muted); font-weight: 400; margin-right: 2px; }
.pk-discount { margin: -4px 0 10px; font-size: 13px; font-weight: 600; color: var(--pk-ok); text-align: right; }
.pk-vat { margin: 6px 0 0; font-size: 12px; color: var(--pk-muted); text-align: center; }
@media (max-width: 480px) { .pk-templates { margin-left: 0; } .pk-discount { text-align: left; } }
