.ss-vr {
  margin: 1.25rem 0 0.5rem;
  width: 100%;
}

.ss-vr--page {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0.35rem 1.25rem 3rem; /* page H1 removed — sit content higher */
}

.ss-vr-open {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0;
  opacity: 0.9;
}

.ss-vr-open:hover {
  opacity: 1;
}

/* Custom sits in the size swatch row with the size pills */
.ss-swatches--size .ss-vr-open--size-row,
.ss-vr-open--size-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 0.75rem;
  min-height: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  border: 1px dashed rgba(44, 37, 34, 0.35);
  background: #fff;
  color: #2c2522;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}

.ss-swatches--size .ss-vr-open--size-row:hover,
.ss-vr-open--size-row:hover {
  border-color: rgba(212, 175, 55, 0.85);
  border-style: solid;
  background: #faf7f0;
  color: #2c2522;
}

.ss-swatches--size {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.ss-vr-product-card {
  display: grid;
  gap: 0.85rem 1.1rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  align-items: center; /* optical middle vs tall wrapped titles */
}

@media (min-width: 640px) {
  .ss-vr-product-card {
    grid-template-columns: 10.5rem minmax(0, 1fr);
  }
}

.ss-vr-product-thumb {
  display: block;
  align-self: start; /* image stays top; meta can sit centered beside it */
}

.ss-vr-product-thumb img {
  display: block;
  width: 100%;
  max-width: 10.5rem;
  border-radius: 12px;
  background: #f3efe6;
}

.ss-vr-product-meta {
  min-width: 0;
  padding-top: 0.1rem; /* nudge text to match image top edge optically */
}

.ss-vr-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}

/* Beat theme .entry-content h1 clamp(~55px); keep to ~2 lines */
.ss-vr--page .ss-vr-product-title,
.entry-content .ss-vr-product-title,
.ss-vr-product-title {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
}

.ss-vr--page .ss-vr-product-price,
.entry-content .ss-vr-product-price,
.ss-vr-product-price {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}

.ss-vr--page .ss-vr-product-price .amount,
.entry-content .ss-vr-product-price .amount {
  font-size: inherit;
}

.ss-vr-product-note {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  opacity: 0.8;
  line-height: 1.4;
  max-width: 36em;
}

.ss-vr-product-meta .ss-vr-back {
  font-size: 0.84rem;
}

.ss-vr-back {
  color: inherit;
}

.ss-vr-panel {
  margin-top: 0;
  padding: 1.15rem 1.2rem 1.35rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
}

/* Request page sits on cream — use ink contrast, not dark-overlay tokens */
.ss-vr-panel--page {
  max-width: none;
  border: 1px solid rgba(24, 24, 26, 0.12);
  background: #fff;
  color: #18181a;
}

.ss-vr--page .ss-vr-product-card {
  border-bottom-color: rgba(24, 24, 26, 0.12);
}

.ss-vr--page .ss-vr-swatch,
.ss-vr--page .ss-vr-size {
  border-color: rgba(24, 24, 26, 0.22);
  background: #faf7f0;
  color: #18181a;
}

.ss-vr--page .ss-vr-field {
  border-color: rgba(24, 24, 26, 0.2);
  background: #fff;
  color: #18181a;
}

.ss-vr--page .ss-vr-submit {
  background: #d4af37;
  color: #18181a;
}

.ss-vr--page .ss-vr-status.is-error {
  color: #8b1e1e;
}

.ss-vr--page .ss-vr-status.is-ok {
  color: #1e5c2e;
}

.ss-vr-panel[hidden] {
  display: none !important;
}

.ss-vr-form-title,
.ss-vr-panel h2,
.ss-vr-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
}

/* Primary page heading after entry-title removed — beat .entry-content h1 clamp */
.ss-vr--page .ss-vr-form-title,
.entry-content .ss-vr-form-title,
.ss-vr-form-title {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
}

.ss-vr-thanks {
  margin: 0;
  padding: 1.25rem 1.15rem 1.35rem;
  border-radius: 14px;
  border: 1px solid rgba(24, 24, 26, 0.14);
  background: #fff;
  color: #18181a;
  box-shadow: 0 1px 0 rgba(24, 24, 26, 0.04);
}

.ss-vr-thanks:focus {
  outline: none;
}

.ss-vr-thanks h2,
.ss-vr-thanks-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
}

.ss-vr-thanks p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.ss-vr-thanks .ss-vr-back {
  font-weight: 600;
}

.ss-vr-missing {
  max-width: 36rem;
  margin: 2rem auto;
  padding: 0 1rem;
}

.ss-vr-lede {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.45;
}

.ss-vr-label {
  display: block;
  margin: 0.85rem 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.ss-vr-swatches,
.ss-vr-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* Color grid + help card: help first on mobile (full width), beside colors on desktop */
.ss-vr-color-row {
  display: grid;
  gap: 1rem 1.25rem;
  align-items: start;
  margin-bottom: 0.25rem;
}

.ss-vr-color-main {
  order: 2;
  min-width: 0;
}

.ss-vr-help {
  order: 1; /* above color+size on narrow screens */
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(24, 24, 26, 0.16);
  background: #fff;
  color: #18181a;
  box-shadow: 0 1px 0 rgba(24, 24, 26, 0.04);
}

@media (min-width: 720px) {
  .ss-vr-color-row {
    grid-template-columns: minmax(0, 22rem) minmax(14rem, 1fr);
    align-items: center; /* help sits mid-swatch block */
  }

  .ss-vr-color-main {
    order: 1; /* left */
  }

  .ss-vr-help {
    order: 2; /* right of swatches */
  }
}

.ss-vr-label .ss-vr-req {
  color: #8b1e1e;
  font-weight: 700;
}

.ss-vr-swatches.is-invalid,
.ss-vr-sizes.is-invalid {
  outline: 2px solid #8b1e1e;
  outline-offset: 4px;
  border-radius: 8px;
}

.ss-vr-field.is-invalid {
  outline: 2px solid #8b1e1e;
  outline-offset: 1px;
}

.ss-vr-help-title {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: #18181a;
}

.ss-vr-help-body,
.ss-vr-help-next,
.ss-vr-help-foot {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #18181a;
  opacity: 0.82;
}

.ss-vr-help-steps {
  margin: 0 0 0.55rem;
  padding-left: 1.15rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #18181a;
  opacity: 0.9;
}

.ss-vr-help-steps li {
  margin: 0.15rem 0;
}

.ss-vr-help-next {
  opacity: 0.9;
}

.ss-vr-help-foot {
  margin-bottom: 0;
  font-size: 0.75rem;
  opacity: 0.68;
}

.ss-vr-swatch-hint {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  opacity: 0.65;
}

/* Printful Bella+Canvas compact square swatches (from Printful color-picker) */
.ss-vr-swatches--printful {
  gap: 6px;
  max-width: 22rem;
}

.ss-vr-swatch--pf {
  position: relative;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  overflow: visible;
}

.ss-vr-swatch--pf .ss-vr-swatch-fill {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.ss-vr-swatch--pf.is-light .ss-vr-swatch-fill {
  border-color: rgba(0, 0, 0, 0.2);
}

.ss-vr-swatch--pf::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 8px;
  border: 2px solid transparent;
  pointer-events: none;
}

.ss-vr-swatch--pf:hover::after {
  border-color: #6b6560;
}

.ss-vr-swatch--pf[aria-pressed="true"]::after {
  border-color: #18181a;
  box-shadow: 0 0 0 1px #fff;
}

.ss-vr-swatch--pf.is-available .ss-vr-swatch-fill {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.65);
}

.ss-vr-swatch-caption {
  margin: 0.35rem 0 0;
  min-height: 1.2em;
  font-size: 0.85rem;
  opacity: 0.85;
}

.ss-vr-swatch,
.ss-vr-size {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.ss-vr-size[aria-pressed="true"] {
  outline: 2px solid #18181a;
  outline-offset: 1px;
  border-color: #18181a;
  background: #fff;
  color: #18181a;
}

.ss-vr-swatch:disabled,
.ss-vr-size:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}

.ss-vr-size {
  min-width: 2.6rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.ss-vr-field {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font: inherit;
}

.ss-vr-field:focus {
  outline: 2px solid #e8c36a;
  outline-offset: 1px;
}

.ss-vr-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.65rem 0;
  font-size: 0.88rem;
  line-height: 1.4;
}

.ss-vr-check input {
  margin-top: 0.2rem;
}

.ss-vr-legal {
  margin: 0.75rem 0 1rem;
  font-size: 0.78rem;
  opacity: 0.75;
  line-height: 1.45;
}

.ss-vr-legal a {
  color: inherit;
}

.ss-vr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.ss-vr-submit {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: #e8c36a;
  color: #1a1208;
}

.ss-vr-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ss-vr-cancel {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.ss-vr-status {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
}

.ss-vr-status.is-error {
  color: #ffb4b4;
}

.ss-vr-status.is-ok {
  color: #b8f0c2;
}

.ss-vr-hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}
