/* The private category card renders outside the product builder. */
.gqsfb-catalog { box-sizing: border-box; width: 100%; max-width: 300px; margin: 22px 0 32px; font-family: Arial, Helvetica, sans-serif; }
.gqsfb-catalog *, .gqsfb-catalog *::before, .gqsfb-catalog *::after { box-sizing: border-box; }
.gqsfb-catalog .gqsfb-badge { display: block; margin: 0 0 10px; padding: 8px 10px; border: 1px solid #c8e1fc; border-radius: 5px; background: #edf6ff; color: #0756a4; font: 700 10px/1.4 Arial, Helvetica, sans-serif; letter-spacing: .7px; overflow-wrap: anywhere; }
.gqsfb-catalog .gqsfb-badge::before { content: none; }
.gqsfb-catalog .gqsfb-card { display: flex; flex-direction: column; width: 100%; max-width: 300px; min-width: 0; margin: 0; overflow: hidden; border: 1px solid #d7e2eb; border-radius: 14px; background: #fff; color: #152b43; box-shadow: 0 3px 10px #17385306; }
.gqsfb-catalog .gqsc-image-area { position: relative; width: 100%; height: auto; aspect-ratio: 1.2; overflow: hidden; background: #f4f8fd; }
.gqsfb-catalog .gqsc-image-link { display: block; width: 100%; height: 100%; text-decoration: none; }
.gqsfb-catalog .gqsfb-card img { display: block; width: 100%; max-width: 100%; height: 100%; object-fit: contain; }
.gqsfb-catalog .gqsc-card-bottom { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 16px; background: #fff; }
.gqsfb-catalog .gqsc-title { min-height: 0; margin: 0 0 8px; padding: 0; color: #152b43; font: 700 17px/1.3 Arial, Helvetica, sans-serif; letter-spacing: 0; text-transform: none; text-align: left; }
.gqsfb-catalog .gqsc-title a { color: inherit; text-decoration: none; }
.gqsfb-catalog .gqsc-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gqsfb-catalog .gqsc-card-subtitle { margin: 0 0 18px; color: #607080; font: 400 13px/1.5 Arial, Helvetica, sans-serif; }
.gqsfb-catalog .gqsc-card-action { margin-top: auto; }
.gqsfb-catalog .gqsc-primary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin: 0; padding: 12px; border: 1px solid #0879ee; border-radius: 7px; background: #0879ee; color: #fff; font: 700 13px/1.35 Arial, Helvetica, sans-serif; letter-spacing: 0; text-align: center; text-transform: none; text-decoration: none; white-space: normal; }
.gqsfb-catalog .gqsc-primary:hover { border-color: #075ab5; background: #075ab5; color: #fff; }
.gqsfb-catalog a:focus-visible { outline: 3px solid #76b7ff; outline-offset: 3px; }

/* All builder styles stay inside the private product builder. */
.gqsfb {
  --fb-ink: #101820;
  --fb-muted: #607080;
  --fb-blue: #0879ee;
  --fb-blue-dark: #075ab5;
  --fb-line: #dce4eb;
  --fb-wash: #f2f6fa;
  --fb-radius: 18px;
  box-sizing: border-box;
  width: min(1320px, calc(100% - 64px));
  max-width: 1320px;
  margin: 38px auto 72px;
  color: var(--fb-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.gqsfb *, .gqsfb *::before, .gqsfb *::after { box-sizing: border-box; }
.gqsfb [hidden] { display: none !important; }
.gqsfb h1, .gqsfb h2, .gqsfb h3, .gqsfb p { margin: 0; color: inherit; }
.gqsfb h1, .gqsfb h2, .gqsfb h3 { font-family: inherit; text-transform: none; }
.gqsfb h1 { max-width: 820px; font-size: clamp(30px, 3.8vw, 52px); font-weight: 850; letter-spacing: -.045em; line-height: 1.06; }
.gqsfb h2 { font-size: 20px; line-height: 1.25; letter-spacing: -.025em; font-weight: 750; }
.gqsfb h3 { font-size: 14px; line-height: 1.35; font-weight: 700; }
.gqsfb a { color: var(--fb-blue-dark); text-underline-offset: 3px; }
.gqsfb a:hover { color: #003d83; }
.gqsfb a:focus-visible, .gqsfb button:focus-visible, .gqsfb input:focus-visible, .gqsfb select:focus-visible { outline: 3px solid #76b7ff; outline-offset: 3px; }
.gqsfb-header { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 34px; align-items: center; padding: 8px 12px 30px; }
.gqsfb-header > div { min-width: 0; }
.gqsfb-header > img { width: 260px; max-width: 100%; height: auto; justify-self: end; }
.gqsfb-header h1 + p { margin-top: 16px; max-width: 650px; font-size: 17px; color: var(--fb-muted); }
.gqsfb .gqsfb-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; border: 1px solid #c8e1fc; border-radius: 999px; padding: 5px 11px; color: #0756a4; background: #edf6ff; font-size: 10px; font-weight: 800; line-height: 1.4; letter-spacing: .11em; }
.gqsfb-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fb-blue); }
.gqsfb-back { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 600; text-decoration: none; }
.gqsfb .gqsfb-notice { padding: 13px 18px; color: #d8e7f5; background: #111d2a; border-radius: 12px; font-size: 12px; line-height: 1.55; }
.gqsfb-jump { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0; }
.gqsfb-jump a { min-height: 36px; padding: 7px 13px; border: 1px solid var(--fb-line); border-radius: 8px; background: #fff; color: #41546a; text-decoration: none; font-size: 12px; font-weight: 650; transition: border-color .15s, background .15s; }
.gqsfb-jump a:hover { background: #eaf4ff; border-color: #9bc9fc; color: #0756a4; }
.gqsfb-workspace { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.16fr); align-items: start; gap: 24px; }
.gqsfb-controls, .gqsfb-preview-panel { display: grid; gap: 22px; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; }
.gqsfb .gqsfb-section { min-width: 0; margin: 0; padding: 28px; background: #fff; border: 1px solid var(--fb-line); border-radius: var(--fb-radius); box-shadow: 0 3px 9px #17385304; scroll-margin-top: 110px; }
.gqsfb-section > h2 { margin-bottom: 15px; }
.gqsfb-section > p:not(.gqsfb-help):not(.gqsfb-error) { font-size: 13px; color: #56687a; }
.gqsfb-section > p + .gqsfb-fields, .gqsfb-section > h2 + .gqsfb-fields { margin-top: 20px; }
.gqsfb-section > .gqsfb-field { margin-top: 16px; }
.gqsfb-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 15px; row-gap: 17px; min-width: 0; }
.gqsfb-fields > * { min-width: 0; }
.gqsfb-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: #35475a; font-size: 12px; line-height: 1.4; font-weight: 700; }
.gqsfb input:not([type="checkbox"]), .gqsfb select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 46px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #cbd6e0;
  border-radius: 9px;
  background-color: #fff;
  box-shadow: 0 1px 2px #132c4304;
  color: #152c43;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
}
.gqsfb input::placeholder { opacity: 1; color: #8391a1; font-weight: 400; }
.gqsfb input:hover, .gqsfb select:hover { border-color: #a6b8c9; }
.gqsfb input:focus, .gqsfb select:focus { border-color: var(--fb-blue); box-shadow: 0 0 0 3px #0879ee12; }
.gqsfb select { padding-right: 32px; text-overflow: ellipsis; }
.gqsfb select:disabled { color: #586d80; background-color: #edf2f7; opacity: 1; cursor: not-allowed; }
.gqsfb input[type="file"] { height: auto; min-height: 58px; padding: 9px; border-style: dashed; border-color: #a5c8ed; background: #f4f9ff; overflow: hidden; cursor: pointer; font-size: 12px; }
.gqsfb input[type="file"]::file-selector-button { min-height: 36px; margin-right: 9px; padding: 7px 12px; border: 0; border-radius: 6px; background: #deecfb; color: #104f91; font-family: inherit; font-weight: 700; font-size: 12px; cursor: pointer; }
.gqsfb .gqsfb-help { margin-top: 10px; color: var(--fb-muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.gqsfb-help + .gqsfb-fields { margin-top: 22px; }
.gqsfb .gqsfb-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 19px; color: #42566a; font-size: 12px; font-weight: 500; line-height: 1.55; cursor: pointer; }
.gqsfb-check input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; min-height: 18px; margin: 1px 0 0; accent-color: var(--fb-blue); }
.gqsfb-preview-stage { position: relative; margin: 20px -9px 12px; overflow: hidden; border: 1px solid #e3eaf1; border-radius: 12px; background-color: #f1f5f9; background-image: radial-gradient(#c9d4e0 1px, transparent 1px); background-size: 18px 18px; }
#fb-preview { width: 100%; min-width: 0; aspect-ratio: 8 / 5; }
#fb-preview svg { display: block; width: 100%; height: auto; overflow: visible; }
#fb-preview-metrics { text-align: center; font-variant-numeric: tabular-nums; color: #425a72; }
#fb-finishing-summary { padding: 11px 13px; border-left: 3px solid #bddcff; border-radius: 0 6px 6px 0; background: #f4f9ff; }
.gqsfb .gqsfb-custom-finishing { grid-column: 1 / -1; padding: 16px; margin: 0; border: 1px solid #d4e4f4; border-radius: 10px; background: #f7faff; }
.gqsfb-custom-finishing h3 { margin-bottom: 13px; }
.gqsfb-edge-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.gqsfb-edge-field { min-width: 0; }
.gqsfb-edge-field > label + label { margin-top: 8px; }
.gqsfb-custom-finishing input:not([type="checkbox"]), .gqsfb-custom-finishing select { height: 42px; font-size: 12px; }
.gqsfb-custom-note { grid-column: 1 / -1; margin-top: 12px !important; font-size: 11px !important; color: #667c91 !important; }
.gqsfb .gqsfb-summary { position: relative; border-top: 4px solid var(--fb-blue); padding-top: 25px; }
.gqsfb-summary h2 { margin-bottom: 7px; }
#fb-price-status { display: inline-flex; min-height: 26px; align-items: center; gap: 7px; margin: 0 0 19px; padding: 4px 9px; border-radius: 5px; color: #846021; background: #fff5df; font-size: 11px; font-weight: 650; }
#fb-price-status::before { content: ""; flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
#fb-price-status[data-state="complete"] { background: #eaf7ef; color: #246140; }
#fb-price-status[data-state="pending"] { background: #eaf3ff; color: #326397; }
#fb-price-status[data-state="error"] { background: #fff0f0; color: #a43636; }
.gqsfb-price-line { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 10px 0; border-bottom: 1px solid #edf1f5; color: #617080; font-size: 12px; line-height: 1.5; }
.gqsfb-price-line > span { min-width: 0; }
.gqsfb-price-line strong { flex: 0 1 auto; min-width: 0; color: #172c41; font-size: 14px; font-weight: 700; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.gqsfb .gqsfb-total { margin: 14px -12px 12px; padding: 17px 12px; border: 0; border-radius: 10px; color: #e0ebf7; background: #122333; font-size: 12px; }
.gqsfb-total strong { color: #fff; font-size: clamp(21px, 2vw, 29px); letter-spacing: -.04em; line-height: 1.1; }
.gqsfb-review-reasons { margin: 15px 0 20px !important; padding: 13px 14px 13px 29px !important; border: 1px solid #efdfb9; border-radius: 8px; color: #805f27; background: #fffaf0; list-style-type: disc; font-size: 11px; line-height: 1.6; }
.gqsfb-review-reasons li { margin: 3px 0; padding: 0; }
.gqsfb .gqsfb-error { margin: 12px 0; color: #ac2828; font-size: 12px; line-height: 1.55; }
.gqsfb-error:empty { display: none; }
.gqsfb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.gqsfb .gqsfb-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 43px; max-width: 100%; height: auto; margin: 0; padding: 11px 15px; border: 1px solid #cbd8e6; border-radius: 8px; background: #fff; box-shadow: none; color: #32506b; font-family: inherit; font-size: 12px; line-height: 1.4; font-weight: 700; letter-spacing: 0; text-transform: none; text-align: center; text-decoration: none; white-space: normal; cursor: pointer; transition: background .15s, border-color .15s; }
.gqsfb .gqsfb-button:hover { background: #f0f6fc; border-color: #8eb4da; color: #154b7d; }
.gqsfb .gqsfb-primary { border-color: var(--fb-blue); background: var(--fb-blue); color: #fff; }
.gqsfb .gqsfb-primary:hover { border-color: var(--fb-blue-dark); background: var(--fb-blue-dark); color: #fff; }
.gqsfb .gqsfb-button:disabled { opacity: .55; cursor: progress; }
#fb-artwork-clear { min-height: 32px; padding: 6px 10px; margin-top: 9px; font-size: 11px; }
#fb-save-status[data-state="saved"], #fb-config-status[data-state="saved"] { color: #276546; }
#fb-save-status[data-state="error"] { color: #ac2828; }
#fb-config-status[data-state="dirty"] { color: #866327; }
.gqsfb .gqsfb-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 18px 23px; background: #f5f8fb; box-shadow: none; border-color: #e5ebf1; }
.gqsfb-footer p { font-size: 11px !important; color: #6a7b8c !important; }
.gqsfb-footer p:first-child { max-width: 720px; }
.gqsfb-footer p:last-child { flex-shrink: 0; }
.gqsfb .gqsfb-product-details { margin-top: 24px; padding-bottom: 12px; }
.gqsfb-product-details > .gqsfb-help { max-width: 760px; margin-bottom: 20px; }
.gqsfb-detail { border-top: 1px solid #e3eaf1; }
.gqsfb-detail summary { position: relative; padding: 18px 32px 18px 0; color: #1a344d; font-size: 14px; font-weight: 700; list-style: none; cursor: pointer; }
.gqsfb-detail summary::-webkit-details-marker { display: none; }
.gqsfb-detail summary::after { content: "+"; position: absolute; top: 13px; right: 1px; width: 28px; height: 28px; border-radius: 50%; background: #edf5fd; color: #2476c3; font-size: 21px; font-weight: 400; line-height: 27px; text-align: center; }
.gqsfb-detail[open] summary::after { content: "−"; }
.gqsfb-detail summary:focus-visible { outline: 3px solid #76b7ff; outline-offset: 3px; }
.gqsfb-detail-content { max-width: 940px; padding-bottom: 22px; color: #617080; font-size: 13px; line-height: 1.75; }
.gqsfb-detail-content p + p { margin-top: 12px; }
.gqsfb-detail-content ul { margin: 12px 0 0; padding-left: 21px; }
.gqsfb-detail-content li { margin: 5px 0; padding: 0; }

@media (min-width: 1200px) {
  #fb-options > .gqsfb-fields:first-of-type { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .gqsfb { width: calc(100% - 36px); margin-top: 24px; }
  .gqsfb-header { grid-template-columns: minmax(0, 1fr) 185px; gap: 15px; padding-right: 0; padding-left: 0; }
  .gqsfb-workspace { gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .gqsfb .gqsfb-section { padding: 21px; }
  .gqsfb-fields { column-gap: 10px; }
  .gqsfb-footer { flex-direction: column; gap: 8px !important; }
  .gqsfb-footer p:last-child { flex-shrink: 1; }
}
@media (max-width: 760px) {
  .gqsfb { width: calc(100% - 28px); margin: 20px auto 40px; }
  .gqsfb-header { grid-template-columns: minmax(0, 1fr) 120px; align-items: start; gap: 10px; padding-bottom: 23px; }
  .gqsfb-header h1 { font-size: clamp(27px, 5.6vw, 38px); }
  .gqsfb-header > img { margin-top: 44px; }
  .gqsfb-header h1 + p { margin-top: 12px; font-size: 13px; }
  .gqsfb .gqsfb-badge { font-size: 8px; padding: 5px 8px; margin-bottom: 14px; letter-spacing: .06em; }
  .gqsfb-back { font-size: 10px; }
  .gqsfb-workspace { display: flex; flex-direction: column; gap: 17px; }
  .gqsfb-controls { width: 100%; order: 1; gap: 17px; }
  .gqsfb-preview-panel { display: contents; }
  #fb-artwork-section { order: 0; width: 100%; }
  #fb-pricing-section { order: 2; width: 100%; }
  .gqsfb .gqsfb-section { padding: 21px; border-radius: 14px; scroll-margin-top: 85px; }
  .gqsfb-fields { gap: 17px 12px; }
  .gqsfb .gqsfb-notice { font-size: 11px; padding: 12px 14px; }
  .gqsfb-jump { gap: 6px; margin: 16px 0; }
  .gqsfb-jump a { flex: 1 1 calc(50% - 6px); padding: 8px 10px; text-align: center; font-size: 11px; }
  .gqsfb input:not([type="checkbox"]), .gqsfb select { font-size: 16px; }
  .gqsfb input[type="file"] { font-size: 11px; }
  .gqsfb .gqsfb-total { margin-right: -5px; margin-left: -5px; }
  .gqsfb-total strong { font-size: 28px; }
  .gqsfb-preview-stage { margin: 15px -8px 10px; }
  .gqsfb-actions > button { flex: 1 1 150px; }
}
@media (max-width: 390px) {
  .gqsfb { width: calc(100% - 20px); }
  .gqsfb-header { grid-template-columns: minmax(0, 1fr) 85px; }
  .gqsfb-header h1 { font-size: 27px; }
  .gqsfb-header > img { margin-top: 65px; }
  .gqsfb .gqsfb-section { padding: 17px; }
  .gqsfb-fields { grid-template-columns: minmax(0, 1fr); }
  #fb-options > .gqsfb-fields:first-of-type { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gqsfb-edge-fields { grid-template-columns: minmax(0, 1fr); }
  .gqsfb-total strong { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .gqsfb * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .gqsfb { width: 100%; margin: 0; color: #000; }
  .gqsfb-jump, .gqsfb-actions, #fb-artwork, #fb-artwork-clear, #fb-saved { display: none !important; }
  .gqsfb .gqsfb-section { box-shadow: none; break-inside: avoid; }
  .gqsfb-workspace { display: block; }
  .gqsfb-controls, .gqsfb-preview-panel { gap: 12px; }
  .gqsfb-total { print-color-adjust: exact; }
}

/* Customer product presentation. */
.gqsfb .gqsfb-included { display: inline-flex; max-width: 100%; align-items: center; gap: 7px; margin: 0 0 12px; padding: 7px 10px; border-radius: 6px; color: #205c3c; background: #eaf7ef; font-size: 12px; font-weight: 650; line-height: 1.5; }
.gqsfb-included::before { content: "✓"; flex: 0 0 auto; }
.gqsfb .gqsfb-order { width: 100%; min-height: 50px; margin-top: 12px; font-size: 15px; }
.gqsfb .gqsfb-order:disabled { opacity: .65; cursor: not-allowed; }
.gqsfb-order-note { text-align: center; }
.gqsfb-save-options { margin-top: 24px; }
.gqsfb-save-options .gqsfb-field { margin-top: 15px; }
#fb-artwork-name[data-state="error"] { color: #ac2828; }
#fb-artwork-quality[data-state="review"] { color: #815c18; }
#fb-artwork-section[aria-busy="true"] .gqsfb-preview-stage { opacity: .55; }
#fb-artwork-name[data-state="pending"] { color: #075ab5; }
#fb-artwork-quality:empty { display: none; }
#fb-upload-status:empty { display: none; }
#fb-upload-status[data-state="ready"], #fb-cart-status[data-state="ready"] { color: #205c3c; }
#fb-upload-status[data-state="error"], #fb-cart-status[data-state="error"] { color: #ac2828; }
#fb-cart-status[data-state="review"] { color: #815c18; }
.gqsfb-upload-progress { margin: 14px 0 6px; }
.gqsfb-upload-progress label { display: block; margin-bottom: 6px; color: #32506b; font-size: 12px; }
.gqsfb-upload-progress progress { display: block; width: 100%; height: 10px; accent-color: var(--fb-blue); }
.gqsfb-upload-progress progress::-webkit-progress-bar { background: #e7eff8; border-radius: 8px; }
.gqsfb-upload-progress progress::-webkit-progress-value { background: var(--fb-blue); border-radius: 8px; }
#fb-retry { margin: 5px 0 12px; }
.gqsfb-total strong { font-size: clamp(18px, 2vw, 27px); }
@media (max-width: 390px) { .gqsfb-total strong { font-size: 21px; } }
