.bsp-customizer, .bsp-gallery, .bsp-zoom {
  --bsp-ink: #121212;
  --bsp-muted: #55554f;
  --bsp-paper: #f6f6f3;
  --bsp-border: #d8d8d2;
  --bsp-accent: #f03a21;
}
.bsp-customizer {
  color: var(--bsp-ink);
  margin: 20px 0;
  padding: 20px 0 14px;
  border-top: 1px solid var(--bsp-border);
  border-bottom: 1px solid var(--bsp-border);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  width: 100%;
  min-width: 0;
  container-type: inline-size;
}
.bsp-customizer *, .bsp-customizer *::before, .bsp-customizer *::after { box-sizing: border-box; }
.bsp-customizer [hidden] { display: none !important; }
.bsp-customizer h2, .bsp-customizer h3, .bsp-customizer legend, .bsp-title {
  color: var(--bsp-ink);
  font-family: "BSA Oswald", "Oswald", Arial, sans-serif;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .015em;
}
.bsp-customizer h2, .bsp-customizer > h3, .bsp-title { font-size: 22px; margin: 0 0 8px; }
.bsp-customizer h3 { font-size: 19px; margin: 0 0 12px; }
.bsp-intro, .bsp-customizer > h3 + p { margin: 0 0 18px; max-width: 52ch; }
.bsp-customizer fieldset { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.bsp-customizer legend { padding: 0; margin: 0 0 8px; font-size: 15px; }
.bsp-fonts, .bsp-font-options { display: flex; flex-wrap: wrap; gap: 8px; }
fieldset.bsp-fonts { display: block; }
.bsp-customizer label:has(input[name="bsp[font]"]) {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 44px;
  min-width: 74px;
  max-width: 100%;
  margin: 0;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--bsp-border);
  color: var(--bsp-ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.bsp-customizer label:has(input[name="bsp[font]"]:checked) {
  border: 2px solid var(--bsp-accent);
  padding: 7px 11px;
  background: #fff8f6;
}
.bsp-customizer label:has(input[name="bsp[font]"]:not(:checked)):hover { border-color: var(--bsp-ink); }
.bsp-customizer label:has(input[name="bsp[font]"]:focus-visible) { outline: 2px solid var(--bsp-ink); outline-offset: 3px; }
.bsp-font-options label:has(input[value="humane"]) span { font-size: 28px; line-height: 1; text-transform: uppercase; }
.bsp-customizer .bsp-design-options { margin: 0 0 20px; }
.bsp-design-options > .bsp-design-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.bsp-customizer .bsp-design-group-title { margin: 14px 0 8px; font: 600 13px/1.5 Arial, Helvetica, sans-serif; }
.bsp-customizer .bsp-design-options label:has(input[name="bsp[design]"]) {
  position: relative; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 44px;
  margin: 0; padding: 8px 11px; border: 1px solid var(--bsp-border); background: #fff; color: #121212;
  font: 13px/1.4 Arial, Helvetica, sans-serif; font-weight: 400; cursor: pointer;
}
.bsp-customizer .bsp-design-options label:has(input[name="bsp[design]"]:checked) { padding: 7px 10px; border: 2px solid var(--bsp-accent); background: #fff8f6; }
.bsp-customizer .bsp-design-options label:has(input[name="bsp[design]"]:focus-visible) { outline: 2px solid #121212; outline-offset: 3px; }
.bsp-customizer input[name="bsp[font]"], .bsp-customizer input[name="bsp[design]"] {
  position: absolute; inset: 0; z-index: 1; opacity: 0; width: 100%; height: 100%; min-width: 0; min-height: 0; margin: 0; cursor: pointer;
}
.bsp-design-swatch { display: block; flex: 0 0 20px; width: 20px; height: 20px; border: 1px solid #a3a39a; border-radius: 50%; background: var(--bsp-ink, #ffffff); }
.bsp-design-options .woocommerce-Price-amount { white-space: nowrap; }
.bsp-design-option-name { min-width: 0; overflow-wrap: anywhere; }
.bsp-design-option-price { color: #55554f; font-size: 12px; white-space: nowrap; }
.bsp-customizer .bsp-design-summary { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bsp-design-choices [data-bsp-free-design] .bsp-design-option-price { display: none; }
.bsp-customizer [data-bsp-design-total] { display: block; margin: 8px 0 0; color: #121212; font: 600 17px/1.4 Arial, Helvetica, sans-serif; }
.bsp-customizer [data-bsp-design-total] + .bsp-help { margin: 8px 0 20px; }
.bsp-customizer [data-bsp-design-total] + .bsp-surface { margin-top: 20px; }
.bsp-design-contrast { margin: 10px 0 0; color: #55554f; font: 13px/1.5 Arial, Helvetica, sans-serif; }
.bsp-surface { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0 0 20px; min-width: 0; }
.bsp-controls { position: relative; min-width: 0; }
.bsp-controls > label { display: block; margin: 0 0 8px; font-weight: 700; }
.bsp-customizer .bsp-align-options { margin: 14px 0 0; padding: 0; border: 0; min-width: 0; }
.bsp-align-options legend { margin: 0 0 7px; padding: 0; font: 600 13px/1.5 Arial, Helvetica, sans-serif; }
.bsp-align-options > div { display: flex; flex-wrap: wrap; gap: 6px; }
.bsp-customizer .bsp-align-options label {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; margin: 0; padding: 9px 12px; border: 1px solid var(--bsp-border); background: #fff;
  color: var(--bsp-ink); font: 13px/1.4 Arial, Helvetica, sans-serif; cursor: pointer;
}
.bsp-customizer .bsp-align-options input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.bsp-customizer .bsp-align-options label:has(input:checked) { padding: 8px 11px; border: 2px solid var(--bsp-accent); background: #fff8f6; }
.bsp-customizer .bsp-align-options label:has(input:focus-visible) { outline: 2px solid var(--bsp-ink); outline-offset: 3px; }
.bsp-customizer .bsp-align-options label:has(input:not(:checked)):hover { border-color: var(--bsp-ink); }
.bsp-align-icon { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.bsp-customizer .bsp-surface textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 96px;
  margin: 0;
  padding: 12px;
  border: 1px solid #8b8b83;
  border-radius: 0;
  background: #fff;
  color: var(--bsp-ink);
  box-shadow: none;
  font: 16px/1.45 Arial, Helvetica, sans-serif;
  resize: vertical;
}
.bsp-customizer .bsp-surface textarea:focus { outline: 2px solid var(--bsp-ink); outline-offset: 2px; }
.bsp-customizer .bsp-surface textarea[aria-invalid="true"] { border-color: #b62616; }
.bsp-customizer .bsp-surface--single textarea { min-height: 46px; height: 46px; padding: 10px 12px; line-height: 24px; resize: none; }
.bsp-customizer .bsp-surface--single .bsp-count--single { position: absolute; right: 0; top: 0; margin: 0; padding-left: 8px; background: #fff; font-size: 11px; }
.bsp-customizer .bsp-surface--single .bsp-controls > label { padding-right: 48px; }
.bsp-back-note { margin: 6px 0 0; color: #55554f; font-size: 12px; line-height: 1.5; }
.bsas-keytag-form:has(.bsp-customizer--keytag) .bsas-keytag-note { display: none; }
.bsp-count, .bsp-hint, .bsp-help, .bsp-note, .bsp-preview-note { color: var(--bsp-muted); font-size: 13px; line-height: 1.5; margin: 8px 0 0; }
.bsp-count { display: block; }
.bsp-error, .bsp-status { color: #a62314; font-size: 13px; line-height: 1.45; margin: 8px 0 0; }
.bsp-status { margin-bottom: 20px; }
.bsp-customizer[data-bsp-state="loading"] .bsp-status { color: var(--bsp-muted); }
.bsp-preview-wrap { position: relative; width: 100%; min-width: 0; align-self: start; overflow: hidden; border: 1px solid var(--bsp-border); background: #fff; }
.bsp-preview { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.bsp-preview text { text-transform: none; opacity: 1 !important; }
.bsp-preview text, .bsp-preview tspan { stroke: none; }
.bsp-preview-wrap.is-unavailable { display: grid; place-items: center; aspect-ratio: 1; background: var(--bsp-paper); }
.bsp-preview-message { max-width: 32ch; padding: 24px; margin: 0; text-align: center; color: var(--bsp-muted); font-size: 14px; line-height: 1.5; }
@container (min-width: 480px) {
  .bsp-surface { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
}
@container (max-width: 479px) {
  .bsp-design-options > .bsp-design-choices--reflective { display: grid; grid-template-columns: minmax(0, 1fr); }
  .bsp-design-choices--reflective .bsp-design-option-price { margin-left: auto; }
  .bsp-font-options:has(> label:nth-child(4)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsp-font-options:has(> label:nth-child(4)) > label { min-width: 0; }
}
.bsp-in-gallery .bsp-surface { display: block; }
.bsp-in-gallery .bsp-surface > .bsp-preview-wrap { display: none; }
.gallery.bsp-gallery-active > .gallery-stage,
.gallery.bsp-gallery-active > .thumbnails,
.gallery.bsp-gallery-active > .gallery-caption { display: none !important; }
.bsp-gallery { width: 100%; min-width: 0; color: var(--bsp-ink); scroll-margin-top: 24px; font: 14px/1.5 Arial, Helvetica, sans-serif; }
.bsp-gallery *, .bsp-zoom * { box-sizing: border-box; }
.bsp-gallery [hidden], .bsp-gallery[hidden], .bsp-zoom [hidden] { display: none !important; }
.bsp-gallery-surfaces, .bsp-gallery-views { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.bsp-gallery .bsp-gallery-option {
  appearance: none; min-height: 44px; margin: 0; padding: 9px 16px;
  border: 1px solid var(--bsp-border); border-radius: 0;
  background: #fff; color: var(--bsp-ink); box-shadow: none;
  font: 500 14px/1.4 Arial, Helvetica, sans-serif; text-transform: none; cursor: pointer;
}
.bsp-gallery .bsp-gallery-option[aria-pressed="true"] { border: 2px solid var(--bsp-accent); padding: 8px 15px; background: #fff8f6; }
.bsp-gallery .bsp-gallery-option:not([aria-pressed="true"]):hover { border-color: var(--bsp-ink); }
.bsp-gallery-stage { position: relative; width: 100%; min-width: 0; background: #fff; }
.bsp-gallery .bsp-gallery-zoom {
  appearance: none; position: relative; display: block; width: 100%; height: auto; min-height: 0; margin: 0; padding: 0;
  overflow: hidden; border: 0; border-radius: 0; background: #fff; color: var(--bsp-ink); box-shadow: none; cursor: zoom-in;
}
.bsp-gallery .bsp-gallery-zoom.is-unavailable { min-height: 240px; aspect-ratio: 1; background: var(--bsp-paper); cursor: default; }
.bsp-gallery-zoom-icon { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 38px; height: 38px; background: #fffffff0; color: var(--bsp-ink); font: 22px/1 Arial, sans-serif; }
.bsp-gallery .bsp-preview, .bsp-zoom .bsp-preview { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 1; fill: none; opacity: 1; }
.bsp-gallery-caption, .bsp-gallery-note { margin: 10px 0 0; color: var(--bsp-muted); font: 12px/1.5 Arial, Helvetica, sans-serif; }
.bsp-gallery-caption { color: var(--bsp-ink); }
.bsp-gallery--keytag .bsp-gallery-stage { padding: 28px 0; border-top: 1px solid #e9e9e3; border-bottom: 1px solid #e9e9e3; }
.bsp-gallery--keytag .bsp-gallery-zoom-icon { right: 8px; bottom: 0; width: 30px; height: 30px; font-size: 18px; }
.gallery > .bsp-gallery-originals, .bsp-customizer > .bsp-preview-link {
  appearance: none; display: inline-block; min-height: 44px; height: auto; margin: 6px 0 0; padding: 10px 0;
  border: 0; border-radius: 0; box-shadow: none; background: transparent; color: #121212;
  text-decoration: underline; text-underline-offset: 4px; text-transform: none; font: 13px/1.5 Arial, Helvetica, sans-serif; cursor: pointer;
}
.bsp-customizer > .bsp-preview-link { display: none; margin: 0 0 12px; }
.bsp-native-colors .bsp-color-select {
  position: absolute !important; width: 1px !important; height: 1px !important; min-width: 0 !important; min-height: 0 !important;
  margin: -1px !important; padding: 0 !important; border: 0 !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important;
}
.bsp-native-colors .bsp-color-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.bsp-native-colors .bsp-color-option {
  appearance: none; display: inline-flex; align-items: center; gap: 9px; width: auto; min-width: 90px; min-height: 44px; height: auto;
  margin: 0; padding: 9px 14px; border: 1px solid #d8d8d2; border-radius: 0; box-shadow: none;
  background: #fff; color: #121212; font: 14px/1.4 Arial, Helvetica, sans-serif; text-transform: none; cursor: pointer;
}
.bsp-native-colors .bsp-color-option[aria-pressed="true"] { border: 2px solid #f03a21; padding: 8px 13px; background: #fff8f6; }
.bsp-native-colors .bsp-color-option:not([aria-pressed="true"]):hover { border-color: #121212; }
.bsp-native-colors .bsp-color-option:disabled { opacity: .45; cursor: not-allowed; }
.bsp-native-colors .bsp-color-option:focus-visible { outline: 2px solid #121212; outline-offset: 3px; }
.bsp-color-dot { display: block; flex: 0 0 20px; width: 20px; height: 20px; border: 1px solid #a3a39a; border-radius: 50%; }
.bsp-gallery button:focus-visible, .bsp-gallery-originals:focus-visible, .bsp-preview-link:focus-visible, .bsp-zoom-close:focus-visible { outline: 2px solid #121212; outline-offset: 3px; }
dialog.bsp-zoom {
  position: fixed; inset: 0; width: min(94vw, 94dvh, 1050px); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px);
  margin: auto; padding: 0; overflow: auto; border: 0; background: #fff; color: #121212;
}
dialog.bsp-zoom::backdrop { background: #000a; }
.bsp-zoom .bsp-zoom-close { position: sticky; top: 0; z-index: 1; display: block; min-height: 44px; height: auto; margin: 0 0 0 auto; padding: 10px 16px; border: 0; border-radius: 0; background: #fffffff2; color: #121212; box-shadow: none; font: 14px/1.5 Arial, Helvetica, sans-serif; cursor: pointer; }
.bsp-zoom-content { margin-top: 0; }
.bsp-zoom .bsp-preview { max-height: calc(100dvh - 76px); }
@media (min-width: 781px) {
  .gallery.bsp-gallery-active { position: sticky; top: 20px; }
  .bsp-gallery .bsp-preview { max-height: calc(100dvh - 190px); }
}
@media (max-width: 780px) {
  .bsp-customizer > .bsp-preview-link { position: sticky; top: 8px; z-index: 3; display: inline-block; margin: 0 0 14px; padding: 10px 12px; border: 1px solid #d8d8d2; background: #fffffff7; font-size: 12px; }
  .bsp-gallery .bsp-gallery-option { padding-inline: 12px; font-size: 13px; }
  .bsp-gallery .bsp-gallery-option[aria-pressed="true"] { padding-inline: 11px; }
  .bsp-gallery-note { font-size: 12px; }
  .bsp-gallery--keytag .bsp-gallery-stage { padding: 20px 0; }
  .bsp-customizer label:has(input[name="bsp[font]"]) { padding-inline: 10px; font-size: 15px; }
  .bsp-customizer label:has(input[name="bsp[font]"]:checked) { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .bsp-customizer label:has(input[name="bsp[font]"]) { transition: none; }
}
