/**
 * HausPrint Catalog — configurator styling.
 *
 * the supplier visual brand tokens (used as the canonical reference — we
 * mirror the supplier's order page exactly so customers feel at home):
 *   --gp-accent       #4c9f9c  (green check / radio-on / Production Time)
 *   --gp-accent-dark  #6ba53b
 *   --gp-accent-bg    #f1f8e9  (selected-card faint background)
 *   --gp-action       #2a6fd1  (blue pill buttons: Upload / Design)
 *   --gp-badge        #e23a3a  (red PDF Proof / Most Popular pills)
 *   --gp-text         #303336
 *   --gp-label        #3d4144  (form labels)
 *   --gp-muted        #7a818b  (subtext)
 *   --gp-border       #d0d6db
 *   --gp-border-strong #b8bfc7
 *   --gp-radius       6px
 *   --gp-control-h    44px
 */
:root,
body.hp-gp-product {
  --gp-accent: #4c9f9c;
  --gp-accent-dark: #6ba53b;
  --gp-accent-bg: #f1f8e9;
  --gp-action: #2a6fd1;
  --gp-badge: #e23a3a;
  --gp-text: #303336;
  --gp-label: #3d4144;
  --gp-muted: #7a818b;
  --gp-border: #d0d6db;
  --gp-border-strong: #b8bfc7;
  --gp-radius: 6px;
  --gp-shadow: 0 1px 2px rgba(20, 24, 30, 0.06);
  --gp-shadow-focus: 0 0 0 3px rgba(133, 198, 74, 0.22);
}

/* Apply the supplier brand to the theme's variation-form .gp-* controls too —
   .gp-form is the theme's render target for Size/Paper/Color/etc. */
body.hp-gp-product .gp-form {
  --gp-accent: #4c9f9c;
  --gp-accent-dark: #6ba53b;
  --gp-accent-bg: #f1f8e9;
}
body.hp-gp-product .gp-toggle.active,
body.hp-gp-product .gp-select-wrap.is-filled .gp-select {
  border-color: #4c9f9c !important;
}
body.hp-gp-product .gp-toggle.active {
  background: #f1f8e9;
  color: #3d4144;
}
/* Only the dropdown's check glyph is recoloured. The toggle-button swatch
   (.gp-toggle-check) keeps the theme's own states: a SOLID square, accent on
   the chosen option and neutral grey on the others — never an outlined empty
   box, which read as an unticked check mark beside every option, and none at
   all on Production Time (QA #2; the supplier's rendered form). */
body.hp-gp-product .gp-select-check {
  color: #4c9f9c !important;
}
body.hp-gp-product .gp-radio-dot {
  border-color: #b8bfc7;
}
body.hp-gp-product .gp-radio-option input[type="radio"]:checked + .gp-radio-dot,
body.hp-gp-product .gp-radio-option input[type="radio"]:checked + .gp-radio-dot::after {
  border-color: #4c9f9c !important;
}
body.hp-gp-product .gp-radio-option input[type="radio"]:checked + .gp-radio-dot::after {
  background: #4c9f9c !important;
}
body.hp-gp-product .gp-price-amount {
  color: #2a8a3a;
  font-weight: 700;
}
body.hp-gp-product .gp-accordion-summary {
  background: #f5f5f5;
  border-bottom: 1px solid #e2e2e2;
  font-weight: 700;
}
body.hp-gp-product .gp-accordion[open] {
  border-color: #d0d6db;
}
body.hp-gp-product .gp-label {
  font-weight: 700;
}

/* `display: contents` lets .hp-gp-options / .hp-gp-status / the artwork
   note join `.gp-form`'s flex column directly once moved, picking up its
   22px row gap. */
.hp-gp-configurator {
  display: contents;
}

.hp-gp-options {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hp-gp-options[hidden] {
  display: none;
}

.hp-gp-option-row {
  display: block;
}

.hp-gp-option-row[hidden] {
  display: none;
}

/* conditional sub-rows (Foil Colors under Raised Print, Design Service
   under Process Type) — a slim indent so they read as nested */
.hp-gp-option-row.hp-gp-child {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 2px solid var(--gp-accent-bg, #ecf6f5);
}

.hp-gp-label {
  display: block;
  margin: 0 0 7px 2px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--gp-label, #3d4144);
  letter-spacing: 0.01em;
}

/* Quantity label + the Size Chart shortcut on its right (garments — QA #19).
   The label keeps its own bottom margin, so the head row carries none. */
.hp-gp-quantity-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hp-gp-size-chart-link {
  margin: 0 2px 7px 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--gp-action, #2a6fd1);
  text-decoration: none;
}

.hp-gp-size-chart-link:hover,
.hp-gp-size-chart-link:focus {
  text-decoration: underline;
}

/* Before the options resolve, the Quantity head stands in with a hint (QA #19). */
.hp-gp-quantity-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--gp-muted, #6b7075);
}

/* ── select — outlined, teal check when filled (matches .gp-select) ── */
.hp-gp-select-wrap {
  position: relative;
}

.hp-gp-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  height: 44px;
  padding: 0 44px 0 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--gp-text, #484848);
  background-color: #fff;
  border: 1px solid var(--gp-border, #d0d6db);
  border-radius: var(--gp-radius, 6px);
  box-shadow: var(--gp-shadow, 0 1px 2px rgba(20, 24, 30, 0.06));
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path d='M3 5.5l4 4 4-4' stroke='%237a818b' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.hp-gp-select:hover {
  border-color: var(--gp-border-strong, #b8bfc7);
}

.hp-gp-select:focus {
  outline: none;
  border-color: var(--gp-accent, #4c9f9c);
  box-shadow: var(--gp-shadow-focus, 0 0 0 3px rgba(76, 159, 156, 0.18));
}

.hp-gp-select option:disabled {
  color: var(--gp-disabled-fg, #b3b8bf);
}

.hp-gp-select-check {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gp-accent, #4c9f9c);
  font-size: 16px;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.hp-gp-select-wrap.is-filled .hp-gp-select {
  border-color: var(--gp-accent, #4c9f9c);
}

.hp-gp-select-wrap.is-filled .hp-gp-select-check {
  opacity: 1;
}

/* ── accordion (Process Type) — matches .gp-accordion ────────────── */
.hp-gp-accordion {
  border: 1px solid var(--gp-border, #d0d6db);
  border-radius: var(--gp-radius, 6px);
  background: #fff;
  box-shadow: var(--gp-shadow, 0 1px 2px rgba(20, 24, 30, 0.06));
  overflow: hidden;
}

.hp-gp-accordion[open] {
  border-color: var(--gp-accent, #4c9f9c);
}

.hp-gp-accordion-summary {
  position: relative;
  padding: 0 38px 0 14px;
  height: 44px;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--gp-label, #3d4144);
  cursor: pointer;
  list-style: none;
}

.hp-gp-accordion-summary::-webkit-details-marker {
  display: none;
}

.hp-gp-accordion-summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--gp-muted, #7a818b);
  line-height: 1;
}

.hp-gp-accordion[open] .hp-gp-accordion-summary::after {
  content: "\2212";
}

.hp-gp-accordion-body {
  border-top: 1px solid var(--gp-border, #d0d6db);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fdfdfe;
}

/* ── radio groups (Foil Colors, file delivery) — radio-dot ───────── */
.hp-gp-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.hp-gp-radio-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.hp-gp-radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hp-gp-radio-dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 2px solid var(--gp-border-strong, #b8bfc7);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
  transition: border-color 0.15s ease;
}

.hp-gp-radio-option:hover .hp-gp-radio-dot {
  border-color: var(--gp-accent, #4c9f9c);
}

.hp-gp-radio-option input[type="radio"]:checked + .hp-gp-radio-dot {
  border-color: var(--gp-accent, #4c9f9c);
}

.hp-gp-radio-option input[type="radio"]:checked + .hp-gp-radio-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--gp-accent, #4c9f9c);
  border-radius: 50%;
}

.hp-gp-radio-text {
  font-size: 14px;
}

.hp-gp-radio-option input[type="radio"]:disabled ~ .hp-gp-radio-text {
  color: var(--gp-disabled-fg, #b3b8bf);
}

.hp-gp-radio-option input[type="radio"]:disabled + .hp-gp-radio-dot {
  border-color: var(--gp-border, #d0d6db);
  background: var(--gp-disabled-bg, #f6f7f9);
}

/* ── card-radio (Design Service) — radios as outlined cards ──────── */
.hp-gp-cards {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.hp-gp-cards .hp-gp-radio-option {
  border: none;
  box-shadow: none;
  padding: 6px 4px;
}

.hp-gp-cards .hp-gp-radio-option:has(input:checked) {
  background: var(--gp-accent-bg, #ecf6f5);
  border-radius: var(--gp-radius, 6px);
}

/* ── icon radios (Roll Labels Wind Position, QA #168) — the supplier's row of
   roll pictures: text-only "Not Important", then one picture per unwind
   direction with its radio + label underneath ──────────────────────── */
.hp-gp-icon-radios {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 6px 10px;
  padding: 12px 14px;
  border: 1px solid var(--gp-border, #d0d6db);
  border-radius: var(--gp-radius, 6px);
  background: #fff;
  box-shadow: var(--gp-shadow, 0 1px 2px rgba(20, 24, 30, 0.06));
}

.hp-gp-icon-radios .hp-gp-radio-option {
  padding: 6px 8px;
  border-radius: var(--gp-radius, 6px);
  transition: background-color 0.15s ease;
}

/* Picture across the top, radio dot + label centred underneath. */
.hp-gp-icon-radios .hp-gp-radio-option.has-icon {
  display: inline-grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  column-gap: 8px;
  row-gap: 6px;
  flex: 0 0 calc(25% - 7.5px);
  box-sizing: border-box;
}

.hp-gp-icon-radios-break {
  flex: 0 0 100%;
  height: 0;
}

.hp-gp-icon-radios img.hp-gp-icon-radio-img {
  grid-column: 1 / -1;
  justify-self: center;
  display: block;
  width: auto;
  max-width: none;
  height: 40px;
}

.hp-gp-icon-radios .hp-gp-radio-option:has(input:checked) {
  background: var(--gp-accent-bg, #ecf6f5);
}

.hp-gp-icon-radios .hp-gp-radio-option:has(input:focus-visible) {
  outline: 2px solid var(--gp-accent, #4c9f9c);
  outline-offset: 1px;
}

@media (max-width: 480px) {
  .hp-gp-icon-radios .hp-gp-radio-option.has-icon {
    flex-basis: calc(50% - 5px);
  }
}

/* ── status line — loading / validation errors only ─────────────────
   The price itself goes to the theme's `.gp-price-amount` subtotal box
   (configurator.js setSubtotal) — never duplicated here. */
.hp-gp-status:empty {
  display: none;
}

.hp-gp-status {
  font-size: 13px;
  font-weight: 500;
  color: #b32d2e;
  margin: -6px 0 0;
}

.hp-gp-status.is-loading {
  color: var(--gp-muted, #7a818b);
  font-weight: 400;
}

/* ── Production Time subtext — enhances the theme's .gp-toggle ────── */
.gp-row[data-attribute="gp_production_time"] .gp-toggle-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.25;
}

.gp-toggle-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--gp-muted, #7a818b);
  margin-top: 2px;
}

.gp-toggle.active .gp-toggle-sub {
  color: var(--gp-accent-dark, #347471);
}

/* ── PDF Proof badge sub-row — rendered under Manually Processed when
   that radio carries a surcharge. Visual ledger of the $X.XX without
   inlining it as a parenthetical on the parent label. ─────────────── */
.hp-gp-pdf-proof-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 2px 28px;
  padding-left: 0;
  padding-top: 6px;
  border-top: 1px solid var(--gp-border, #d0d6db);
}

/* Hidden when its parent Process Type radio isn't selected — needs an
   explicit rule because the class's display:flex would otherwise beat the
   UA [hidden] {display:none}. */
.hp-gp-pdf-proof-row[hidden] {
  display: none;
}

.hp-gp-radio-dot-static {
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2px solid var(--gp-accent, #4c9f9c);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}
.hp-gp-radio-dot-static::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--gp-accent, #4c9f9c);
  border-radius: 50%;
}

.hp-gp-pdf-proof-label {
  font-size: 14px;
  color: var(--gp-text, #484848);
}

.hp-gp-price-badge {
  display: inline-block;
  background: #e23a3a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 2px;
}

/* ── inline-nested child group (parent_choice_key) ────────────────────
   the supplier nests "Upload Files Now / Design Online" INSIDE the
   "Instantly Processed" radio branch. We render it as an .hp-gp-inline
   row sitting indented under the parent radio inside the accordion body. */
.hp-gp-radio-choice {
  display: flex;
  flex-direction: column;
}

.hp-gp-option-row.hp-gp-inline {
  margin: 6px 0 4px 28px;
  padding-top: 8px;
  padding-left: 0;
  border-top: 1px solid var(--gp-border, #d0d6db);
  border-left: 0;
}

.hp-gp-option-row.hp-gp-inline[hidden] {
  display: none;
}

/* Under "Manually Processed" the file-delivery options sit ONE LEVEL DEEPER —
   beneath the "PDF Proof" level — matching the supplier's 3-level hierarchy
   (Manually > PDF Proof > Upload Files Now). The PROOF level itself (a PDF Proof
   sub-row OR a captured proof_type radio group) stays at the normal single
   indent (L2); only the file-delivery group drops to L3. Under Instantly there's
   no PDF Proof level, so those stay at the single indent. */
.hp-gp-option-row.hp-gp-inline[data-parent-choice="manual_soft_proof"]:not([data-group^="proof_type"]) {
  margin-left: 56px;
}

/* Inline child radio groups lay out horizontally to match the supplier's
   "Upload Files Now    Design Online" inline pair. */
.hp-gp-option-row.hp-gp-inline .hp-gp-radio-group {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px 28px;
  padding-top: 0;
}

/* booklets-catalogs Proof Type (PDF Proof / High-Res Hard Copy Proof): the supplier
   STACKS these vertically (each with its red price badge), unlike the single-option
   File Delivery row. Override the inline horizontal layout for this group only. */
.hp-gp-option-row.hp-gp-inline[data-group="proof_type_manual"] .hp-gp-radio-group {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 10px;
}

/* booklets-catalogs Manually Processed: the Proof Type radios sit at level 2 (the
   shared 56px inline indent); the File Delivery group below them sits one level DEEPER
   (level 3), matching the supplier's layout. Both are inline children of manual_soft_proof,
   so add extra indent to the File Delivery group specifically. */
.hp-gp-option-row.hp-gp-inline[data-group="filedeliverymanual"] {
  margin-left: 84px;
}

/* Hide the DnD Pro drag-and-drop dropzone block on the supplier product
   pages — the supplier's order page does not have a persistent dropzone.
   The DnD backend stays in place so future Upload Front / Upload Back
   buttons can trigger an upload modal that USES it. */
body.hp-gp-product .wc-dnd-file-upload {
  display: none !important;
}

/* the supplier's order page does NOT have WooCommerce's purchase widgets.
   The action bar (Upload Front / Upload Back / Design Online / Design
   Services) replaces them. Cart submission lives behind those buttons. */
body.hp-gp-product .single_add_to_cart_button,
body.hp-gp-product .gp-form .quantity,
body.hp-gp-product .gp-form .yith-wcwl-add-to-wishlist,
body.hp-gp-product .gp-form .add-button-wrap,
body.hp-gp-product .gp-form .product-quantity,
body.hp-gp-product .gp-form .buy-now-button,
body.hp-gp-product .gp-form .haru-buy-now-btn-product-page,
body.hp-gp-product .gp-form .product_meta {
  display: none !important;
}

/* ── workflow action bar (Upload Front / Upload Back / Design Online /
   Design Services). Driven by behavior_model.json's
   workflow_action_rules. ─────────────────────────────────────────── */
/* ── action bar — ENFORCED two-row layout ────────────────────────────
   Column stack: uploads row (above) -> validation msg -> buttons row
   (below) -> error. Distinct row containers so uploads ALWAYS sit above
   the buttons and never interleave (the old single flex-wrap row split by
   accident and could mix tiles with buttons on narrow widths). */
.hp-gp-action-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 16px 0 6px;
}

.hp-gp-action-bar[hidden] {
  display: none !important;
}

/* Conditionally-disclosed variation axis (a-frame: No Frame hides Sign Type /
   Frame Color / Material). Override any theme [hidden] reset on .gp-row. */
.gp-row.hp-gp-axis-hidden,
.gp-row[hidden].hp-gp-axis-hidden {
  display: none !important;
}

/* Uploads row: every slot (Upload button OR uploaded tile) is the SAME box,
   inline side by side, wrapping only if the container is too narrow. */
.hp-gp-uploads-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

/* Buttons row: Add to Cart + Proceed to Checkout ALWAYS one row, side by
   side, EQUAL width (flex: 1) within a capped, centered row. */
.hp-gp-buttons-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
}
.hp-gp-buttons-row .hp-gp-action-btn {
  flex: 1 1 0;
  min-width: 0;
}

.hp-gp-action-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: #2a6fd1;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 0 18px;
  height: 46px;
  border-radius: 24px;
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  transition:
    background-color 0.15s ease,
    transform 0.05s ease;
}

.hp-gp-action-btn:hover {
  background: #225bb0;
}
.hp-gp-action-btn:active {
  transform: translateY(1px);
}
.hp-gp-action-btn:disabled,
.hp-gp-action-btn.is-busy {
  opacity: 0.6;
  cursor: default;
}

/* Validation / help text shown while Add to Cart is gated. */
.hp-gp-action-msg {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--gp-muted, #7a818b);
  text-align: center;
}

/* Add-to-cart failure message (was console-only). */
.hp-gp-action-error {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #b32d2e;
  text-align: center;
}
.hp-gp-action-error[hidden] {
  display: none !important;
}

/* Pre-upload "Upload <Side>" control — sized to the SAME box as a tile so a
   slot is dimensionally identical before and after upload. */
/* Compound selector (.hp-gp-action-btn.hp-gp-upload-btn) so these win over the
   later generic `.hp-gp-action-btn { background:#4c9f9c }` brand override. */
.hp-gp-action-btn.hp-gp-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 210px;
  height: 64px;
  background: #fff;
  color: #2a6fd1;
  border: 1.5px dashed #b8c2d4;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 0 12px;
}
.hp-gp-action-btn.hp-gp-upload-btn:hover {
  background: #f5f8fd;
  border-color: #2a6fd1;
  color: #2a6fd1;
}
.hp-gp-upload-btn-icon {
  font-size: 16px;
  line-height: 1;
}

/* ── v2 uploaded-file tile (replaces an Upload <Side> button after upload).
   Matches the supplier's post-upload pattern: thumbnail on the left, side
   label + filename to the right, small × remove control. ────────────── */
.hp-gp-upload-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f7fb;
  border: 1px solid #d8dde7;
  border-radius: 8px;
  padding: 8px 28px 8px 8px; /* right pad leaves room for the × control */
  box-sizing: border-box;
  width: 210px;   /* SAME box as .hp-gp-upload-btn — consistent slot dims */
  height: 64px;
  overflow: hidden;          /* clip a thumbnail that would otherwise spill out */
  position: relative;
}

/* Compound selector + !important: the theme's responsive `img { height: auto }`
   was overriding height:44px, so a PORTRAIT upload rendered ~128px tall and
   poked out the top of the tile (the "You Here" overflow). Lock the thumb to a
   square box regardless of the image's aspect ratio. */
.hp-gp-upload-tile img.hp-gp-upload-thumb,
.hp-gp-upload-thumb {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  max-width: 44px;
  max-height: 44px;
  object-fit: cover;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #e3e6ec;
  flex-shrink: 0;
}

.hp-gp-upload-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #777;
  text-transform: uppercase;
}

.hp-gp-upload-tile-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  font-size: 12px;
  line-height: 1.3;
}

.hp-gp-upload-side {
  font-weight: 700;
  color: #333;
}

.hp-gp-upload-fname {
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-gp-upload-remove {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 4px;
  right: 4px;
  border: none;
  background: transparent;
  color: #999;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.hp-gp-upload-remove:hover {
  background: #e23a3a;
  color: #fff;
}

/* ── widgets (Estimated Shipping, Honest Pricing Guarantee) ────── */
.hp-gp-widgets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0;
}

.hp-gp-widget.hp-gp-est-shipping {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--gp-border, #d0d6db);
  border-radius: var(--gp-radius, 6px);
  background: #fff;
  box-shadow: var(--gp-shadow, 0 1px 2px rgba(20, 24, 30, 0.06));
  cursor: pointer;
}

.hp-gp-widget.hp-gp-est-shipping .hp-gp-widget-label {
  font-weight: 600;
  color: var(--gp-label, #3d4144);
}

.hp-gp-widget.hp-gp-est-shipping .hp-gp-widget-help {
  margin-left: auto;
  margin-right: 10px;
  color: var(--gp-muted, #7a818b);
  font-size: 13px;
}

.hp-gp-widget.hp-gp-est-shipping .hp-gp-widget-toggle {
  color: var(--gp-muted, #7a818b);
  font-size: 20px;
  line-height: 1;
}

.hp-gp-widget.hp-gp-honest-pricing {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gp-accent, #4c9f9c);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  padding: 14px 4px 6px;
  margin: 4px 0 8px;
}

.hp-gp-widget.hp-gp-honest-pricing::before {
  content: "🔒";
  margin-right: 6px;
  font-size: 18px;
}

.hp-gp-widget.hp-gp-honest-pricing:hover {
  color: #4c9f9c;
  cursor: pointer;
}

/* ── loading spinner — replaces the $ amount in the subtotal box
   while /quote is in flight. The amount itself IS the indicator;
   we don't show a separate "Updating price…" status line anymore. */
.gp-price-amount.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.hp-gp-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--gp-border, #d0d6db);
  border-top-color: var(--gp-accent, #4c9f9c);
  border-radius: 50%;
  animation: hp-gp-spin 0.7s linear infinite;
}

@keyframes hp-gp-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── reusable modal + sidebar (Paper Thickness, Honest Pricing, Upload Files)
   ─────────────────────────────────────────────────────────────────────
   Hidden by default; JS toggles `hidden` attr. We use a single class set
   so future v6 component-table content can be slotted in without
   re-styling. */
.hp-gp-modal,
.hp-gp-sidebar {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-gp-modal[hidden],
.hp-gp-sidebar[hidden] {
  display: none !important;
}

.hp-gp-modal-backdrop,
.hp-gp-sidebar-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 38, 46, 0.55);
  animation: hp-gp-fade-in 0.18s ease;
}

.hp-gp-modal-panel {
  position: relative;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 36px 44px 28px;
  max-width: 560px;
  max-height: 88vh;
  overflow: auto;
  animation: hp-gp-pop 0.18s ease;
}

.hp-gp-modal-panel--wide {
  max-width: 720px;
}

.hp-gp-modal-close,
.hp-gp-sidebar-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #7a818b;
  cursor: pointer;
  padding: 4px 8px;
}

.hp-gp-modal-close:hover,
.hp-gp-sidebar-close:hover {
  color: #303336;
}

.hp-gp-modal-title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 400;
  text-align: right;
  color: #444;
}

.hp-gp-modal-title strong {
  font-weight: 700;
}

.hp-gp-modal-body {
  margin: 16px 0 0;
  color: #5b6168;
  font-size: 14px;
  line-height: 1.5;
}

.hp-gp-paper-thickness-image {
  position: relative;
  width: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-gp-paper-thickness-image img {
  max-width: 100%;
  max-height: 320px;
  display: block;
}

.hp-gp-paper-thickness-fallback {
  width: 100%;
  height: auto;
  max-height: 320px;
}

/* ── sidebar (Honest Pricing slide-in) ────────────────────────────── */
.hp-gp-sidebar {
  justify-content: flex-end;
}

.hp-gp-sidebar-panel {
  position: relative;
  width: 460px;
  max-width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
  animation: hp-gp-slide-in 0.22s ease;
  display: flex;
  flex-direction: column;
}

.hp-gp-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 14px;
  border-bottom: 1px solid #eee;
}

.hp-gp-sidebar-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #383b3e;
}

.hp-gp-sidebar-body {
  padding: 8px 24px 28px;
}

.hp-gp-sidebar-section {
  padding: 22px 0;
  border-bottom: 1px solid #f0f0f0;
}

.hp-gp-sidebar-section:last-child {
  border-bottom: none;
}

.hp-gp-sidebar-section h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #4c9f9c;
}

.hp-gp-sidebar-section p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #5b6168;
}

.hp-gp-sidebar-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 22px;
}

/* ── upload modal (Upload tab / My Files tab + dropzone) ───────────── */
.hp-gp-upload-tabs {
  display: flex;
  gap: 0;
  border: 1px solid #d0d6db;
  border-radius: 30px;
  padding: 4px;
  background: #fff;
  max-width: 480px;
  margin: 0 auto 28px;
}

.hp-gp-upload-tab {
  flex: 1;
  background: none;
  border: none;
  border-radius: 24px;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #3d4144;
  cursor: pointer;
}

.hp-gp-upload-tab.is-active {
  background: #4c9f9c;
  color: #fff;
}

.hp-gp-upload-pane {
  display: none;
}
.hp-gp-upload-pane.is-active {
  display: block;
}

.hp-gp-dropzone {
  border: 2px dashed #c9c9c9;
  border-radius: 8px;
  padding: 36px 16px 20px;
  text-align: center;
  color: #6c7178;
  background: #fff;
}

.hp-gp-dropzone-icon {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto 12px;
}

.hp-gp-dropzone-button {
  display: inline-block;
  background: #3a6cc4;
  color: #fff;
  font-weight: 600;
  border-radius: 24px;
  padding: 10px 24px;
  margin-top: 8px;
  cursor: pointer;
}

.hp-gp-dropzone-button:hover {
  background: #2f5aaa;
}

.hp-gp-upload-status {
  margin: 24px 0 8px;
  text-align: center;
  color: #5b6168;
  font-weight: 600;
}

.hp-gp-upload-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hp-gp-upload-continue,
.hp-gp-upload-cancel {
  border: none;
  background: #c4c4c4;
  color: #fff;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 22px;
  cursor: pointer;
}

.hp-gp-upload-continue:not(:disabled) {
  background: #3a6cc4;
}
.hp-gp-upload-cancel {
  background: none;
  color: #3a6cc4;
}

.hp-gp-upload-formats {
  margin-top: 18px;
  text-align: center;
  color: #5b6168;
}

.hp-gp-upload-formats-title {
  font-weight: 700;
  margin: 0 0 4px;
}
.hp-gp-upload-formats-sub {
  font-size: 12px;
  margin: 0 0 14px;
}

.hp-gp-upload-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.hp-gp-upload-chip {
  display: inline-block;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.hp-gp-upload-recommend {
  font-size: 12px;
  line-height: 1.5;
  margin: 0 14px;
}

.hp-gp-upload-no-files {
  text-align: center;
  color: #888;
  font-size: 14px;
  padding: 40px 0;
}

/* The file picked for upload, listed under the drop zone. */
.hp-gp-upload-selected {
  margin: 10px 14px 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--gp-text, #484848);
  text-align: center;
}

/* ── My Files: earlier uploads offered for reuse (QA #42) ───────────── */
.hp-gp-upload-files-hint {
  margin: 14px 14px 10px;
  font-size: 13px;
  color: #666;
}

.hp-gp-upload-file-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin: 0 14px 16px;
  padding: 0;
  list-style: none;
}

.hp-gp-upload-file-list li {
  margin: 0;
  list-style: none;
}

.hp-gp-my-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 8px;
  border: 1px solid var(--gp-border, #d0d6db);
  border-radius: var(--gp-radius, 6px);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hp-gp-my-file:hover,
.hp-gp-my-file:focus-visible {
  border-color: var(--gp-accent, #4c9f9c);
  box-shadow: var(--gp-shadow-focus, 0 0 0 3px rgba(76, 159, 156, 0.18));
  outline: none;
}

.hp-gp-my-file-thumb,
.hp-gp-my-file-ext {
  width: 72px;
  height: 72px;
}

.hp-gp-my-file-thumb {
  display: block;
  max-width: none;
  object-fit: contain;
}

.hp-gp-my-file-ext {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--gp-accent-bg, #ecf6f5);
  color: var(--gp-accent, #4c9f9c);
  font-size: 14px;
  font-weight: 700;
}

.hp-gp-my-file-name {
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.3;
  color: var(--gp-text, #484848);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── animations ───────────────────────────────────────────────────── */
@keyframes hp-gp-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes hp-gp-pop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes hp-gp-slide-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* ── step pages (designServices, manualProcess) — multi-mode order flow.
   Layout is roughly two-column with stacked content on mobile. ───── */
.hp-gp-step {
  max-width: 1140px;
  margin: 28px auto 80px;
  padding: 0 18px;
  font-family: inherit;
}

.hp-gp-step-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.hp-gp-step-title {
  margin: 0;
  font-size: 26px;
  font-weight: 400;
  color: #3d4144;
}

.hp-gp-step-title strong {
  font-weight: 700;
  color: #2a6fd1;
}

.hp-gp-step-edit {
  font-size: 14px;
  color: var(--gp-accent, #4c9f9c);
  text-decoration: none;
  font-weight: 600;
}

.hp-gp-step-edit:hover {
  text-decoration: underline;
}

.hp-gp-step-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

@media (max-width: 860px) {
  .hp-gp-step-layout {
    grid-template-columns: 1fr;
  }
}

.hp-gp-step-left h3,
.hp-gp-step-right h3 {
  font-size: 17px;
  font-weight: 700;
  color: #383b3e;
  margin: 18px 0 10px;
}

.hp-gp-step-summary {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 4px 14px;
  font-size: 14px;
  margin: 0 0 18px;
}

.hp-gp-step-summary dt {
  color: #7a818b;
  font-weight: 600;
}
.hp-gp-step-summary dd {
  margin: 0;
  color: #3d4144;
}

.hp-gp-step-help {
  font-size: 13px;
  color: #5b6168;
  line-height: 1.55;
}

/* design packages */
.hp-gp-design-packages {
  display: flex;
  gap: 14px;
  margin: 0 0 24px;
  flex-wrap: wrap;
}

.hp-gp-design-package {
  flex: 1 1 32%;
  border: 2px solid #d0d6db;
  border-radius: 10px;
  padding: 18px 14px 12px;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.hp-gp-design-package:hover {
  border-color: var(--gp-accent, #4c9f9c);
}
.hp-gp-design-package:has(input:checked),
.hp-gp-design-package.is-default {
  border-color: var(--gp-accent, #4c9f9c);
  background: var(--gp-accent-bg, #ecf6f5);
}

.hp-gp-design-package input {
  position: absolute;
  opacity: 0;
}

.hp-gp-pkg-art {
  display: block;
  width: 60px;
  height: 90px;
  background: linear-gradient(135deg, #c9d4e8, #e6e6f3);
  border-radius: 4px;
}

.hp-gp-pkg-art[data-pkg="silver"] {
  background: linear-gradient(135deg, #d8d8d8, #f0f0f0);
}
.hp-gp-pkg-art[data-pkg="gold"] {
  background: linear-gradient(135deg, #e6c46c, #f6e5a8);
}
.hp-gp-pkg-art[data-pkg="platinum"] {
  background: linear-gradient(135deg, #b9c0d4, #dfe4f1);
}

.hp-gp-pkg-label {
  font-weight: 700;
  font-size: 14px;
}
.hp-gp-pkg-price {
  font-size: 13px;
  color: #5b6168;
}

/* design form fields */
.hp-gp-design-form .hp-gp-form-label {
  display: block;
  margin: 18px 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #383b3e;
}

.hp-gp-design-form textarea {
  width: 100%;
  min-height: 90px;
  padding: 10px 12px;
  border: 1px solid var(--gp-border, #d0d6db);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: #383b3e;
  background: #fff;
  box-shadow: var(--gp-shadow, 0 1px 2px rgba(20, 24, 30, 0.06));
}

.hp-gp-design-form textarea:focus {
  outline: none;
  border-color: var(--gp-accent, #4c9f9c);
  box-shadow: var(--gp-shadow-focus, 0 0 0 3px rgba(76, 159, 156, 0.18));
}

.hp-gp-toggle-fieldset {
  border: none;
  padding: 0;
  margin: 22px 0 6px;
}

.hp-gp-toggle-fieldset legend {
  font-size: 14px;
  font-weight: 700;
  color: #383b3e;
  margin-bottom: 8px;
}

.hp-gp-toggle-fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 22px;
  font-size: 14px;
  cursor: pointer;
}

.hp-gp-design-actions {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hp-gp-add-to-cart,
.hp-gp-checkout {
  min-width: 160px;
}

/* approval page (manualProcess) */
.hp-gp-checklist {
  margin: 0 0 18px;
  padding: 0 0 0 18px;
  color: #5b6168;
  font-size: 14px;
  line-height: 1.6;
}

.hp-gp-approval-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #383b3e;
  margin: 14px 0 22px;
  cursor: pointer;
}

.hp-gp-approval-checkbox input {
  margin-top: 3px;
}

.hp-gp-subtotal-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--gp-border, #d0d6db);
  border-radius: 6px;
  margin: 0 0 16px;
}

.hp-gp-step-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── step page extras (real the supplier content) ────────────────────────────── */
.hp-gp-step-tagline {
  margin: 0;
  color: #7a818b;
  font-size: 14px;
}

.hp-gp-step-pkg-heading {
  font-size: 22px !important;
  font-weight: 400 !important;
}

.hp-gp-step-pkg-heading .hp-gp-pkg-name-selected,
.hp-gp-step-pkg-heading .hp-gp-pkg-price-selected {
  font-weight: 700;
  color: #2a6fd1;
}

.hp-gp-step-pkg-copy {
  font-size: 14px;
  line-height: 1.6;
  color: #5b6168;
  margin: 0 0 14px;
}

.hp-gp-step-pkg-bullets {
  margin: 0 0 20px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: #5b6168;
}

.hp-gp-step-pkg-bullets strong {
  color: #383b3e;
}

.hp-gp-step-summary-block {
  margin: 8px 0 16px;
}

.hp-gp-step-summary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.hp-gp-step-summary-head h3 {
  margin: 0;
}

.hp-gp-summary-edit {
  font-size: 13px;
  color: var(--gp-accent, #4c9f9c);
  text-decoration: none;
  font-weight: 600;
}

.hp-gp-summary-edit:hover {
  text-decoration: underline;
}

.hp-gp-design-package {
  position: relative;
}

.hp-gp-pkg-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #e23a3a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.hp-gp-pkg-cta {
  margin-top: 6px;
  color: var(--gp-accent, #4c9f9c);
  font-size: 13px;
  font-weight: 600;
}

.hp-gp-design-package:has(input:checked) .hp-gp-pkg-cta {
  color: #fff;
  background: #4c9f9c;
  border-radius: 14px;
  padding: 4px 10px;
}

.hp-gp-step-cd-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--gp-accent, #4c9f9c);
}

.hp-gp-step-cd-note a {
  color: var(--gp-accent, #4c9f9c);
}

.hp-gp-step-back-link {
  margin: 16px 0 0;
  font-size: 13px;
  color: #5b6168;
}

.hp-gp-step-back-link a {
  color: var(--gp-accent, #4c9f9c);
  font-weight: 600;
}

.hp-gp-step-view-proof {
  display: inline-block;
  font-size: 14px;
  color: var(--gp-accent, #4c9f9c);
  font-weight: 600;
  margin-bottom: 18px;
  text-decoration: none;
}

.hp-gp-step-view-proof::before {
  content: "📄 ";
}
.hp-gp-step-view-proof:hover {
  text-decoration: underline;
}

.hp-gp-checklist {
  margin: 8px 0 14px;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #5b6168;
}

.hp-gp-checklist a {
  color: var(--gp-accent, #4c9f9c);
  font-weight: 600;
}

/* Layout density tweaks to match the supplier's two-column proportions */
.hp-gp-step-summary {
  grid-template-columns: 150px 1fr;
}

/* ── helper links above form rows (Paper Thickness above Paper) ── */
.hp-gp-helper-link {
  float: right;
  color: var(--gp-accent, #4c9f9c);
  font-size: 13px;
  font-weight: 500;
  margin-top: -22px;
  text-decoration: none;
}

.hp-gp-helper-link:hover {
  text-decoration: underline;
}

/* ── artwork note — shown when the supplier will design the artwork ───── */
.hp-gp-artwork-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--gp-accent, #4c9f9c);
  border-radius: var(--gp-radius, 6px);
  background: var(--gp-accent-bg, #ecf6f5);
  font-size: 13px;
  line-height: 1.45;
  color: var(--gp-accent-dark, #347471);
}

.hp-gp-artwork-note[hidden] {
  display: none;
}

/* ── theme alignment ─────────────────────────────────────────────────
   The configurator's option controls mirror the supplier's green brand, but
   the call-to-action buttons + loader should read as part of THIS store.
   Pangja palette: primary #4c9f9c, secondary (hover) #6ba53b, text #3f3f3f.
   Override the earlier generic blue (#2a6fd1) action-button color. */
.hp-gp-action-btn {
  background: #4c9f9c;
}
.hp-gp-action-btn:hover {
  background: #6ba53b;
}
.hp-gp-action-atc {
  background: #4c9f9c;
}
.hp-gp-action-atc:hover {
  background: #6ba53b;
}

/* ── hide the native WooCommerce quantity stepper on the supplier product pages ──
   The v2 action bar owns add-to-cart; print quantity is chosen via the
   "Quantity" option (50 / 100 / …), not a numeric stepper. WC renders its
   stepper inside .woocommerce-variation-add-to-cart, which the existing
   .single_variation_wrap rule doesn't reliably catch, so hide it here too
   (configurator.css is guaranteed to load on the supplier product pages). */
body.hp-gp-product .woocommerce-variation-add-to-cart .quantity,
body.hp-gp-product .single_variation_wrap .quantity,
body.hp-gp-product .single-product-function .quantity,
body.hp-gp-product form.cart > .quantity {
  display: none !important;
}

/* Stray WooCommerce "View cart" link: WC injects an unstyled
   <a class="added_to_cart"> after an AJAX add. Our flow uses the mini-cart
   + our own buttons, so suppress the bare link inside the action bar. */
body.hp-gp-product .hp-gp-action-bar .added_to_cart {
  display: none !important;
}

/* ── full-screen loading overlay ─────────────────────────────────────
   Network round-trips (add-to-cart, proceed-to-checkout) take a noticeable
   moment; mirror the supplier by masking the page with a centered spinner so
   the user gets immediate feedback instead of a button stuck on "Adding…".
   Spinner uses the theme primary (#4c9f9c). */
.hp-gp-screen-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(1.5px);
  animation: hp-gp-fade-in 0.15s ease;
}

.hp-gp-screen-loader[hidden] {
  display: none !important;
}

.hp-gp-screen-loader-spinner {
  width: 54px;
  height: 54px;
  border: 5px solid rgba(0, 106, 208, 0.18);
  border-top-color: #4c9f9c;
  border-radius: 50%;
  animation: hp-gp-spin 0.7s linear infinite;
}

/* ── Schema-driven customer inputs + circular swatches (the supplier-parity, theme-aligned) ───────── */
.hp-gp-customer-inputs { display: flex; flex-direction: column; gap: 20px; margin-top: 4px; }
.hp-gp-customer-input-row { display: block; }
.hp-gp-ci-label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--gp-label, #3d4144); margin: 0 0 10px;
}
.hp-gp-ci-hint { color: var(--gp-muted, #7a818b); font-weight: 500; }

/* circular swatches — one visual language for garment Color (single) + thread colors (multi) */
.hp-gp-swatch-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.hp-gp-swatch-grid--sm { gap: 10px; }
.hp-gp-swatch {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.hp-gp-swatch-grid--sm .hp-gp-swatch { width: 38px; height: 38px; }
/* clipped (not overlaid) so a click on the label forwards ONE change — no double-toggle — while
   staying keyboard-focusable; the visible .hp-gp-swatch-dot is the click/focus surface. */
.hp-gp-swatch input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hp-gp-swatch-dot {
  width: 100%; height: 100%; border-radius: 50%;
  border: 2px solid var(--gp-border, #d0d6db);
  box-shadow: inset 0 0 0 2px #fff;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.hp-gp-swatch-check {
  color: #fff; font-size: 18px; line-height: 1; font-weight: 700;
  opacity: 0; transform: scale(.6);
  transition: opacity .12s ease, transform .12s ease;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
}
.hp-gp-swatch-grid--sm .hp-gp-swatch-check { font-size: 15px; }
.hp-gp-swatch.is-light .hp-gp-swatch-check { color: #333; text-shadow: none; }
.hp-gp-swatch.is-selected .hp-gp-swatch-dot {
  border-color: var(--gp-accent-dark, #6ba53b);
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--gp-accent-dark, #6ba53b);
}
.hp-gp-swatch.is-selected .hp-gp-swatch-check { opacity: 1; transform: scale(1); }
.hp-gp-swatch:focus-within .hp-gp-swatch-dot {
  box-shadow: inset 0 0 0 2px #fff, var(--gp-shadow-focus, 0 0 0 3px rgba(133, 198, 74, .3));
}
.hp-gp-swatch.is-locked { opacity: .4; cursor: not-allowed; }
.hp-gp-swatch.is-locked input { cursor: not-allowed; }
/* A colour the currently selected sibling axis (e.g. cup Style) does not offer: WooCommerce
   removed it from the native select, so it must not render as a clickable dot either. */
.hp-gp-swatch.is-unavailable { display: none; }
.hp-gp-color-swatches { margin-top: 2px; }

/* embroidery notes — themed textarea (mirrors .hp-gp-select) */
.hp-gp-ci-textarea {
  width: 100%; min-height: 84px; box-sizing: border-box;
  font: inherit; font-size: 14px; color: var(--gp-text, #303336);
  padding: 10px 12px; background: #fff;
  border: 1px solid var(--gp-border, #d0d6db); border-radius: var(--gp-radius, 6px);
  resize: vertical; transition: border-color .12s ease, box-shadow .12s ease;
}
.hp-gp-ci-textarea:focus {
  outline: none; border-color: var(--gp-accent, #4c9f9c);
  box-shadow: var(--gp-shadow-focus, 0 0 0 3px rgba(76, 159, 156, .18));
}

/* single-line customer input (event-tickets Starting Number) — same box as .hp-gp-select,
   no chevron, so the fill tick sits at the right edge */
.hp-gp-ci-text {
  width: 100%; height: 44px; box-sizing: border-box;
  padding: 0 40px 0 14px; font: inherit; font-size: 14px; color: var(--gp-text, #484848);
  background: #fff; border: 1px solid var(--gp-border, #d0d6db); border-radius: var(--gp-radius, 6px);
  box-shadow: var(--gp-shadow, 0 1px 2px rgba(20, 24, 30, 0.06));
  transition: border-color .12s ease, box-shadow .12s ease;
}
.hp-gp-ci-text:focus {
  outline: none; border-color: var(--gp-accent, #4c9f9c);
  box-shadow: var(--gp-shadow-focus, 0 0 0 3px rgba(76, 159, 156, .18));
}
.hp-gp-ci-text-wrap .hp-gp-select-check { right: 14px; }
.hp-gp-ci-text-wrap.is-filled .hp-gp-ci-text { border-color: var(--gp-accent, #4c9f9c); }
.hp-gp-customer-input-row.is-invalid .hp-gp-ci-text,
.hp-gp-option-row.is-invalid .hp-gp-select { border-color: #d0021b; }
/* the supplier's red "Required" marker, ~40px in from the right edge on selects and text fields
   alike (a customer-input row also carries .hp-gp-option-row, so ONE rule covers both wraps) */
.hp-gp-option-row.is-invalid > .hp-gp-select-wrap::after {
  content: "Required"; position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
  color: #d0021b; font-size: 12px; font-weight: 700; pointer-events: none;
}

/* embroidery guidelines — notice panel + accepted state */
.hp-gp-notice {
  border: 1px solid var(--gp-border, #d0d6db); border-left: 3px solid var(--gp-border-strong, #b8bfc7);
  background: #f7f9fb; border-radius: var(--gp-radius, 6px);
  padding: 14px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.hp-gp-notice-body { font-size: 13px; line-height: 1.5; color: var(--gp-muted, #7a818b); }
.hp-gp-notice.is-accepted { border-left-color: var(--gp-accent-dark, #6ba53b); background: var(--gp-accent-bg, #f1f8e9); }
.hp-gp-ci-agree { height: 40px; padding: 0 20px; }
.hp-gp-ci-agree.is-accepted { background: var(--gp-accent-dark, #6ba53b); }

/* keep native controls for a11y + submission, but visually hidden (the styled control is visible) */
.hp-gp-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (max-width: 600px) {
  .hp-gp-swatch { width: 40px; height: 40px; }
  .hp-gp-swatch-grid--sm .hp-gp-swatch { width: 34px; height: 34px; }
}

/* ── Fixed single-value display controls (Type / Embroidery Type) — the supplier renders these as filled
      singleOption selects; we show a themed, non-editable field (display-only, no submission). ───── */
.hp-gp-fixed-controls { display: flex; flex-direction: column; gap: 16px; }
.hp-gp-fixed-label { display: block; font-size: 14px; font-weight: 600; color: var(--gp-label, #3d4144); margin: 0 0 8px; }
.hp-gp-fixed-select:disabled {
  opacity: 1; color: var(--gp-text, #303336); background: #fff; cursor: default;
  -webkit-text-fill-color: var(--gp-text, #303336); /* keep value legible in WebKit disabled state */
}
.hp-gp-fixed-wrap { position: relative; }
/* a subtle "set" check on the right, echoing the supplier's green confirmation tick */
.hp-gp-fixed-wrap::after {
  content: "\2713"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--gp-accent, #4c9f9c); font-weight: 700; pointer-events: none;
}

/* ── Upload-modal guidelines gate (Embroidery Guidelines) — shown before the file picker; Agree
      required to reveal it. Built from the product's flow_acknowledgement. ───────────────────────── */
.hp-gp-upload-gate { padding: 4px 4px 8px; max-width: 520px; margin: 0 auto; }
.hp-gp-gate-title {
  margin: 0 -4px 16px; padding: 12px 16px; text-align: center;
  background: var(--gp-accent-dark, #6ba53b); color: #fff; font-size: 16px; font-weight: 700;
  border-radius: var(--gp-radius, 6px) var(--gp-radius, 6px) 0 0;
}
.hp-gp-gate-subtitle { margin: 14px 0 8px; font-size: 15px; font-weight: 700; color: var(--gp-text, #303336); text-align: center; }
.hp-gp-gate-list { list-style: none; margin: 0 0 8px; padding: 0; }
.hp-gp-gate-list li {
  position: relative; padding: 4px 0 4px 26px; font-size: 14px; color: var(--gp-text, #303336);
}
.hp-gp-gate-list li::before {
  content: "\2713"; position: absolute; left: 4px; top: 4px; color: var(--gp-accent, #4c9f9c); font-weight: 700;
}
.hp-gp-gate-agreement { margin: 14px 0 18px; font-size: 13px; line-height: 1.5; color: var(--gp-muted, #7a818b); }
.hp-gp-gate-body { margin: 12px 0 18px; font-size: 14px; line-height: 1.5; color: var(--gp-text, #303336); }
.hp-gp-gate-agree { display: block; margin: 0 auto; min-width: 160px; }

/* display-only notices inside the form (puzzles choking hazard) — the supplier's red warning block */
.hp-gp-notice-row { padding: 6px 0 2px; }
.hp-gp-notice-box { display: flex; align-items: flex-start; gap: 10px; }
.hp-gp-notice-icon { font-size: 26px; line-height: 1; color: #f0b400; flex: 0 0 auto; }
.hp-gp-notice-text { display: flex; flex-direction: column; line-height: 1.25; }
.hp-gp-notice-title { font-size: 15px; font-weight: 700; color: #c8281e; }
.hp-gp-notice-sub { font-size: 12px; color: #c8281e; }
.hp-gp-notice-info .hp-gp-notice-icon { color: var(--gp-accent, #4c9f9c); }
.hp-gp-notice-info .hp-gp-notice-title, .hp-gp-notice-info .hp-gp-notice-sub { color: var(--gp-text, #2b2f33); }
/* upload modal: per-family format rejection message */
.hp-gp-upload-status--error { color: #c8281e; font-weight: 600; }

/* "?" tooltips beside a header label or inside a toggle (the supplier's question-circle
   popovers on Production Time / Coating / Rush, QA #205). Hover or focus shows the text;
   tap toggles it (is-open) for touch. */
.hp-gp-tip {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; margin-left: 6px; padding: 0; border: 0; border-radius: 50%;
  background: var(--gp-accent, #4c9f9c); color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
  cursor: help; vertical-align: middle; flex: 0 0 auto;
}
.hp-gp-tip:focus { outline: 2px solid var(--gp-accent, #4c9f9c); outline-offset: 2px; }
.gp-toggle .hp-gp-tip { width: 14px; height: 14px; font-size: 10px; margin-left: 4px; background: var(--gp-muted, #7a818b); }
.hp-gp-tip-pop {
  display: none; position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  width: 300px; max-width: 80vw; padding: 10px 12px; border-radius: 6px; background: #2b2f33; color: #fff;
  font-size: 12px; font-weight: 400; line-height: 1.45; text-align: left; text-transform: none; letter-spacing: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25); z-index: 30; white-space: normal; cursor: default;
}
.hp-gp-tip-pop::after {
  content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px;
  border: 6px solid transparent; border-top-color: #2b2f33;
}
.hp-gp-tip:hover .hp-gp-tip-pop, .hp-gp-tip:focus .hp-gp-tip-pop, .hp-gp-tip.is-open .hp-gp-tip-pop { display: block; }
.gp-row .gp-label, .hp-gp-option-row .hp-gp-label { display: inline-flex; align-items: center; }
