@font-face {
  font-family: "NPS Mandatory Plate";
  src: url("mandatory-plate.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

.nps-builder {
  --nps-yellow: #ffe135;
  --nps-ink: #101214;
  --nps-muted: #646970;
  --nps-line: #dedfe2;
  --nps-card: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .9fr);
  gap: 28px;
  margin: 0 0 28px;
  color: var(--nps-ink);
}

/* Avada's standard product template puts the form in a narrow right-hand
   column. A builder product needs the full product width. */
body:is(.nps-builder-product, .nps-builder-embed) .product > .woocommerce-product-gallery,
body:is(.nps-builder-product, .nps-builder-embed) .product .avada-single-product-gallery-wrapper {
  display: none !important;
}
body:is(.nps-builder-product, .nps-builder-embed) .product > .summary,
body:is(.nps-builder-product, .nps-builder-embed) .product .summary.entry-summary {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}
body:is(.nps-builder-product, .nps-builder-embed) .summary > .woocommerce-product-details__short-description {
  display: none !important;
}

/* The builder supplies the product heading and price context. Retain the
   WooPayments instalment disclosure, but remove the duplicated shop chrome. */
body:is(.nps-builder-product, .nps-builder-embed) .summary-container > .product_title,
body:is(.nps-builder-product, .nps-builder-embed) .summary-container > .price,
body:is(.nps-builder-product, .nps-builder-embed) .summary-container > .avada-availability,
body:is(.nps-builder-product, .nps-builder-embed) .summary-container > .product-border,
body:is(.nps-builder-product, .nps-builder-embed) .summary-container > .product_meta,
body:is(.nps-builder-product, .nps-builder-embed) .woocommerce-tabs.wc-tabs-wrapper {
  display: none !important;
}
body:is(.nps-builder-product, .nps-builder-embed) .wcpay-express-checkout-wrapper { margin-top: 18px; }
body:is(.nps-builder-product, .nps-builder-embed) #payment-method-message.nps-payment-method-message {
  display: block !important;
  margin: 14px 0 28px;
}

.nps-builder *, .nps-builder *::before, .nps-builder *::after { box-sizing: border-box; }
.nps-sticky-overflow-fix { overflow: visible !important; }
.nps-builder__preview { grid-column: 2; position: sticky; top: 120px; align-self: start; border: 1px solid var(--nps-line); border-radius: 18px; background: #f5f5f3; padding: 22px; }
.nps-builder__options { grid-column: 1; grid-row: 1; min-width: 0; }
.nps-preview-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 18px; }
.nps-preview-heading h3 { font-size: 22px; line-height: 1.15; margin: 2px 0 0; }
.nps-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.nps-size-pill { flex: 0 0 auto; border: 1px solid var(--nps-line); border-radius: 999px; background: #fff; padding: 6px 10px; font-size: 11px; font-weight: 700; }
.nps-preview-stack { display: grid; gap: 16px; }
.nps-preview-label { display: inline-block; margin-bottom: 6px; font-size: 12px; font-weight: 800; }
.nps-preview-wrap[hidden] { display: none; }

.nps-plate {
  --plate-border: transparent;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: inline-size;
  aspect-ratio: 520 / 111;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 7px;
  box-shadow: 0 5px 14px rgba(0,0,0,.17), inset 0 0 0 1px rgba(0,0,0,.12);
  color: #080808;
}
.nps-plate.has-border::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 1.8% .385%;
  border: .769cqw solid var(--plate-border);
  border-radius: .9cqw;
  pointer-events: none;
}
.nps-plate--front { background: linear-gradient(120deg, #fff 15%, #f4f5f4 60%, #fff); }
.nps-plate--rear { background: linear-gradient(120deg, #ffe431 15%, #f2ce00 60%, #ffe431); }
.nps-registration {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6.346cqw;
  font-family: "NPS Mandatory Plate", sans-serif;
  font-size: 19.231cqw;
  font-weight: 400;
  font-kerning: none;
  font-variant-ligatures: none;
  letter-spacing: 0;
  line-height: .79;
  white-space: nowrap;
  transform: translateY(.96cqw);
}
.nps-registration__group {
  display: inline-block;
  letter-spacing: 2.115cqw;
  margin-right: -2.115cqw;
}
.nps-plate.has-badge .nps-registration,
.nps-plate.has-ev .nps-registration { transform: translate(4.808cqw, .96cqw); }
.nps-side-strip { position: absolute; z-index: 1; inset: 0 auto 0 0; display: none; width: 9.615%; flex-direction: column; align-items: center; justify-content: center; gap: 0; background: #165dce; color: #fff; font-family: Arial, sans-serif; }
.nps-plate.has-badge .nps-side-strip, .nps-plate.has-ev .nps-side-strip { display: flex; }
.nps-plate.has-ev .nps-side-strip { background: #16803c; }
.nps-badge-symbol { width: 72%; aspect-ratio: 5 / 3; border: 1px solid rgba(255,255,255,.6); background-position: center; background-repeat: no-repeat; background-size: cover; font-size: 0; line-height: 1; }
.nps-badge-text { margin-top: 2px; font-size: clamp(6px, 1.2vw, 10px); font-weight: 900; }

.nps-price-bar { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 12px; margin-top: 20px; padding: 16px 18px; border-radius: 12px; background: var(--nps-yellow); }
.nps-price-bar span { font-size: 14px; font-weight: 800; }
.nps-price-bar strong { grid-column: 2; grid-row: 1 / span 2; font-size: 28px; line-height: 1; }
.nps-price-bar small { font-size: 11px; }

.nps-step { min-width: 0; margin: 0 0 18px; padding: 20px; border: 1px solid var(--nps-line); border-radius: 14px; background: var(--nps-card); }
.nps-step legend { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 0; font-size: 17px; font-weight: 850; }
.nps-step legend span { display: inline-grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--nps-yellow); font-size: 13px; }
.nps-reg-input { width: 100% !important; min-height: 58px; border: 2px solid var(--nps-ink) !important; border-radius: 9px !important; background: #fff !important; padding: 8px 16px !important; color: var(--nps-ink) !important; font: 400 28px/1 "NPS Mandatory Plate", sans-serif !important; letter-spacing: 5px; text-transform: uppercase; }
.nps-reg-input:focus { outline: 3px solid rgba(255,225,53,.65); outline-offset: 2px; }
.nps-help { margin: 9px 0 0; color: var(--nps-muted); font-size: 12px; }
.nps-choice-grid { display: grid; gap: 10px; }
.nps-choice-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nps-choice-grid--badges { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nps-choice-card, .nps-badge-card, .nps-swatch-card { position: relative; cursor: pointer; }
.nps-choice-card input, .nps-badge-card input, .nps-swatch-card input { position: absolute; opacity: 0; pointer-events: none; }
.nps-choice-card > span { display: flex; min-height: 74px; flex-direction: column; justify-content: center; border: 2px solid var(--nps-line); border-radius: 10px; padding: 11px; background: #fff; text-align: center; }
.nps-choice-card strong { font-size: 13px; line-height: 1.2; }
.nps-choice-card small { margin-top: 4px; color: var(--nps-muted); font-size: 12px; }
.nps-choice-card input:checked + span, .nps-badge-card input:checked + span, .nps-swatch-card input:checked + .nps-swatch { border-color: var(--nps-ink); box-shadow: 0 0 0 3px var(--nps-yellow); }
.nps-choice-card input:focus-visible + span, .nps-badge-card input:focus-visible + span, .nps-swatch-card input:focus-visible + .nps-swatch { outline: 2px solid #165dce; outline-offset: 3px; }

.nps-swatch-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.nps-swatch-card { display: grid; justify-items: center; gap: 7px; }
.nps-swatch { display: block; width: 34px; height: 34px; border: 5px solid var(--swatch); border-radius: 50%; background: #f1f1ef; box-shadow: inset 0 0 0 1px #b7b7b4; }
.nps-swatch-card:first-child .nps-swatch::after { content: "×"; display: grid; height: 100%; place-items: center; color: #777; font-weight: 900; }
.nps-swatch-card small, .nps-badge-card small { color: var(--nps-ink); font-size: 11px; font-weight: 700; }
.nps-badge-card { display: grid; justify-items: stretch; gap: 7px; text-align: center; }
.nps-badge-card > span { display: grid; min-height: 58px; place-items: center; border: 2px solid var(--nps-line); border-radius: 9px; background: #f7f7f5; font-size: 18px; font-weight: 900; }
.nps-badge-card > span img { display: block; width: 46px; height: 30px; border: 1px solid rgba(0,0,0,.12); object-fit: cover; }
.nps-badge-card > span b { font-size: 28px; line-height: 1; }

.nps-toggle-card { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.nps-toggle-card input { position: absolute; opacity: 0; }
.nps-toggle { position: relative; flex: 0 0 46px; width: 46px; height: 26px; border-radius: 999px; background: #a8aaad; transition: .2s; }
.nps-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; }
.nps-toggle-card input:checked + .nps-toggle { background: #16803c; }
.nps-toggle-card input:checked + .nps-toggle::after { transform: translateX(20px); }
.nps-toggle-card input:focus-visible + .nps-toggle { outline: 3px solid var(--nps-yellow); outline-offset: 2px; }
.nps-toggle-card > span:last-child { display: flex; flex-direction: column; }
.nps-toggle-card strong { font-size: 14px; }
.nps-toggle-card small { color: var(--nps-muted); font-size: 11px; }

body:is(.nps-builder-product, .nps-builder-embed) form.cart { display: block !important; }
body:is(.nps-builder-product, .nps-builder-embed) form.cart .quantity { display: none !important; }
body:is(.nps-builder-product, .nps-builder-embed) form.cart .single_add_to_cart_button,
.nps-shortcode-cart .single_add_to_cart_button { width: 100%; min-height: 56px; cursor: pointer !important; border-radius: 8px; background: var(--nps-yellow, #ffe135) !important; color: #111 !important; font-size: 16px; font-weight: 900; }
.nps-shortcode-cart { display: block !important; width: 100%; margin: 0 !important; }
.nps-accepted-payments { margin: 20px 0 28px; }
.nps-wallets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nps-wallet { display: flex; min-height: 48px; align-items: center; justify-content: center; overflow: hidden; border-radius: 7px; line-height: 1; }
.nps-wallet--apple, .nps-wallet--google { background: #000; color: #fff; }
.nps-wallet--apple svg { display: block; width: 78px; height: auto; }
.nps-wallet--google svg { display: block; width: 84px; height: auto; }
.nps-wallet--amazon { background: #ffd814; }
.nps-wallet--amazon img { display: block; width: 160px; max-width: none; height: 100px; mix-blend-mode: multiply; }
.nps-payment-caption { margin: 7px 0 14px; color: #666; font-size: 11px; text-align: center; }
.nps-shortcode-bnpl { color: #161616; font-size: 16px; line-height: 1.35; }
.nps-shortcode-bnpl__brands { display: flex; align-items: center; gap: 10px; margin-bottom: 3px; }
.nps-shortcode-bnpl__brands img { display: block; width: auto; height: 32px; }
.nps-shortcode-bnpl a { color: inherit; font-weight: 800; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.nps-shortcode-bnpl small { color: #666; font-size: 13px; }

.wc-block-components-order-summary-item__image:has(img[src*="nps_plate_preview"]) { width: 112px !important; }
.wc-block-components-order-summary-item__image img[src*="nps_plate_preview"] { width: 104px !important; height: auto !important; max-width: none !important; object-fit: contain !important; }

.nps-documents { width: min(720px, calc(100% - 30px)); margin: 40px auto; border: 1px solid var(--nps-line, #d9d9d6); border-radius: 16px; padding: clamp(22px, 5vw, 44px); background: #fff; box-shadow: 0 14px 38px rgba(0,0,0,.07); color: #151515; }
.nps-documents h1 { margin: 0 0 14px; color: #111; font-size: clamp(30px, 5vw, 46px); line-height: 1.08; }
.nps-documents p { line-height: 1.55; }
.nps-documents__eyebrow { margin: 0 0 8px !important; color: #555; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nps-document-guidance { margin: 24px 0; border-left: 5px solid var(--nps-yellow, #ffe135); padding: 4px 0 4px 18px; background: #fafaf8; }
.nps-document-guidance p { margin: 10px 14px; }
.nps-document-form { display: grid; gap: 18px; margin-top: 24px; }
.nps-document-form label:not(.nps-document-confirm) { display: grid; gap: 7px; color: #111; font-weight: 800; }
.nps-document-form input[type="text"], .nps-document-form input[type="email"], .nps-document-form input[type="file"] { width: 100%; min-height: 50px; border: 1px solid #aaa; border-radius: 8px; padding: 11px 13px; background: #fff; color: #111; font: inherit; }
.nps-document-form input[type="file"] { padding: 10px; }
.nps-document-form small { color: #666; font-weight: 400; }
.nps-document-confirm { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
.nps-document-confirm input { flex: 0 0 auto; margin-top: 4px; }
.nps-document-privacy { margin: 0; color: #666; font-size: 13px; }
.nps-document-form button { min-height: 56px; border: 0; border-radius: 8px; padding: 13px 20px; background: var(--nps-yellow, #ffe135); color: #111; cursor: pointer; font-size: 17px; font-weight: 900; }
.nps-documents--error { border-color: #b42318; }
.nps-documents--success { border-color: #18864b; }

@media (max-width: 600px) {
  .nps-wallets { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nps-builder { grid-template-columns: 1fr; }
  .nps-builder__preview { grid-column: 1; grid-row: 1; position: static; }
  .nps-builder__options { grid-column: 1; grid-row: 2; }
}

@media (max-width: 520px) {
  .nps-builder__preview, .nps-step { padding: 15px; border-radius: 12px; }
  .nps-choice-grid--three { grid-template-columns: 1fr; }
  .nps-choice-grid--badges { grid-template-columns: repeat(3, 1fr); }
}
