:root {
  --ntb-ink: #10243e;
  --ntb-blue: #153f73;
  --ntb-blue-hover: #0e315d;
  --ntb-blue-soft: #eef4fa;
  --ntb-surface: #ffffff;
  --ntb-surface-subtle: #f7f9fc;
  --ntb-line: #d8e0e9;
  --ntb-line-strong: #b9c6d3;
  --ntb-muted: #536273;
  --ntb-success: #17623b;
  --ntb-success-soft: #eaf5ef;
  --ntb-warning: #7a5600;
  --ntb-warning-soft: #fff6dd;
  --ntb-danger: #9b2f2b;
  --ntb-radius: 8px;
  --ntb-shadow: 0 12px 32px rgba(16, 36, 62, 0.08);
}

/* Dealer customer payments use the existing quote forms and financial type. */
.ntb-customer-payments { min-width: 0; }
.ntb-customer-payments .ntb-payments-intro { max-width: 72ch; margin: 12px 0 24px; color: var(--ntb-muted); }
.ntb-payment-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0 0 20px; border-bottom: 1px solid var(--ntb-line); }
.ntb-payment-totals dt { color: var(--ntb-muted); font-size: 14px; margin-bottom: 6px; }
.ntb-payment-totals dd { font-size: clamp(25px, 2.4vw, 28px); font-weight: 700; margin: 0; overflow-wrap: normal; }
.ntb-payment-deposit, .ntb-payment-help { color: var(--ntb-muted); font-size: 14px; line-height: 1.6; }
.ntb-payment-message { background: var(--ntb-blue-soft); color: var(--ntb-ink); padding: 16px; border: 1px solid var(--ntb-line); }
.ntb-payment-section { margin-top: 24px; border-top: 1px solid var(--ntb-line); padding-top: 20px; }
.ntb-payment-section > summary { color: var(--ntb-ink); font-size: 16px; font-weight: 700; cursor: pointer; padding: 10px 0; }
.ntb-payment-section > p { max-width: 72ch; color: var(--ntb-muted); margin: 8px 0 20px; }
.ntb-payment-section .ntb-form-submit { grid-column: 1 / -1; }
.ntb-payment-section .ntb-check { align-items: flex-start; }
.ntb-payment-section .ntb-check input { margin-top: 5px; flex-shrink: 0; }
.ntb-customer-payments .ntb-payment-history-title { margin: 32px 0 10px; color: var(--ntb-ink); font-size: 21px; }
.ntb-payment-table-wrap { max-width: 100%; overflow-x: auto; scrollbar-color: var(--ntb-line-strong) var(--ntb-surface-subtle); }
.ntb-payment-table { width: 100%; min-width: 620px; table-layout: fixed; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.ntb-payment-table th, .ntb-payment-table td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--ntb-line); overflow-wrap: anywhere; }
.ntb-payment-table th { background: var(--ntb-surface-subtle); color: var(--ntb-ink); }
.ntb-payment-table th:first-child { width: 108px; }
.ntb-payment-table th:nth-child(2) { width: 150px; }
.ntb-payment-table th:nth-child(3) { width: 150px; }
.ntb-payment-table small { display: block; color: var(--ntb-muted); font-size: 13px; margin-top: 6px; }
.ntb-payment-table .ntb-payment-note { display: block; white-space: pre-wrap; margin-top: 6px; }
.ntb-payment-section summary:focus-visible, .ntb-payment-table-wrap:focus-visible { outline: 2px solid var(--ntb-blue); outline-offset: 4px; }
@media (max-width: 620px) {
  .ntb-payment-totals { grid-template-columns: 1fr; gap: 14px; }
  .ntb-payment-totals > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
  .ntb-payment-totals dt { margin: 0; flex: 1 1 115px; }
  .ntb-payment-totals dd { font-size: 25px; max-width: 100%; flex: 0 0 auto; margin-left: auto; text-align: right; }
  .ntb-payment-section .ntb-form-submit .button { width: 100%; }
}

.ntb-customer-payments .ntb-check > span { color: var(--ntb-ink); }
.ntb-customer-payments .woocommerce-Price-amount { white-space: nowrap; overflow-wrap: normal; }

/* This stylesheet loads only on NTB portal, cart and checkout views. */
.ntb-portal-shell,
.ntb-checkout-quote-action {
  color: var(--ntb-ink);
  font-variant-numeric: tabular-nums;
}

.ntb-portal-shell {
  display: grid;
  gap: 28px;
  padding-bottom: clamp(32px, 4vw, 56px);
  width: 100%;
}

.ntb-portal-shell *,
.ntb-checkout-quote-action * {
  box-sizing: border-box;
}

.ntb-portal-shell ::selection,
.ntb-checkout-quote-action ::selection {
  background: var(--ntb-blue);
  color: #fff;
}

.ntb-portal-head,
.ntb-panel-heading,
.ntb-line-head,
.ntb-actions-panel,
.ntb-sticky-save,
.ntb-settings-save {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.ntb-portal-head {
  border-bottom: 1px solid var(--ntb-line);
  padding: 4px 0 22px;
}

.ntb-portal-head h2,
.ntb-panel h3,
.ntb-line h4,
.ntb-settings-section h3 {
  color: var(--ntb-ink);
  line-height: 1.2;
  margin: 0;
}

.ntb-portal-head h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.ntb-page-intro {
  color: var(--ntb-muted);
  line-height: 1.6;
  margin: 8px 0 0;
  max-width: 68ch;
}

.ntb-reference,
.ntb-line-head > div > span {
  color: var(--ntb-blue);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.ntb-panel {
  background: var(--ntb-surface);
  border: 1px solid var(--ntb-line);
  border-radius: var(--ntb-radius);
  box-shadow: var(--ntb-shadow);
  padding: clamp(22px, 3vw, 32px);
}

.ntb-panel-heading {
  border-bottom: 1px solid var(--ntb-line);
  margin-bottom: 24px;
  padding-bottom: 17px;
}

.ntb-panel-heading h3,
.ntb-actions-panel h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.012em;
}

.ntb-panel-heading > span {
  color: var(--ntb-muted);
  font-size: 13px;
  white-space: nowrap;
}

.ntb-panel-heading__actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.ntb-panel-heading__actions > span {
  color: var(--ntb-muted);
  font-size: 13px;
  white-space: nowrap;
}

.ntb-add-product-button {
  min-height: 40px;
  padding: 8px 14px !important;
}

.ntb-quick-create {
  display: grid;
  gap: 24px;
}

.ntb-quick-create-copy {
  border-bottom: 1px solid var(--ntb-line);
  padding-bottom: 20px;
}

.ntb-quick-create-copy h3,
.ntb-quick-create-copy p,
.ntb-actions-panel p,
.ntb-settings-section-head p {
  margin: 0;
}

.ntb-quick-create-copy p,
.ntb-actions-panel p,
.ntb-settings-section-head p {
  color: var(--ntb-muted);
  line-height: 1.55;
  margin-top: 7px;
}

.ntb-inline-form,
.ntb-form-grid,
.ntb-line-fields,
.ntb-pricing-grid {
  display: grid;
}

.ntb-inline-form {
  align-items: end;
  gap: 18px;
  grid-template-columns: minmax(220px, 1.2fr) minmax(190px, 1fr) auto;
}

.ntb-form-grid {
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ntb-field {
  align-content: start;
  display: grid;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.ntb-field--wide {
  grid-column: 1 / -1;
}

.ntb-field > span,
.ntb-inline-form label > span {
  color: var(--ntb-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.ntb-field > span b,
.ntb-inline-form label > span b {
  color: var(--ntb-danger);
  font-weight: 800;
}

.ntb-field > small {
  color: var(--ntb-muted);
  font-size: 12px;
  line-height: 1.45;
  margin-top: -3px;
}

.ntb-field input,
.ntb-field select,
.ntb-field textarea,
.ntb-inline-form input {
  box-sizing: border-box;
  background-color: #fff;
  border: 1px solid var(--ntb-line-strong);
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(16, 36, 62, 0.035);
  color: var(--ntb-ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
  min-height: 48px;
  outline: 0;
  padding: 11px 13px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
  width: 100%;
}

.ntb-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2310243e' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 13px center;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.ntb-field textarea {
  min-height: 100px;
  resize: vertical;
}

.ntb-field input::placeholder,
.ntb-inline-form input::placeholder {
  color: #68788a;
  opacity: 1;
}

.ntb-field input:hover,
.ntb-field select:hover,
.ntb-field textarea:hover,
.ntb-inline-form input:hover {
  border-color: #8fa0b2;
}

.ntb-field input:focus,
.ntb-field select:focus,
.ntb-field textarea:focus,
.ntb-inline-form input:focus {
  border-color: var(--ntb-blue);
  box-shadow: 0 0 0 3px rgba(21, 63, 115, 0.15);
}

.ntb-field input:disabled,
.ntb-field select:disabled,
.ntb-field textarea:disabled {
  background: #f0f3f6;
  border-color: #d7dee5;
  color: #667382;
  cursor: not-allowed;
  opacity: 1;
}

.ntb-field input[type="file"] {
  background: var(--ntb-surface-subtle);
  cursor: pointer;
  padding: 7px;
}

.ntb-field input[type="file"]::file-selector-button {
  background: var(--ntb-ink);
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  margin-right: 12px;
  padding: 8px 12px;
}

.ntb-field input[type="file"]::file-selector-button:hover {
  background: var(--ntb-blue);
}

.ntb-button,
.ntb-portal-shell .ntb-button,
.ntb-checkout-quote-action .ntb-button {
  align-items: center;
  appearance: none;
  border: 1px solid transparent !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px !important;
  font-weight: 700 !important;
  justify-content: center;
  letter-spacing: 0.01em;
  line-height: 1.2 !important;
  margin: 0 !important;
  min-height: 44px;
  padding: 11px 17px !important;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
  white-space: normal;
}

.ntb-button--primary,
.ntb-portal-shell .ntb-button--primary,
.ntb-checkout-quote-action .ntb-button--primary {
  background: var(--ntb-blue) !important;
  border-color: var(--ntb-blue) !important;
  color: #fff !important;
}

.ntb-button--primary:hover,
.ntb-button--primary:focus-visible {
  background: var(--ntb-blue-hover) !important;
  border-color: var(--ntb-blue-hover) !important;
  color: #fff !important;
}

.ntb-button--secondary,
.ntb-portal-shell .ntb-button--secondary,
.ntb-checkout-quote-action .ntb-button--secondary {
  background: var(--ntb-ink) !important;
  border-color: var(--ntb-ink) !important;
  color: #fff !important;
}

.ntb-button--secondary:hover,
.ntb-button--secondary:focus-visible {
  background: #081a2d !important;
  border-color: #081a2d !important;
  color: #fff !important;
}

.ntb-button--quiet,
.ntb-portal-shell .ntb-button--quiet {
  background: #fff !important;
  border-color: var(--ntb-line-strong) !important;
  color: var(--ntb-ink) !important;
}

.ntb-button--quiet:hover,
.ntb-button--quiet:focus-visible {
  background: var(--ntb-blue-soft) !important;
  border-color: var(--ntb-blue) !important;
  color: var(--ntb-blue) !important;
}

.ntb-button:focus-visible,
.ntb-back-link:focus-visible,
.ntb-quote-table a:focus-visible,
.ntb-options summary:focus-visible {
  outline: 3px solid rgba(21, 63, 115, 0.28);
  outline-offset: 3px;
}

.ntb-button:active {
  transform: translateY(1px);
}

.ntb-button:disabled,
.ntb-button[aria-disabled="true"] {
  background: #dfe5eb !important;
  border-color: #dfe5eb !important;
  color: #687584 !important;
  cursor: not-allowed;
  transform: none;
}

.ntb-quote-table-wrap {
  overflow-x: auto;
  scrollbar-color: var(--ntb-line-strong) transparent;
  scrollbar-width: thin;
}

.ntb-quote-table-wrap::-webkit-scrollbar {
  height: 8px;
}

.ntb-quote-table-wrap::-webkit-scrollbar-thumb {
  background: var(--ntb-line-strong);
  border-radius: 8px;
}

.ntb-quote-table {
  border-collapse: collapse;
  min-width: 690px;
  width: 100%;
}

.ntb-quote-table th,
.ntb-quote-table td {
  border: 0;
  border-bottom: 1px solid var(--ntb-line);
  padding: 16px 14px;
  text-align: left;
  vertical-align: middle;
}

.ntb-quote-table th:first-child,
.ntb-quote-table td:first-child {
  padding-left: 0;
}

.ntb-quote-table th:last-child,
.ntb-quote-table td:last-child {
  padding-right: 0;
}

.ntb-quote-table tbody tr:last-child td {
  border-bottom: 0;
}

.ntb-quote-table tbody tr {
  transition: background-color 150ms ease;
}

.ntb-quote-table tbody tr:hover {
  background: var(--ntb-surface-subtle);
}

.ntb-quote-table th {
  color: var(--ntb-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.ntb-quote-table td a {
  color: var(--ntb-blue);
  display: grid;
  gap: 3px;
  text-decoration: none;
}

.ntb-quote-table td a:hover strong {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ntb-quote-table small {
  color: var(--ntb-muted);
  font-size: 12px;
}

.ntb-status {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 99px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  min-height: 28px;
  padding: 6px 10px;
  white-space: nowrap;
}

.ntb-status--draft {
  background: var(--ntb-warning-soft);
  border-color: #ead391;
  color: var(--ntb-warning);
}

.ntb-status--final {
  background: var(--ntb-blue-soft);
  border-color: #bfd0e2;
  color: var(--ntb-blue);
}

.ntb-status--customer_approved,
.ntb-status--converted {
  background: var(--ntb-success-soft);
  border-color: #b9d9c7;
  color: var(--ntb-success);
}

.ntb-callout {
  align-items: flex-start;
  background: var(--ntb-blue-soft);
  border: 1px solid #c5d6e7;
  border-radius: 6px;
  display: grid;
  gap: 5px;
  padding: 17px 19px;
}

.ntb-callout--warning {
  background: var(--ntb-warning-soft);
  border-color: #ead391;
}

.ntb-callout strong {
  color: var(--ntb-ink);
}

.ntb-callout span {
  color: var(--ntb-muted);
  line-height: 1.55;
}

.ntb-back-link {
  color: var(--ntb-blue);
  font-size: 14px;
  font-weight: 700;
  justify-self: start;
  text-decoration: none;
  text-underline-offset: 3px;
}

.ntb-back-link:hover {
  text-decoration: underline;
}

.ntb-quote-editor {
  display: grid;
  gap: 28px;
}

.ntb-line-list {
  display: grid;
  gap: 18px;
}

.ntb-line {
  background: var(--ntb-surface-subtle);
  border: 1px solid var(--ntb-line);
  border-radius: 7px;
  padding: 20px;
}

.ntb-line-head {
  align-items: flex-start;
}

.ntb-line-head h4 {
  font-size: 17px;
  font-weight: 700;
}

.ntb-line-head > strong {
  color: var(--ntb-ink);
  font-size: 16px;
  white-space: nowrap;
}

.ntb-line--estimate .ntb-line-head > div > span {
  color: var(--ntb-warning);
}

.ntb-line--service .ntb-line-head > div > span {
  color: #67438a;
}

.ntb-line-detail {
  color: var(--ntb-muted);
  line-height: 1.55;
  margin: 9px 0 0;
}

.ntb-options {
  border-top: 1px solid var(--ntb-line);
  margin-top: 16px;
  padding-top: 13px;
}

.ntb-options summary {
  color: var(--ntb-blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.ntb-options summary:hover {
  text-decoration: underline;
}

.ntb-options dl {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
}

.ntb-options dl div {
  display: grid;
  font-size: 13px;
  gap: 16px;
  grid-template-columns: minmax(135px, 0.75fr) 1.25fr;
}

.ntb-options dt {
  color: var(--ntb-muted);
  font-weight: 600;
}

.ntb-options dd {
  color: var(--ntb-ink);
  margin: 0;
}

.ntb-line-fields {
  align-items: start;
  gap: 18px;
  grid-template-columns: minmax(220px, 1.7fr) repeat(3, minmax(120px, 1fr));
  margin-top: 20px;
}

.ntb-check {
  align-items: center;
  color: var(--ntb-danger);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 9px;
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: -2px;
  min-height: 28px;
}

.ntb-check input {
  accent-color: var(--ntb-danger);
  height: 18px;
  margin: 0;
  width: 18px;
}

.ntb-small-button {
  margin-top: 16px !important;
  min-height: 40px;
  padding: 9px 14px !important;
}

.ntb-line-pricing-explain {
  color: var(--ntb-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  gap: 6px 16px;
  line-height: 1.5;
  margin: 14px 0 0;
}

.ntb-line-pricing-explain span {
  position: relative;
}

.ntb-line-pricing-explain span + span::before {
  color: var(--ntb-line-strong);
  content: "•";
  left: -10px;
  position: absolute;
}

.ntb-pricing-grid {
  border-top: 1px solid var(--ntb-line);
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
  padding-top: 24px;
}

.ntb-commercial-summary {
  background: var(--ntb-ink);
  border-color: var(--ntb-ink);
  box-shadow: 0 14px 34px rgba(16, 36, 62, 0.16);
  color: #fff;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 0;
  padding-top: 0;
}

.ntb-commercial-summary > div {
  align-content: center;
  border-bottom: 1px solid #3d5067;
  border-right: 1px solid #3d5067;
  display: grid;
  gap: 7px;
  min-height: 138px;
  padding: 24px 22px;
}

.ntb-commercial-summary > div:nth-child(3n) {
  border-right: 0;
}

.ntb-commercial-summary > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.ntb-commercial-summary span {
  color: #c8d4e0;
  font-size: 12px;
}

.ntb-commercial-summary strong {
  color: #fff;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.ntb-commercial-summary small {
  color: #afbecd;
  font-size: 10px;
  line-height: 1.45;
}

.ntb-commercial-summary .ntb-total {
  background: #1c3554;
}

.ntb-commercial-summary .ntb-total strong {
  font-size: 26px;
}

.ntb-sticky-save {
  background: #fff;
  border: 1px solid var(--ntb-line-strong);
  border-radius: 7px;
  bottom: 14px;
  box-shadow: 0 12px 30px rgba(16, 36, 62, 0.16);
  padding: 13px 15px;
  position: sticky;
  z-index: 5;
}

/*
 * Uni CPO delegates its edit click from the anchor but reads event.target.
 * Keep decorative pencil/SVG children out of pointer hit-testing so the anchor
 * carrying the cart key, product ID and nonce is always the click target.
 */
.woocommerce-cart .uni-cpo-action-edit > * {
  pointer-events: none;
}

.ntb-sticky-save span,
.ntb-settings-save span {
  color: var(--ntb-muted);
  font-size: 12px;
  line-height: 1.45;
}

.ntb-add-line-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ntb-add-line-form .ntb-form-submit {
  align-items: end;
  display: flex;
}

.ntb-actions-panel {
  align-items: flex-start;
}

.ntb-actions-panel > div:first-child {
  max-width: 58ch;
}

.ntb-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.ntb-action-form {
  display: inline-flex;
  margin: 0;
}

.ntb-detached-action {
  display: none;
}

.ntb-empty {
  background: var(--ntb-surface-subtle);
  border: 1px dashed var(--ntb-line-strong);
  border-radius: 7px;
  color: var(--ntb-muted);
  padding: 28px;
  text-align: center;
}

.ntb-empty h4,
.ntb-empty p {
  margin: 0;
}

.ntb-empty h4 + p {
  margin-top: 7px;
}

.ntb-settings-form {
  display: grid;
  gap: 0;
}

.ntb-settings-section {
  border: 0;
  border-bottom: 1px solid var(--ntb-line);
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0 0 30px;
}

.ntb-settings-section + .ntb-settings-section {
  padding-top: 30px;
}

.ntb-settings-section-head h3 {
  font-size: 18px;
}

.ntb-settings-section-head p {
  font-size: 13px;
}

.ntb-logo-field {
  max-width: 640px;
}

.ntb-logo-preview {
  background: var(--ntb-surface-subtle);
  border: 1px solid var(--ntb-line);
  border-radius: 6px;
  display: block;
  margin: 4px 0 3px;
  max-height: 120px;
  max-width: 260px;
  object-fit: contain;
  padding: 10px;
}

.ntb-settings-save {
  padding-top: 24px;
}

.ntb-checkout-quote-action {
  background: var(--ntb-blue-soft);
  border: 1px solid #c5d6e7;
  border-radius: 6px;
  display: grid;
  gap: 5px;
  margin-bottom: 20px;
  padding: 18px;
}

.ntb-checkout-quote-action strong {
  color: var(--ntb-ink);
}

.ntb-checkout-quote-action span {
  color: var(--ntb-muted);
  font-size: 13px;
  line-height: 1.5;
}

.ntb-checkout-quote-action .ntb-button {
  justify-self: start;
  margin-top: 7px !important;
}

.ntb-block-quote-actions {
  align-items: center;
  column-gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 24px auto 30px;
  max-width: 1200px;
  width: 100%;
}

.ntb-block-quote-actions__copy {
  display: grid;
  gap: 5px;
}

.ntb-block-quote-actions__buttons {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.ntb-block-quote-actions__buttons .ntb-action-form {
  margin: 0;
}

.ntb-block-quote-actions__buttons .ntb-button {
  margin: 0 !important;
}

.ntb-cart-quote-actions {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  margin-block: 16px 0;
}

.woocommerce .ntb-cart-quote-actions > button.button {
  float: none;
  margin: 0 !important;
  max-width: 100%;
  min-height: 48px;
  white-space: normal;
}

@media (min-width: 961px) {
  .woocommerce-account .woocommerce-MyAccount-navigation {
    width: 220px;
  }

  .woocommerce-account .woocommerce-MyAccount-content {
    width: calc(100% - 260px);
  }
}

@media (max-width: 1080px) {
  .ntb-actions-panel {
    display: grid;
  }

  .ntb-action-buttons {
    justify-content: flex-start;
  }

  .ntb-line-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .ntb-inline-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ntb-inline-form .ntb-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .ntb-commercial-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ntb-commercial-summary > div:nth-child(3n) {
    border-right: 1px solid #3d5067;
  }

  .ntb-commercial-summary > div:nth-child(2n) {
    border-right: 0;
  }

  .ntb-commercial-summary > div:nth-last-child(-n + 3) {
    border-bottom: 1px solid #3d5067;
  }

  .ntb-commercial-summary > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  .ntb-portal-shell {
    gap: 22px;
  }

  .ntb-portal-head,
  .ntb-panel-heading,
  .ntb-line-head,
  .ntb-sticky-save,
  .ntb-settings-save {
    align-items: flex-start;
    flex-direction: column;
  }

  .ntb-panel {
    padding: 20px;
  }

  .ntb-inline-form,
  .ntb-form-grid,
  .ntb-line-fields,
  .ntb-pricing-grid,
  .ntb-add-line-form,
  .ntb-commercial-summary {
    grid-template-columns: 1fr;
  }

  .ntb-inline-form .ntb-button,
  .ntb-form-submit .ntb-button,
  .ntb-sticky-save .ntb-button,
  .ntb-settings-save .ntb-button {
    justify-self: stretch;
    width: 100%;
  }

  .ntb-commercial-summary .ntb-total {
    grid-column: auto;
  }

  .ntb-commercial-summary > div,
  .ntb-commercial-summary > div:nth-child(n) {
    border-bottom: 1px solid #3d5067;
    border-right: 0;
  }

  .ntb-commercial-summary > div:last-child {
    border-bottom: 0;
  }

  .ntb-options dl div {
    gap: 3px;
    grid-template-columns: 1fr;
  }

  .ntb-action-buttons,
  .ntb-action-form,
  .ntb-action-form .ntb-button {
    width: 100%;
  }

  .ntb-quote-table {
    min-width: 0;
  }

  .ntb-quote-table thead {
    display: none;
  }

  .ntb-quote-table,
  .ntb-quote-table tbody,
  .ntb-quote-table tr,
  .ntb-quote-table td {
    display: block;
    width: 100%;
  }

  .ntb-quote-table tr {
    border-bottom: 1px solid var(--ntb-line);
    display: grid;
    gap: 11px 16px;
    grid-template-columns: 1fr auto;
    padding: 17px 0;
  }

  .ntb-quote-table tbody tr:first-child {
    padding-top: 0;
  }

  .ntb-quote-table tbody tr:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .ntb-quote-table td,
  .ntb-quote-table td:first-child,
  .ntb-quote-table td:last-child {
    border: 0;
    padding: 0;
  }

  .ntb-quote-table td:first-child {
    grid-column: 1 / -1;
  }

  .ntb-quote-table td:nth-child(2) {
    color: var(--ntb-muted);
  }

  .ntb-quote-table td:nth-child(5) {
    color: var(--ntb-muted);
    font-size: 12px;
    text-align: right;
  }

  .woocommerce .ntb-cart-quote-actions > button.button {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ntb-portal-shell *,
  .ntb-checkout-quote-action * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Trade authentication and native WooCommerce account surfaces
   -------------------------------------------------------------------------- */

/* Clear space around the account shell, including below its longest column. */
body.ntb-custom-shell.ntb-trade-account .site-main {
  box-sizing: border-box;
  padding: clamp(24px, 3vw, 40px) clamp(16px, 3vw, 40px) clamp(48px, 5vw, 72px);
}
body.ntb-trade-account {
  caret-color: var(--ntb-blue);
}

body.ntb-trade-account ::selection {
  background: var(--ntb-blue);
  color: #fff;
}

body.ntb-trade-account--login h1.entry-title,
body.ntb-trade-login h1.entry-title {
  display: none;
}

body.ntb-trade-account--login .woocommerce,
body.ntb-trade-login .woocommerce {
  margin-inline: auto;
  max-width: 1120px;
  width: 100%;
}

.ntb-auth-shell {
  background: var(--ntb-surface);
  border: 1px solid var(--ntb-line);
  border-radius: 12px;
  box-shadow: 0 20px 55px rgba(16, 36, 62, 0.12);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  margin: clamp(28px, 5vw, 72px) auto;
  max-width: 1080px;
  min-height: 570px;
  overflow: hidden;
  width: min(100%, 1080px);
}

.ntb-auth-panel {
  align-content: center;
  background: #fff;
  display: grid;
  padding: clamp(34px, 6vw, 72px);
}

.ntb-auth-panel__header {
  border-bottom: 1px solid var(--ntb-line);
  margin-bottom: 28px;
  padding-bottom: 24px;
}

.ntb-auth-brand {
  color: var(--ntb-blue);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.085em;
  margin-bottom: 13px;
  text-transform: uppercase;
}

.ntb-auth-panel__header h2 {
  color: var(--ntb-ink);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0;
}

.ntb-auth-panel__header p {
  color: var(--ntb-muted);
  line-height: 1.65;
  margin: 14px 0 0;
  max-width: 50ch;
}

.ntb-auth-form,
body.ntb-trade-account .ntb-auth-form.login {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.ntb-auth-field,
body.ntb-trade-account .ntb-auth-field.form-row {
  display: grid;
  float: none;
  gap: 8px;
  margin: 0;
  padding: 0;
  width: 100%;
}

.ntb-auth-field label {
  color: var(--ntb-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.ntb-auth-field .required,
body.ntb-trade-account .required {
  color: var(--ntb-danger);
}

.ntb-auth-field input.input-text,
body.ntb-trade-account .ntb-auth-field input.input-text {
  background: #fff;
  border: 1px solid var(--ntb-line-strong);
  border-radius: 7px;
  box-shadow: inset 0 1px 2px rgba(16, 36, 62, 0.035);
  color: var(--ntb-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
  min-height: 52px;
  padding: 12px 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
  width: 100%;
}

.ntb-auth-field input.input-text:hover {
  border-color: #8fa0b2;
}

.ntb-auth-field input.input-text:focus {
  border-color: var(--ntb-blue);
  box-shadow: 0 0 0 3px rgba(21, 63, 115, 0.16);
  outline: 0;
}

.ntb-auth-form__actions {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.ntb-auth-remember {
  align-items: center;
  color: var(--ntb-muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  gap: 9px;
  margin: 0;
  min-height: 44px;
}

.ntb-auth-remember input[type="checkbox"] {
  accent-color: var(--ntb-blue);
  height: 18px;
  margin: 0;
  width: 18px;
}

.ntb-auth-help {
  font-size: 13px;
  margin: -4px 0 0;
}

.ntb-auth-help a,
.ntb-auth-panel__footer a {
  color: var(--ntb-blue);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ntb-auth-panel__footer {
  border-top: 1px solid var(--ntb-line);
  color: var(--ntb-muted);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 28px;
  padding-top: 20px;
}

.ntb-auth-panel__footer p {
  margin: 0;
}

.ntb-auth-context {
  align-items: center;
  background: var(--ntb-ink);
  color: #fff;
  display: flex;
  padding: clamp(36px, 6vw, 68px);
}

.ntb-auth-context__content {
  max-width: 35ch;
}

.ntb-auth-context h3 {
  color: #fff;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
}

.ntb-auth-context__list {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}

.ntb-auth-context__list li {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #d6e0ea;
  line-height: 1.55;
  padding: 17px 0 17px 24px;
  position: relative;
}

.ntb-auth-context__list li::before {
  background: #fff;
  content: "";
  height: 6px;
  left: 2px;
  position: absolute;
  top: 25px;
  width: 6px;
}

.ntb-auth-context__list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

body.ntb-trade-account .woocommerce-notices-wrapper:empty {
  display: none;
}

/* Account notices can be rendered outside the theme's .woocommerce wrapper. */
body.ntb-trade-account :is(.woocommerce-error, .woocommerce-info, .woocommerce-message) {
  --ntb-notice-colour: var(--ntb-blue);
  --ntb-notice-background: var(--ntb-blue-soft);
  position: relative;
  background: var(--ntb-notice-background) !important;
  border: 1px solid var(--ntb-notice-colour) !important;
  border-radius: 6px;
  box-shadow: none;
  color: var(--ntb-notice-colour) !important;
  line-height: 1.5;
  margin: 0 0 24px;
  padding: 16px 20px 16px 48px;
  list-style: none;
}
body.ntb-trade-account .woocommerce-error {
  --ntb-notice-colour: var(--ntb-danger);
  --ntb-notice-background: #fbefee;
}
body.ntb-trade-account .woocommerce-message {
  --ntb-notice-colour: var(--ntb-success);
  --ntb-notice-background: var(--ntb-success-soft);
}
body.ntb-trade-account :is(.woocommerce-error, .woocommerce-info, .woocommerce-message) :is(li, p, strong, em) {
  color: inherit !important;
  background: transparent !important;
}
body.ntb-trade-account :is(.woocommerce-error, .woocommerce-info, .woocommerce-message) a:not(.button) {
  color: inherit !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.ntb-trade-account :is(.woocommerce-error, .woocommerce-info, .woocommerce-message)::before {
  color: var(--ntb-notice-colour) !important;
  left: 16px;
  top: 16px;
}
body.ntb-trade-account :is(.woocommerce-error, .woocommerce-info, .woocommerce-message) .button {
  background: var(--ntb-blue) !important;
  border: 1px solid var(--ntb-blue) !important;
  color: var(--ntb-surface) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  float: right;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 5px;
  line-height: 1.4;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  margin: 0 0 8px 16px;
}
body.ntb-trade-account :is(.woocommerce-error, .woocommerce-info, .woocommerce-message)::after { content: ""; display: table; clear: both; }
@media (max-width: 640px) {
  body.ntb-trade-account :is(.woocommerce-error, .woocommerce-info, .woocommerce-message) .button { display: flex; float: none; width: fit-content; margin: 0 0 12px; }
}
body.ntb-trade-account :is(.woocommerce-error, .woocommerce-info, .woocommerce-message) .button:hover {
  background: var(--ntb-blue-hover) !important;
}
body.ntb-trade-account :is(.woocommerce-error, .woocommerce-info, .woocommerce-message):focus,
body.ntb-trade-account :is(.woocommerce-error, .woocommerce-info, .woocommerce-message) :is(a, button):focus-visible {
  outline: 2px solid var(--ntb-notice-colour);
  outline-offset: 3px;
}

body.ntb-trade-account--signed-in .woocommerce,
body.ntb-trade-account.ntb-trade-authenticated .woocommerce {
  align-items: start;
  column-gap: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  margin-inline: auto;
  max-width: 1360px;
  row-gap: 0;
  width: 100%;
}

body.ntb-trade-account--signed-in .woocommerce > .woocommerce-notices-wrapper,
body.ntb-trade-account.ntb-trade-authenticated .woocommerce > .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-bottom: 20px;
  order: 0;
  width: 100%;
}

body.ntb-trade-account--signed-in .woocommerce-MyAccount-navigation,
body.ntb-trade-account.ntb-trade-authenticated .woocommerce-MyAccount-navigation {
  background: #fff;
  border: 1px solid var(--ntb-line);
  border-radius: 9px;
  float: none;
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  order: 1;
  overflow: hidden;
  position: sticky;
  top: 24px;
  width: 100%;
}

body.ntb-trade-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 8px;
}

body.ntb-trade-account .woocommerce-MyAccount-navigation li {
  border: 0;
  margin: 0;
  padding: 0;
}

body.ntb-trade-account .woocommerce-MyAccount-navigation li + li {
  margin-top: 2px;
}

body.ntb-trade-account .woocommerce-MyAccount-navigation a {
  align-items: center;
  border-radius: 5px;
  color: var(--ntb-muted);
  display: flex;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  min-height: 46px;
  padding: 11px 13px;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

body.ntb-trade-account .woocommerce-MyAccount-navigation a:hover,
body.ntb-trade-account .woocommerce-MyAccount-navigation a:focus-visible {
  background: var(--ntb-blue-soft);
  color: var(--ntb-blue);
}

body.ntb-trade-account .woocommerce-MyAccount-navigation .is-active a {
  background: var(--ntb-ink);
  color: #fff;
  font-weight: 700;
}

body.ntb-trade-account .woocommerce-MyAccount-navigation a:focus-visible {
  outline: 3px solid rgba(21, 63, 115, 0.28);
  outline-offset: -1px;
}

body.ntb-trade-account .woocommerce-MyAccount-navigation-link--customer-logout {
  border-top: 1px solid var(--ntb-line);
  margin-top: 8px;
  padding-top: 8px;
}

body.ntb-trade-account--signed-in .woocommerce-MyAccount-content,
body.ntb-trade-account.ntb-trade-authenticated .woocommerce-MyAccount-content {
  float: none;
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  order: 2;
  width: 100%;
}

.ntb-account-dashboard {
  container-name: ntb-dashboard;
  container-type: inline-size;
  display: grid;
  gap: 26px;
  width: 100%;
}

.ntb-account-hero {
  align-items: flex-start;
  border-bottom: 1px solid var(--ntb-line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 4px 0 24px;
}

.ntb-account-hero h2 {
  color: var(--ntb-ink);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

.ntb-account-hero p {
  color: var(--ntb-muted);
  line-height: 1.6;
  margin: 10px 0 0;
  max-width: 62ch;
}

.ntb-account-hero__aside {
  align-items: flex-end;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 12px;
}

.ntb-account-status,
.ntb-quote-state {
  align-items: center;
  background: var(--ntb-blue-soft);
  border: 1px solid #bfd0e2;
  border-radius: 99px;
  color: var(--ntb-blue);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  min-height: 30px;
  padding: 6px 11px;
  white-space: nowrap;
}

.ntb-account-status--approved,
.ntb-quote-state--customer_approved,
.ntb-quote-state--converted {
  background: var(--ntb-success-soft);
  border-color: #b9d9c7;
  color: var(--ntb-success);
}

.ntb-account-status--pending,
.ntb-quote-state--draft {
  background: var(--ntb-warning-soft);
  border-color: #ead391;
  color: var(--ntb-warning);
}

.ntb-quote-state--customer_declined {
  background: #fbefee;
  border-color: #e4bfbc;
  color: var(--ntb-danger);
}

.ntb-dashboard-primary-actions {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
}

.ntb-account-alert,
.ntb-saved-billing {
  align-items: center;
  background: #fff;
  border: 1px solid var(--ntb-line);
  border-radius: 8px;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  padding: 21px 23px;
}

.ntb-account-alert--warning {
  background: var(--ntb-warning-soft);
  border-color: #ead391;
}

.ntb-account-alert h3,
.ntb-saved-billing h3,
.ntb-account-tools h3,
.ntb-dashboard-section h3 {
  color: var(--ntb-ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.3;
  margin: 0;
}

.ntb-account-alert p {
  color: var(--ntb-muted);
  line-height: 1.55;
  margin: 6px 0 0;
}

.ntb-dashboard-columns {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ntb-dashboard-section,
.ntb-account-tools {
  background: #fff;
  border: 1px solid var(--ntb-line);
  border-radius: 9px;
  overflow: hidden;
}

.ntb-dashboard-section__header,
.ntb-account-tools__header {
  align-items: flex-start;
  border-bottom: 1px solid var(--ntb-line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 22px 23px 18px;
}

.ntb-account-tools__header {
  display: grid;
  gap: 6px;
  justify-content: stretch;
}

.ntb-dashboard-section__header p,
.ntb-account-tools__header p {
  color: var(--ntb-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0 0;
}

.ntb-account-tools__header p {
  margin-top: 0;
  max-width: 70ch;
}

.ntb-dashboard-section__header > a,
.ntb-dashboard-empty a,
.ntb-saved-billing a:not(.ntb-button) {
  color: var(--ntb-blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.ntb-dashboard-list,
.ntb-account-tool-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ntb-dashboard-list li {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 76px;
  padding: 15px 23px;
}

.ntb-dashboard-list li + li {
  border-top: 1px solid var(--ntb-line);
}

.ntb-dashboard-list li:hover {
  background: var(--ntb-surface-subtle);
}

.ntb-dashboard-list__main {
  display: grid;
  gap: 4px;
  min-width: 0;
  text-decoration: none;
}

.ntb-dashboard-list__main strong {
  color: var(--ntb-ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.ntb-dashboard-list__main span,
.ntb-dashboard-list__main time {
  color: var(--ntb-muted);
  font-size: 12px;
}

.ntb-dashboard-list__meta {
  align-items: flex-end;
  color: var(--ntb-muted);
  display: grid;
  flex: 0 0 auto;
  font-size: 12px;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.ntb-dashboard-empty {
  color: var(--ntb-muted);
  line-height: 1.55;
  padding: 28px 23px 30px;
}

.ntb-dashboard-empty h4,
.ntb-dashboard-empty p {
  margin: 0;
}

.ntb-dashboard-empty h4 {
  color: var(--ntb-ink);
  font-size: 16px;
}

.ntb-dashboard-empty p {
  margin: 7px 0 13px;
}

.ntb-account-tool-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ntb-account-tool-links li {
  border-top: 1px solid var(--ntb-line);
  min-width: 0;
}

.ntb-account-tool-links li:nth-child(-n + 2) {
  border-top: 0;
}

.ntb-account-tool-links li:nth-child(even) {
  border-left: 1px solid var(--ntb-line);
}

.ntb-account-tool-links a {
  display: grid;
  gap: 5px;
  min-height: 88px;
  padding: 20px 23px;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.ntb-account-tool-links a:hover,
.ntb-account-tool-links a:focus-visible {
  background: var(--ntb-blue-soft);
}

.ntb-account-tool-links a:focus-visible {
  outline: 3px solid rgba(21, 63, 115, 0.28);
  outline-offset: -3px;
}

.ntb-account-tool-links strong {
  color: var(--ntb-ink);
  font-size: 14px;
}

.ntb-account-tool-links span {
  color: var(--ntb-muted);
  font-size: 12px;
  line-height: 1.5;
}

.ntb-saved-billing > div {
  display: grid;
  gap: 5px;
}

.ntb-saved-billing address {
  color: var(--ntb-muted);
  font-style: normal;
  line-height: 1.55;
  margin: 6px 0;
}

.ntb-saved-billing span {
  color: var(--ntb-muted);
}

/* Native Woo account forms, addresses and order history inherit the same shell. */
body.ntb-trade-account .woocommerce-MyAccount-content > h2,
body.ntb-trade-account .woocommerce-MyAccount-content > h3,
body.ntb-trade-account .woocommerce-MyAccount-content .woocommerce-Address-title h2,
body.ntb-trade-account .woocommerce-MyAccount-content form h2,
body.ntb-trade-account .woocommerce-MyAccount-content form h3 {
  color: var(--ntb-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body.ntb-trade-account .woocommerce-MyAccount-content > p:first-child {
  color: var(--ntb-muted);
  line-height: 1.65;
  margin-top: 0;
  max-width: 72ch;
}

body.ntb-trade-account .woocommerce-MyAccount-content form:not(.ntb-action-form):not(.ntb-quote-editor):not(.ntb-add-line-form):not(.ntb-inline-form):not(.ntb-settings-form):not(.ntb-detached-action),
body.ntb-trade-account .woocommerce-MyAccount-content .woocommerce-customer-details {
  background: #fff;
  border: 1px solid var(--ntb-line);
  border-radius: 9px;
  padding: clamp(22px, 3vw, 32px);
}

body.ntb-trade-account .woocommerce-MyAccount-content fieldset {
  border: 0;
  border-top: 1px solid var(--ntb-line);
  margin: 30px 0 0;
  padding: 28px 0 0;
}

body.ntb-trade-account .woocommerce-MyAccount-content fieldset legend {
  color: var(--ntb-ink);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding: 0;
}

body.ntb-trade-account .woocommerce-MyAccount-content .form-row {
  margin: 0 0 19px;
  padding: 0;
}

body.ntb-trade-account .woocommerce-MyAccount-content .form-row label {
  color: var(--ntb-ink);
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

body.ntb-trade-account .woocommerce-MyAccount-content input.input-text,
body.ntb-trade-account .woocommerce-MyAccount-content input[type="email"],
body.ntb-trade-account .woocommerce-MyAccount-content input[type="password"],
body.ntb-trade-account .woocommerce-MyAccount-content input[type="tel"],
body.ntb-trade-account .woocommerce-MyAccount-content input[type="text"],
body.ntb-trade-account .woocommerce-MyAccount-content select,
body.ntb-trade-account .woocommerce-MyAccount-content textarea {
  background-color: #fff;
  border: 1px solid var(--ntb-line-strong);
  border-radius: 7px;
  box-shadow: inset 0 1px 2px rgba(16, 36, 62, 0.035);
  color: var(--ntb-ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
  min-height: 48px;
  outline: 0;
  padding: 11px 13px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  width: 100%;
}

body.ntb-trade-account .woocommerce-MyAccount-content select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2310243e' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 13px center;
  background-repeat: no-repeat;
  padding-right: 42px;
}

body.ntb-trade-account .woocommerce-MyAccount-content textarea {
  min-height: 112px;
  resize: vertical;
}

body.ntb-trade-account .woocommerce-MyAccount-content input::placeholder,
body.ntb-trade-account .woocommerce-MyAccount-content textarea::placeholder {
  color: #68788a;
  opacity: 1;
}

body.ntb-trade-account .woocommerce-MyAccount-content input.input-text:hover,
body.ntb-trade-account .woocommerce-MyAccount-content select:hover,
body.ntb-trade-account .woocommerce-MyAccount-content textarea:hover {
  border-color: #8fa0b2;
}

body.ntb-trade-account .woocommerce-MyAccount-content input.input-text:focus,
body.ntb-trade-account .woocommerce-MyAccount-content select:focus,
body.ntb-trade-account .woocommerce-MyAccount-content textarea:focus,
body.ntb-trade-account .select2-container--default.select2-container--focus .select2-selection--single,
body.ntb-trade-account .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--ntb-blue);
  box-shadow: 0 0 0 3px rgba(21, 63, 115, 0.15);
}

body.ntb-trade-account .select2-container {
  width: 100% !important;
}

body.ntb-trade-account .select2-container--default .select2-selection--single {
  align-items: center;
  background: #fff;
  border: 1px solid var(--ntb-line-strong);
  border-radius: 7px;
  display: flex;
  min-height: 48px;
  padding: 0 40px 0 13px;
}

body.ntb-trade-account .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--ntb-ink);
  line-height: 1.4;
  padding: 0;
}

body.ntb-trade-account .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px;
  right: 10px;
}

body.ntb-trade-account .woocommerce-MyAccount-content button.button,
body.ntb-trade-account .woocommerce-MyAccount-content a.button {
  align-items: center;
  border: 1px solid var(--ntb-blue);
  border-radius: 5px;
  box-shadow: none;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  line-height: 1.2;
  min-height: 44px;
  padding: 11px 17px;
  text-decoration: none;
}

body.ntb-trade-account .woocommerce-MyAccount-content button.button:not(.ntb-button),
body.ntb-trade-account .woocommerce-MyAccount-content a.button:not(.ntb-button) {
  background: var(--ntb-blue);
  color: #fff;
}

body.ntb-trade-account .woocommerce-MyAccount-content button.button:not(.ntb-button):hover,
body.ntb-trade-account .woocommerce-MyAccount-content a.button:not(.ntb-button):hover {
  background: var(--ntb-blue-hover);
  border-color: var(--ntb-blue-hover);
  color: #fff;
}

body.ntb-trade-account .woocommerce-MyAccount-content button.button:focus-visible,
body.ntb-trade-account .woocommerce-MyAccount-content a.button:focus-visible {
  outline: 3px solid rgba(21, 63, 115, 0.28);
  outline-offset: 3px;
}

body.ntb-trade-account .woocommerce-MyAccount-content .woocommerce-Addresses.col2-set {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

body.ntb-trade-account .woocommerce-Addresses::before,
body.ntb-trade-account .woocommerce-Addresses::after {
  display: none;
}

body.ntb-trade-account .woocommerce-MyAccount-content .woocommerce-Addresses.col2-set > .woocommerce-Address {
  background: #fff;
  border: 1px solid var(--ntb-line);
  border-radius: 9px;
  box-sizing: border-box;
  float: none;
  min-width: 0;
  max-width: none;
  padding: 24px;
  width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
}

body.ntb-trade-account .woocommerce-MyAccount-content .woocommerce-Address-title {
  align-items: flex-start;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--ntb-line);
  display: flex;
  gap: 12px 16px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
}

body.ntb-trade-account .woocommerce-MyAccount-content .woocommerce-Address-title :is(h2, h3) {
  font-size: 19px;
  line-height: 1.3;
  float: none;
  margin: 0;
}

body.ntb-trade-account .woocommerce-MyAccount-content .woocommerce-Address-title .edit {
  flex: 0 0 auto;
  max-width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ntb-blue);
  float: none;
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 3px;
}

body.ntb-trade-account .woocommerce-Address address {
  color: var(--ntb-muted);
  font-style: normal;
  line-height: 1.65;
}

body.ntb-trade-account .woocommerce-orders-table,
body.ntb-trade-account .woocommerce-table--order-details {
  background: #fff;
  border: 1px solid var(--ntb-line);
  border-collapse: separate;
  border-radius: 9px;
  border-spacing: 0;
  overflow: hidden;
  width: 100%;
}

body.ntb-trade-account .woocommerce-orders-table th,
body.ntb-trade-account .woocommerce-orders-table td,
body.ntb-trade-account .woocommerce-table--order-details th,
body.ntb-trade-account .woocommerce-table--order-details td {
  border: 0;
  border-bottom: 1px solid var(--ntb-line);
  padding: 15px 16px;
  text-align: left;
  vertical-align: middle;
}

body.ntb-trade-account .woocommerce-orders-table th,
body.ntb-trade-account .woocommerce-table--order-details th {
  background: var(--ntb-surface-subtle);
  color: var(--ntb-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.ntb-trade-account .woocommerce-orders-table tbody tr:last-child td,
body.ntb-trade-account .woocommerce-table--order-details tbody tr:last-child td {
  border-bottom: 0;
}

body.ntb-trade-account .woocommerce-orders-table td a:not(.button),
body.ntb-trade-account .woocommerce-table--order-details td a:not(.button) {
  color: var(--ntb-blue);
  font-weight: 700;
  text-underline-offset: 3px;
}

body.ntb-trade-account mark.order-status {
  background: var(--ntb-blue-soft);
  border-radius: 99px;
  color: var(--ntb-blue);
  padding: 4px 8px;
}

body.ntb-trade-account .woocommerce-orders-table__cell-order-ntb-job,
body.ntb-trade-account .woocommerce-orders-table__cell-order-ntb-products {
  vertical-align: top;
}

body.ntb-trade-account .woocommerce-orders-table__cell-order-ntb-products {
  min-width: 300px;
  width: 42%;
}

.ntb-order-job,
.ntb-order-products,
.ntb-order-product,
.ntb-order-configuration {
  display: grid;
}

.ntb-order-job {
  gap: 4px;
  min-width: 130px;
}

.ntb-order-job strong {
  color: var(--ntb-ink);
  font-size: 13px;
}

.ntb-order-job small,
.ntb-order-empty,
.ntb-order-product > strong span {
  color: var(--ntb-muted);
  font-size: 11px;
  font-weight: 500;
}

.ntb-order-products {
  gap: 14px;
}

.ntb-order-product {
  gap: 8px;
  min-width: 0;
}

.ntb-order-product + .ntb-order-product {
  border-top: 1px solid var(--ntb-line);
  padding-top: 13px;
}

.ntb-order-product > strong {
  color: var(--ntb-ink);
  font-size: 13px;
  line-height: 1.4;
}

.ntb-order-product__configuration {
  border-top: 1px solid var(--ntb-line);
  margin-top: 2px;
  padding-top: 7px;
}

.ntb-order-product__configuration > summary {
  color: var(--ntb-blue);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  list-style-position: outside;
  margin-left: 14px;
}

.ntb-order-product__configuration[open] > summary {
  margin-bottom: 8px;
}

.ntb-order-product__configuration .ntb-order-configuration {
  margin-top: 0;
}

.ntb-order-configuration {
  border-left: 2px solid var(--ntb-line-strong);
  gap: 8px;
  margin-top: 10px;
  padding-left: 12px;
}

.ntb-order-configuration > strong {
  color: var(--ntb-blue);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ntb-order-configuration dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.ntb-order-configuration dl > div {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(105px, 0.75fr) minmax(0, 1.25fr);
}

.ntb-order-configuration dt,
.ntb-order-configuration dd {
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}

.ntb-order-configuration dt {
  color: var(--ntb-muted);
  font-weight: 600;
}

.ntb-order-configuration dd {
  color: var(--ntb-ink);
}

.ntb-order-details-card {
  background: #fff;
  border: 1px solid var(--ntb-line);
  display: grid;
  gap: 22px;
  margin: 0 0 28px;
  padding: clamp(22px, 3vw, 32px);
}

.ntb-order-details-card > header {
  border-bottom: 1px solid var(--ntb-line);
  display: grid;
  gap: 5px;
  padding-bottom: 18px;
}

.ntb-order-details-card > header > span,
.ntb-order-details-card__value > span {
  color: var(--ntb-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ntb-order-details-card > header h2 {
  color: var(--ntb-ink);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.ntb-order-details-card > header small {
  color: var(--ntb-muted);
  font-size: 12px;
}

.ntb-order-details-card__grid {
  display: grid;
  gap: 20px 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ntb-order-details-card__value {
  align-content: start;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ntb-order-details-card__value--wide {
  grid-column: 1 / -1;
}

.ntb-order-details-card__value > strong {
  color: var(--ntb-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.ntb-checkout-job-fields {
  border-top: 1px solid var(--ntb-line);
  margin-top: 28px;
  padding-top: 26px;
}

.ntb-checkout-job-fields > h3 {
  color: var(--ntb-ink);
  font-size: 21px;
  margin: 0;
}

.ntb-checkout-job-fields > p {
  color: var(--ntb-muted);
  line-height: 1.55;
  margin: 7px 0 20px;
}

.ntb-checkout-job-fields__grid {
  display: grid;
  gap: 18px 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ntb-checkout-job-fields .ntb-checkout-job-field {
  float: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.ntb-checkout-job-field--wide {
  grid-column: 1 / -1;
}

.ntb-checkout-job-fields textarea {
  min-height: 104px;
  resize: vertical;
}

/* Keep the gallery in its grid row. A sticky gallery uses the whole product
   (including description tabs) as its container and can overlap the next row. */
body.ntb-product-page.woocommerce div.product div.images.woocommerce-product-gallery {
  align-self: start;
  position: relative;
  top: auto;
}

body.admin-bar.ntb-product-page.woocommerce div.product div.images.woocommerce-product-gallery {
  top: auto;
}

body.ntb-trade-order-received .woocommerce-order,
body.ntb-trade-order-received .woocommerce-order *,
body.ntb-trade-order-received .wp-block-woocommerce-order-confirmation-status,
body.ntb-trade-order-received .wp-block-woocommerce-order-confirmation-summary,
body.ntb-trade-order-received .wp-block-woocommerce-order-confirmation-totals-wrapper,
body.ntb-trade-order-received .wp-block-woocommerce-order-confirmation-address {
  box-sizing: border-box;
}

/* A single continuous receipt surface: hierarchy comes from spacing and rules,
   not a stack of WooCommerce boxes inside the theme's page container. */
body.ntb-trade-order-received .woocommerce-order {
  color: var(--ntb-ink);
  display: block;
  margin-inline: auto;
  max-width: 1120px;
  width: 100%;
}

body.ntb-trade-order-received .woocommerce-thankyou-order-received,
body.ntb-trade-order-received .wc-block-order-confirmation-status {
  background: var(--ntb-ink);
  border: 0;
  color: #fff;
  display: grid;
  gap: 9px;
  line-height: 1.45;
  margin: 0;
  padding: clamp(28px, 4vw, 44px);
}

body.ntb-trade-order-received .ntb-receipt-title {
  color: #fff;
  display: block;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

body.ntb-trade-order-received .ntb-receipt-message {
  color: #dbe5ef;
  display: block;
  font-size: 15px;
  line-height: 1.65;
  max-width: 70ch;
}

body.ntb-trade-order-received .woocommerce-order-overview,
body.ntb-trade-order-received .wc-block-order-confirmation-summary-list {
  background: var(--ntb-surface-subtle);
  border: 0;
  border-bottom: 1px solid var(--ntb-line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 0 0 clamp(42px, 6vw, 68px);
  padding: 0;
}

body.ntb-trade-order-received .woocommerce-order-overview::before,
body.ntb-trade-order-received .woocommerce-order-overview::after {
  display: none;
}

body.ntb-trade-order-received .woocommerce-order-overview li,
body.ntb-trade-order-received .wc-block-order-confirmation-summary-list-item {
  border: 0;
  border-right: 1px solid var(--ntb-line);
  clear: none !important;
  color: var(--ntb-muted);
  float: none;
  font-size: 11px;
  line-height: 1.45;
  margin: 0;
  min-width: 0;
  padding: 19px 21px;
  text-transform: uppercase;
  width: auto !important;
}

body.ntb-trade-order-received .woocommerce-order-overview li:last-child,
body.ntb-trade-order-received .wc-block-order-confirmation-summary-list-item:last-child {
  border-right: 0;
}

body.ntb-trade-order-received .woocommerce-order-overview li strong,
body.ntb-trade-order-received .wc-block-order-confirmation-summary-list-item__value {
  color: var(--ntb-ink);
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 6px;
  overflow-wrap: anywhere;
  text-transform: none;
}

body.ntb-trade-order-received .woocommerce-bacs-bank-details {
  border: 0;
  margin: 0 0 clamp(46px, 7vw, 76px);
  max-width: 900px;
  padding: 0;
}

body.ntb-trade-order-received .wc-bacs-bank-details-heading,
body.ntb-trade-order-received .woocommerce-order-details__title,
body.ntb-trade-order-received .woocommerce-column__title {
  color: var(--ntb-ink);
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 20px;
}

body.ntb-trade-order-received .wc-bacs-bank-details-account-name {
  color: var(--ntb-muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: -8px 0 17px;
}

body.ntb-trade-order-received .wc-bacs-bank-details {
  border-bottom: 1px solid var(--ntb-line);
  border-top: 1px solid var(--ntb-line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

/* WooCommerce's order_details clearfix must not become empty grid cells. */
body.ntb-trade-order-received .wc-bacs-bank-details::before,
body.ntb-trade-order-received .wc-bacs-bank-details::after {
  content: none;
  display: none;
}

body.ntb-trade-order-received .wc-bacs-bank-details li {
  border: 0;
  border-right: 1px solid var(--ntb-line);
  clear: none !important;
  float: none;
  font-size: 12px;
  margin: 0;
  min-width: 0;
  padding: 17px 20px;
  width: auto;
}

body.ntb-trade-order-received .wc-bacs-bank-details li:last-child {
  border-right: 0;
}

body.ntb-trade-order-received .wc-bacs-bank-details li strong {
  color: var(--ntb-ink);
  display: block;
  font-size: 16px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

body.ntb-trade-order-received .woocommerce-order-details,
body.ntb-trade-order-received .woocommerce-customer-details,
body.ntb-trade-order-received .wp-block-woocommerce-order-confirmation-totals-wrapper,
body.ntb-trade-order-received .wp-block-woocommerce-order-confirmation-address {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--ntb-line);
  box-shadow: none;
  margin: 0;
  padding: clamp(34px, 5vw, 54px) 0 0;
}

body.ntb-trade-order-received .woocommerce-order-details + .woocommerce-customer-details,
body.ntb-trade-order-received .wp-block-woocommerce-order-confirmation-totals-wrapper + .wp-block-woocommerce-order-confirmation-address {
  margin-top: clamp(46px, 7vw, 76px);
}

body.ntb-trade-order-received .woocommerce-table--order-details {
  border: 0;
  border-bottom: 1px solid var(--ntb-line);
  border-collapse: collapse;
  border-radius: 0;
  border-top: 1px solid var(--ntb-line);
  box-shadow: none;
  margin: 0;
  width: 100%;
}

body.ntb-trade-order-received .woocommerce-table--order-details th,
body.ntb-trade-order-received .woocommerce-table--order-details td {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ntb-line);
  color: var(--ntb-ink);
  padding: 17px 18px;
  text-align: left;
  vertical-align: top;
}

body.ntb-trade-order-received .woocommerce-table--order-details thead th {
  background: var(--ntb-surface-subtle);
  color: var(--ntb-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.ntb-trade-order-received .woocommerce-table--order-details tr:last-child th,
body.ntb-trade-order-received .woocommerce-table--order-details tr:last-child td {
  border-bottom: 0;
}

body.ntb-trade-order-received .ntb-order-details-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ntb-line);
  box-shadow: none;
  margin: 0 0 34px;
  padding: 0 0 32px;
}

body.ntb-trade-order-received .ntb-order-details-card > header {
  padding-bottom: 16px;
}

body.ntb-trade-order-received .woocommerce-customer-details address,
body.ntb-trade-account .woocommerce-customer-details address {
  background: transparent;
  border: 0;
  color: var(--ntb-ink);
  font-style: normal;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

body.ntb-trade-order-received .woocommerce-columns--addresses,
body.ntb-trade-account .woocommerce-columns--addresses {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.ntb-trade-order-received .woocommerce-column,
body.ntb-trade-account .woocommerce-column {
  float: none;
  margin: 0;
  max-width: none;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Quote workflow, pricing rules and document choices
   -------------------------------------------------------------------------- */

.ntb-portal-shell {
  container-name: ntb-portal;
  container-type: inline-size;
}

.ntb-callout--success {
  background: var(--ntb-success-soft);
  border-color: #b9d9c7;
}

.ntb-callout--success strong {
  color: var(--ntb-success);
}

.ntb-callout--muted {
  background: #f1f3f6;
  border-color: #d4dbe3;
}

.ntb-callout--muted strong,
.ntb-callout--muted span {
  color: #53606d;
}

.ntb-callout a {
  color: var(--ntb-blue);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ntb-status--customer_declined {
  background: #fbefee;
  border-color: #e4bfbc;
  color: var(--ntb-danger);
}

.ntb-workflow {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.ntb-workflow li {
  align-items: center;
  background: #f1f4f7;
  border: 1px solid #d8e0e9;
  border-radius: 6px;
  color: var(--ntb-muted);
  display: grid;
  gap: 10px;
  grid-template-columns: 30px minmax(0, 1fr);
  min-height: 58px;
  padding: 10px 12px;
}

.ntb-workflow li > span {
  align-items: center;
  background: #fff;
  border: 1px solid #c3ced9;
  border-radius: 50%;
  color: #596878;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.ntb-workflow li > strong {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.ntb-workflow li.is-complete {
  background: var(--ntb-success-soft);
  border-color: #b9d9c7;
  color: var(--ntb-success);
}

.ntb-workflow li.is-complete > span {
  background: var(--ntb-success);
  border-color: var(--ntb-success);
  color: #fff;
}

.ntb-workflow li.is-current {
  background: var(--ntb-blue-soft);
  border-color: #9eb9d4;
  color: var(--ntb-blue);
}

.ntb-workflow li.is-current > span {
  background: var(--ntb-blue);
  border-color: var(--ntb-blue);
  color: #fff;
}

.ntb-options > strong {
  color: var(--ntb-ink);
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ntb-line-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ntb-line-fields > .ntb-field:first-of-type {
  grid-column: auto;
}

.ntb-check {
  min-height: 44px;
}

.ntb-document-controls {
  align-items: end;
  background: var(--ntb-surface-subtle);
  border: 1px solid var(--ntb-line);
  border-radius: 7px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(240px, 1.4fr) repeat(2, minmax(170px, 1fr));
  margin-top: 24px;
  padding: 20px;
}

.ntb-document-controls > div {
  align-self: center;
}

.ntb-document-controls h4,
.ntb-category-markups h4 {
  color: var(--ntb-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.ntb-document-controls p,
.ntb-category-markups p {
  color: var(--ntb-muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 6px 0 0;
}

.ntb-colour-control {
  align-items: stretch;
  display: grid;
  gap: 9px;
  grid-template-columns: 56px minmax(0, 1fr);
  width: 100%;
}

.ntb-field .ntb-colour-control input[type="color"] {
  appearance: none;
  cursor: pointer;
  min-height: 48px;
  padding: 4px;
  width: 56px;
}

.ntb-field .ntb-colour-control input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.ntb-field .ntb-colour-control input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 4px;
}

.ntb-field .ntb-colour-control input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 4px;
}

.ntb-category-markups {
  border-top: 1px solid var(--ntb-line);
  display: grid;
  gap: 18px;
  margin-top: 26px;
  padding-top: 24px;
}

.ntb-tax-rules-status {
  align-content: center;
  background: #eef4fa;
  border: 1px solid #c8d8e8;
  border-radius: 7px;
  color: var(--ntb-ink);
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding: 15px 17px;
}

.ntb-tax-rules-status strong {
  font-size: 13px;
}

.ntb-tax-rules-status span {
  color: var(--ntb-muted);
  font-size: 12px;
  line-height: 1.5;
}

.ntb-category-markups > div:first-child {
  max-width: 72ch;
}

.ntb-category-markups__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.ntb-category-markups__grid .ntb-field {
  background: var(--ntb-surface-subtle);
  border: 1px solid var(--ntb-line);
  border-radius: 6px;
  padding: 13px;
}

.ntb-category-markups__grid .ntb-field > small {
  margin: 0;
}

.ntb-template-gallery {
  border: 0;
  border-top: 1px solid var(--ntb-line);
  margin: 30px 0 0;
  min-width: 0;
  padding: 28px 0 0;
}

.ntb-template-gallery > legend {
  color: var(--ntb-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  padding: 0;
}

.ntb-template-gallery > p,
.ntb-template-gallery__intro > p {
  color: var(--ntb-muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 7px 0 20px;
  max-width: 72ch;
}

.ntb-template-gallery__intro {
  align-items: baseline;
  display: flex;
  gap: 16px 28px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ntb-template-gallery__intro > p {
  margin-bottom: 0;
}

.ntb-template-examples-link,
.ntb-template-example__choose {
  color: var(--ntb-blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.ntb-template-examples-link {
  flex: 0 0 auto;
  white-space: nowrap;
}

.ntb-template-examples-link:hover,
.ntb-template-example__choose:hover {
  color: var(--ntb-blue-hover);
  text-decoration-thickness: 2px;
}

.ntb-template-examples-link:focus-visible,
.ntb-template-example__choose:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgba(21, 63, 115, 0.28);
  outline-offset: 3px;
}

.ntb-template-examples__grid {
  display: grid;
  gap: 34px 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
}

.ntb-template-example {
  align-content: start;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.ntb-template-example__heading h3 {
  color: var(--ntb-ink);
  font-size: 16px;
  line-height: 1.25;
  margin: 0;
}

.ntb-template-example__heading p {
  color: var(--ntb-muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 5px 0 0;
}

.ntb-template-example__paper {
  aspect-ratio: 210 / 297;
  background: #fff;
  border: 1px solid var(--ntb-line-strong);
  box-shadow: 0 12px 28px rgba(16, 36, 62, 0.1);
  color: #10243e;
  container-type: inline-size;
  overflow: hidden;
  padding: 7%;
  position: relative;
}

.ntb-example-document {
  display: grid;
  gap: 6cqw;
  min-width: 0;
  width: 100%;
}

.ntb-example-document__head {
  align-items: start;
  border-bottom: 1px solid var(--ntb-example-accent);
  display: flex;
  gap: 4cqw;
  justify-content: space-between;
  padding-bottom: 4cqw;
}

.ntb-example-document__brand,
.ntb-example-document__meta,
.ntb-example-document__client,
.ntb-example-document__terms {
  display: grid;
  gap: 1cqw;
}

.ntb-example-document__brand strong {
  color: var(--ntb-example-accent);
  font-size: 4.8cqw;
  line-height: 1.1;
}

.ntb-example-document__brand span,
.ntb-example-document__meta span,
.ntb-example-document__meta small,
.ntb-example-document__client span,
.ntb-example-document__client small,
.ntb-example-document__terms span {
  color: #5a6877;
  font-size: 2.7cqw;
  line-height: 1.4;
}

.ntb-example-document__meta {
  flex: 0 0 auto;
  text-align: right;
}

.ntb-example-document__meta b {
  color: var(--ntb-example-accent);
  font-size: 5.2cqw;
  letter-spacing: 0.025em;
  line-height: 1;
  text-transform: uppercase;
}

.ntb-example-document__client strong {
  font-size: 3.5cqw;
}

.ntb-example-document__client > span,
.ntb-example-document__terms strong {
  color: var(--ntb-example-accent);
  font-size: 2.5cqw;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ntb-example-document__table {
  border-bottom: 1px solid #d8e0e9;
  min-width: 0;
  width: 100%;
}

.ntb-example-document__table-head,
.ntb-example-document__item {
  align-items: start;
  display: grid;
  gap: 3cqw;
  grid-template-columns: minmax(0, 1fr) 8cqw 20cqw;
}

.ntb-example-document__table-head {
  background: var(--ntb-example-accent-soft);
  color: var(--ntb-example-accent);
  font-size: 2.5cqw;
  font-weight: 800;
  padding: 2.6cqw 3cqw;
  text-transform: uppercase;
}

.ntb-example-document__table-head span:nth-child(n + 2),
.ntb-example-document__item > span:nth-child(n + 2) {
  text-align: right;
}

.ntb-example-document__item {
  border-top: 1px solid #e2e7ed;
  font-size: 2.8cqw;
  padding: 3.3cqw 3cqw;
}

.ntb-example-document__item > span:first-child {
  display: grid;
  gap: 1cqw;
}

.ntb-example-document__item strong {
  font-size: 3cqw;
}

.ntb-example-document__item small {
  color: #617080;
  font-size: 2.45cqw;
  line-height: 1.35;
}

.ntb-example-document__summary {
  display: grid;
  gap: 2cqw;
  justify-self: end;
  width: min(62%, 210px);
}

.ntb-example-document__summary > span,
.ntb-example-document__summary > strong {
  display: flex;
  font-size: 2.8cqw;
  gap: 4cqw;
  justify-content: space-between;
}

.ntb-example-document__summary > strong {
  border-top: 1px solid var(--ntb-example-accent);
  color: var(--ntb-example-accent);
  font-size: 3.4cqw;
  padding-top: 2.4cqw;
}

.ntb-example-document__terms {
  border-top: 1px solid #d8e0e9;
  padding-top: 3.5cqw;
}

.ntb-template-example__paper--banner .ntb-example-document__head {
  background: var(--ntb-example-accent);
  border: 0;
  color: var(--ntb-example-on-accent);
  margin: -7cqw -7cqw 1cqw;
  padding: 7cqw;
}

.ntb-template-example__paper--banner .ntb-example-document__brand strong,
.ntb-template-example__paper--banner .ntb-example-document__brand span,
.ntb-template-example__paper--banner .ntb-example-document__meta b,
.ntb-template-example__paper--banner .ntb-example-document__meta span,
.ntb-template-example__paper--banner .ntb-example-document__meta small {
  color: var(--ntb-example-on-accent);
}

.ntb-template-example__paper--split .ntb-example-document__head {
  background: linear-gradient(90deg, var(--ntb-example-accent) 0 50%, var(--ntb-example-accent-soft) 50% 100%);
  border: 0;
  margin: -7cqw -7cqw 1cqw;
  padding: 7cqw;
}

.ntb-template-example__paper--split .ntb-example-document__brand strong,
.ntb-template-example__paper--split .ntb-example-document__brand span {
  color: var(--ntb-example-on-accent);
}

.ntb-template-example__paper--sidebar {
  padding-left: 16%;
}

.ntb-template-example__paper--sidebar::before {
  background: var(--ntb-example-accent);
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  top: 0;
  width: 9cqw;
}

.ntb-template-example__paper--sidebar .ntb-example-document__head {
  display: grid;
  width: 100%;
}

.ntb-template-example__paper--sidebar .ntb-example-document__meta {
  text-align: left;
}

.ntb-template-example__paper--minimal .ntb-example-document__head,
.ntb-template-example__paper--clean .ntb-example-document__head,
.ntb-template-example__paper--clean .ntb-example-document__summary > strong {
  border-color: #d8e0e9;
}

.ntb-template-example__paper--minimal .ntb-example-document__table-head,
.ntb-template-example__paper--clean .ntb-example-document__table-head {
  background: transparent;
  border-bottom: 1px solid #d8e0e9;
  padding-left: 0;
  padding-right: 0;
}

.ntb-template-example__paper--clean .ntb-example-document {
  gap: 7cqw;
}

.ntb-template-example__paper--bold .ntb-example-document__table-head,
.ntb-template-example__paper--bold .ntb-example-document__summary > strong {
  background: var(--ntb-example-accent);
  color: var(--ntb-example-on-accent);
}

.ntb-template-example__paper--bold .ntb-example-document__summary > strong {
  border: 0;
  padding: 3cqw;
}

.ntb-template-example__paper--compact {
  padding: 5%;
}

.ntb-template-example__paper--compact .ntb-example-document {
  gap: 3.5cqw;
}

.ntb-template-example__paper--compact .ntb-example-document__item {
  padding-bottom: 2.2cqw;
  padding-top: 2.2cqw;
}

.ntb-template-example__paper--compact.ntb-template-example__paper--banner .ntb-example-document__head,
.ntb-template-example__paper--compact.ntb-template-example__paper--split .ntb-example-document__head {
  margin: -5cqw -5cqw 0;
  padding: 5cqw;
}

.ntb-template-example__paper--sidebar.ntb-template-example__paper--compact {
  padding: 5% 5% 5% 14%;
}

.ntb-template-example__paper--sidebar.ntb-template-example__paper--compact::before {
  width: 7cqw;
}

.ntb-template-example__choose {
  justify-self: start;
}

.ntb-template-gallery__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.ntb-template-card {
  align-content: start;
  background: #fff;
  border: 1px solid var(--ntb-line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 11px 11px 15px;
  position: relative;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.ntb-template-card:hover {
  border-color: #9cafc1;
  box-shadow: 0 8px 20px rgba(16, 36, 62, 0.08);
  transform: translateY(-1px);
}

.ntb-template-card:has(input:checked) {
  background: var(--ntb-blue-soft);
  border-color: var(--ntb-blue);
  box-shadow: 0 0 0 1px var(--ntb-blue);
}

.ntb-template-card > input[type="radio"] {
  accent-color: var(--ntb-blue);
  height: 20px;
  margin: 0;
  position: absolute;
  right: 20px;
  top: 20px;
  width: 20px;
  z-index: 2;
}

.ntb-template-card > input[type="radio"]:focus-visible {
  outline: 3px solid rgba(21, 63, 115, 0.3);
  outline-offset: 3px;
}

.ntb-template-card__preview {
  background: #fff;
  border: 1px solid #cfd8e1;
  border-radius: 5px;
  display: block;
  height: 132px;
  overflow: hidden;
  pointer-events: none;
  position: relative;
  width: 100%;
}

.ntb-template-card input:checked + .ntb-template-card__preview {
  border-color: var(--ntb-blue);
}

.ntb-template-card__preview i,
.ntb-template-card__preview b,
.ntb-template-card__preview em,
.ntb-template-card__preview u {
  display: block;
  position: absolute;
  text-decoration: none;
}

.ntb-template-card__preview i {
  background: var(--ntb-blue);
  height: 8px;
  left: 14px;
  top: 15px;
  width: 42%;
}

.ntb-template-card__preview b {
  background: var(--ntb-blue-soft);
  height: 10px;
  left: 14px;
  right: 14px;
  top: 48px;
}

.ntb-template-card__preview em {
  background: #dbe2e9;
  box-shadow: 0 12px 0 #dbe2e9, 0 24px 0 #dbe2e9;
  height: 1px;
  left: 14px;
  right: 14px;
  top: 68px;
}

.ntb-template-card__preview u {
  background: var(--ntb-blue);
  bottom: 14px;
  height: 7px;
  right: 14px;
  width: 34%;
}

.ntb-template-card__preview--banner i {
  height: 31px;
  left: 0;
  right: 0;
  top: 0;
  width: auto;
}

.ntb-template-card__preview--banner b {
  top: 44px;
}

.ntb-template-card__preview--split i {
  height: 34px;
  left: 0;
  top: 0;
  width: 50%;
}

.ntb-template-card__preview--split::before {
  background: var(--ntb-blue-soft);
  content: "";
  height: 34px;
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
}

.ntb-template-card__preview--split b {
  top: 48px;
}

.ntb-template-card__preview--sidebar i {
  bottom: 0;
  height: auto;
  left: 0;
  top: 0;
  width: 25%;
}

.ntb-template-card__preview--sidebar b,
.ntb-template-card__preview--sidebar em {
  left: calc(25% + 12px);
}

.ntb-template-card__preview--minimal i {
  height: 3px;
  width: 28%;
}

.ntb-template-card__preview--minimal b {
  background: #dbe2e9;
  height: 1px;
}

.ntb-template-card input[value$="-clean"] + .ntb-template-card__preview i {
  height: 4px;
}

.ntb-template-card input[value$="-clean"] + .ntb-template-card__preview b {
  background: #dbe2e9;
  height: 1px;
}

.ntb-template-card input[value$="-clean"] + .ntb-template-card__preview u {
  height: 3px;
}

.ntb-template-card input[value$="-bold"] + .ntb-template-card__preview b {
  background: var(--ntb-blue);
  height: 13px;
}

.ntb-template-card input[value$="-bold"] + .ntb-template-card__preview u {
  height: 13px;
  width: 40%;
}

.ntb-template-card input[value$="-compact"] + .ntb-template-card__preview b {
  height: 7px;
  top: 42px;
}

.ntb-template-card input[value$="-compact"] + .ntb-template-card__preview em {
  box-shadow: 0 8px 0 #dbe2e9, 0 16px 0 #dbe2e9, 0 24px 0 #dbe2e9, 0 32px 0 #dbe2e9;
  top: 58px;
}

.ntb-template-card input[value$="-compact"] + .ntb-template-card__preview u {
  bottom: 10px;
  height: 6px;
}

.ntb-template-card > strong {
  color: var(--ntb-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 3px;
}

.ntb-template-card > small {
  color: var(--ntb-muted);
  font-size: 11px;
  line-height: 1.45;
}

@container ntb-dashboard (max-width: 760px) {
  .ntb-dashboard-columns {
    grid-template-columns: 1fr;
  }

  .ntb-account-tool-links {
    grid-template-columns: 1fr;
  }

  .ntb-account-tool-links li,
  .ntb-account-tool-links li:nth-child(-n + 2),
  .ntb-account-tool-links li:nth-child(even) {
    border-left: 0;
    border-top: 1px solid var(--ntb-line);
  }

  .ntb-account-tool-links li:first-child {
    border-top: 0;
  }
}

@container ntb-portal (max-width: 820px) {
  .ntb-line-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ntb-line-fields > .ntb-field:first-of-type {
    grid-column: 1 / -1;
  }

  .ntb-document-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ntb-document-controls > div {
    grid-column: 1 / -1;
  }
}

@container ntb-portal (max-width: 620px) {
  .ntb-workflow,
  .ntb-line-fields,
  .ntb-document-controls {
    grid-template-columns: 1fr;
  }

  .ntb-line-fields > .ntb-field:first-of-type,
  .ntb-document-controls > div {
    grid-column: auto;
  }
}

@media (max-width: 1100px) {
  body.ntb-trade-account--signed-in .woocommerce,
  body.ntb-trade-account.ntb-trade-authenticated .woocommerce {
    column-gap: 26px;
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .ntb-auth-panel,
  .ntb-auth-context {
    padding: 42px;
  }

  .ntb-dashboard-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  body.ntb-trade-account--signed-in .woocommerce,
  body.ntb-trade-account.ntb-trade-authenticated .woocommerce {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  body.ntb-trade-account--signed-in .woocommerce > .woocommerce-notices-wrapper,
  body.ntb-trade-account.ntb-trade-authenticated .woocommerce > .woocommerce-notices-wrapper,
  body.ntb-trade-account--signed-in .woocommerce-MyAccount-navigation,
  body.ntb-trade-account.ntb-trade-authenticated .woocommerce-MyAccount-navigation,
  body.ntb-trade-account--signed-in .woocommerce-MyAccount-content,
  body.ntb-trade-account.ntb-trade-authenticated .woocommerce-MyAccount-content {
    grid-column: 1;
  }

  body.ntb-trade-account--signed-in .woocommerce-MyAccount-navigation,
  body.ntb-trade-account.ntb-trade-authenticated .woocommerce-MyAccount-navigation {
    grid-row: 2;
    margin-bottom: 24px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    position: static;
    scrollbar-color: var(--ntb-line-strong) transparent;
    scrollbar-width: thin;
  }

  body.ntb-trade-account--signed-in .woocommerce-MyAccount-content,
  body.ntb-trade-account.ntb-trade-authenticated .woocommerce-MyAccount-content {
    grid-row: 3;
  }

  body.ntb-trade-account .woocommerce-MyAccount-navigation ul {
    display: flex;
    gap: 4px;
    min-width: max-content;
    padding: 7px;
  }

  body.ntb-trade-account .woocommerce-MyAccount-navigation li + li {
    margin-top: 0;
  }

  body.ntb-trade-account .woocommerce-MyAccount-navigation a {
    min-height: 44px;
    white-space: nowrap;
  }

  body.ntb-trade-account .woocommerce-MyAccount-navigation-link--customer-logout {
    border-left: 1px solid var(--ntb-line);
    border-top: 0;
    margin: 0 0 0 4px;
    padding: 0 0 0 8px;
  }

  .ntb-document-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ntb-document-controls > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  body.ntb-product-page.woocommerce div.product div.images.woocommerce-product-gallery,
  body.admin-bar.ntb-product-page.woocommerce div.product div.images.woocommerce-product-gallery {
    position: relative;
    top: auto;
  }
}

@media (max-width: 820px) {
	.ntb-block-quote-actions {
		align-items: stretch;
		grid-template-columns: 1fr;
	}

	.ntb-block-quote-actions__buttons {
		justify-content: flex-start;
	}

  .ntb-auth-shell {
    grid-template-columns: 1fr;
    margin-block: 26px;
    min-height: 0;
  }

  .ntb-auth-context {
    min-height: 320px;
  }

  .ntb-auth-context__content {
    max-width: 54ch;
  }

  body.ntb-trade-account .woocommerce-MyAccount-content .woocommerce-Addresses.col2-set {
    grid-template-columns: 1fr;
  }

  .ntb-line-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ntb-line-fields > .ntb-field:first-of-type {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .ntb-auth-panel,
  .ntb-auth-context {
    padding: 30px 24px;
  }

  .ntb-auth-panel__header {
    margin-bottom: 24px;
  }

  .ntb-account-hero,
  .ntb-account-alert,
  .ntb-saved-billing,
  .ntb-dashboard-section__header,
  .ntb-account-tools__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .ntb-account-status {
    align-self: flex-start;
  }

  .ntb-account-hero__aside {
    align-items: flex-start;
    width: 100%;
  }

  .ntb-checkout-job-fields__grid {
    grid-template-columns: 1fr;
  }

  .ntb-checkout-job-field--wide {
    grid-column: auto;
  }

  .ntb-account-alert .ntb-button,
  .ntb-saved-billing .ntb-button {
    width: 100%;
  }

  .ntb-dashboard-list li {
    align-items: flex-start;
    padding: 16px 19px;
  }

  .ntb-dashboard-section__header,
  .ntb-account-tools__header,
  .ntb-dashboard-empty {
    padding-left: 19px;
    padding-right: 19px;
  }

  .ntb-account-tool-links {
    grid-template-columns: 1fr;
  }

  .ntb-account-tool-links li,
  .ntb-account-tool-links li:nth-child(-n + 2),
  .ntb-account-tool-links li:nth-child(even) {
    border-left: 0;
    border-top: 1px solid var(--ntb-line);
  }

  .ntb-account-tool-links li:first-child {
    border-top: 0;
  }

  body.ntb-trade-account .woocommerce-MyAccount-content .form-row-first,
  body.ntb-trade-account .woocommerce-MyAccount-content .form-row-last {
    float: none;
    width: 100%;
  }

  body.ntb-trade-account .woocommerce-orders-table {
    border: 0;
    border-radius: 0;
  }

  body.ntb-trade-account .woocommerce-orders-table tbody,
  body.ntb-trade-account .woocommerce-orders-table tr,
  body.ntb-trade-account .woocommerce-orders-table td {
    display: block;
    width: 100%;
  }

  body.ntb-trade-account .woocommerce-orders-table thead {
    display: none;
  }

  body.ntb-trade-account .woocommerce-orders-table tr {
    background: #fff;
    border: 1px solid var(--ntb-line);
    border-radius: 8px;
    margin-bottom: 14px;
    padding: 8px 15px;
  }

  body.ntb-trade-account .woocommerce-orders-table td,
  body.ntb-trade-account .woocommerce-orders-table tbody tr:last-child td {
    align-items: baseline;
    border-bottom: 1px solid var(--ntb-line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 11px 0;
    text-align: right !important;
  }

  body.ntb-trade-account .woocommerce-orders-table td:last-child {
    border-bottom: 0;
  }

  body.ntb-trade-account .woocommerce-orders-table td::before {
    color: var(--ntb-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-align: left;
    text-transform: uppercase;
  }

  body.ntb-trade-account .woocommerce-orders-table__cell-order-ntb-products {
    align-items: stretch;
    flex-direction: column;
    min-width: 0;
    text-align: left !important;
    width: 100%;
  }

  body.ntb-trade-account .woocommerce-orders-table__cell-order-ntb-products::before {
    margin-bottom: 3px;
  }

  .ntb-workflow,
  .ntb-line-fields,
  .ntb-document-controls {
    grid-template-columns: 1fr;
  }

  .ntb-line-fields > .ntb-field:first-of-type,
  .ntb-document-controls > div {
    grid-column: auto;
  }

  .ntb-template-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ntb-template-gallery__intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .ntb-template-examples-link {
    white-space: normal;
  }

  .ntb-panel-heading {
    align-items: flex-start;
  }

  .ntb-panel-heading__actions {
    align-items: flex-end;
    flex-direction: column;
  }

  .ntb-order-details-card__grid,
  body.ntb-trade-order-received .woocommerce-columns--addresses,
  body.ntb-trade-account .woocommerce-columns--addresses {
    grid-template-columns: 1fr;
  }

  .ntb-order-details-card__value--wide {
    grid-column: auto;
  }

  .ntb-order-configuration dl > div {
    grid-template-columns: 1fr;
  }

  body.ntb-trade-order-received .woocommerce-order-overview,
  body.ntb-trade-order-received .wc-block-order-confirmation-summary-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.ntb-trade-order-received .woocommerce-order-overview li,
  body.ntb-trade-order-received .wc-block-order-confirmation-summary-list-item {
    border-bottom: 1px solid var(--ntb-line);
  }

  body.ntb-trade-order-received .woocommerce-order-overview li:nth-child(2n),
  body.ntb-trade-order-received .wc-block-order-confirmation-summary-list-item:nth-child(2n) {
    border-right: 0;
  }

  body.ntb-trade-order-received .woocommerce-order-overview li:last-child:nth-child(odd),
  body.ntb-trade-order-received .wc-block-order-confirmation-summary-list-item:last-child:nth-child(odd) {
    border-right: 0;
    grid-column: 1 / -1;
  }

  body.ntb-trade-order-received .wc-bacs-bank-details {
    grid-template-columns: 1fr;
  }

  body.ntb-trade-order-received .wc-bacs-bank-details li,
  body.ntb-trade-order-received .wc-bacs-bank-details li:last-child {
    border-bottom: 1px solid var(--ntb-line);
    border-right: 0;
  }

  body.ntb-trade-order-received .wc-bacs-bank-details li:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .ntb-auth-shell {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    box-shadow: none;
    margin-inline: calc(50% - 50vw);
    width: 100vw;
  }

  .ntb-auth-form__actions,
  .ntb-dashboard-primary-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ntb-auth-form__actions .ntb-button,
  .ntb-dashboard-primary-actions .ntb-button {
    width: 100%;
  }

  .ntb-dashboard-list li {
    display: grid;
  }

  .ntb-dashboard-list__meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
    width: 100%;
  }

  .ntb-account-tool-links a {
    min-height: 80px;
    padding: 18px 19px;
  }

  .ntb-template-gallery__grid {
    grid-template-columns: 1fr;
  }

  .ntb-template-card__preview {
    height: 150px;
  }

  .ntb-colour-control {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .ntb-field .ntb-colour-control input[type="color"] {
    width: 52px;
  }
}

@media (forced-colors: active) {
  .ntb-account-status,
  .ntb-quote-state,
  .ntb-status,
  .ntb-workflow li,
  .ntb-template-card,
  .ntb-template-card__preview {
    border: 1px solid CanvasText;
  }

  .ntb-workflow li.is-current > span,
  .ntb-workflow li.is-complete > span {
    background: Highlight;
    border-color: Highlight;
    color: HighlightText;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ntb-trade-account *,
  .ntb-template-card {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .ntb-template-card:hover {
    transform: none;
  }
}

/* Quote progression stays with the workflow, not below the long editor. */
.ntb-quote-detail .ntb-quote-next-step {
  display: block; min-width: 0; margin: 0; padding: 0 0 24px;
  border: 0; border-bottom: 1px solid var(--ntb-line);
  border-radius: 0; background: transparent; box-shadow: none;
}
.ntb-quote-detail .ntb-quote-next-step h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.25; }
.ntb-quote-detail .ntb-quote-next-step p { max-width: 72ch; margin: 0 0 16px; }
.ntb-quote-detail .ntb-quote-next-step .ntb-action-buttons {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px;
}
.ntb-quote-detail .ntb-quote-next-step .ntb-action-form { margin: 0; padding: 0; }
.ntb-quote-detail .ntb-quote-next-step .ntb-button {
  float: none; min-height: 46px; height: auto; white-space: normal;
}
.ntb-quote-detail .ntb-quote-next-step .ntb-button:disabled {
  color: #475569; background: #e8edf2; border-color: #c5ced8;
  opacity: 1; cursor: not-allowed;
}
.ntb-quote-detail .ntb-document-jump { color: #153f73; text-decoration: underline; text-underline-offset: 3px; }
.ntb-quote-detail #ntb-document-actions { scroll-margin-top: 100px; }
@media (max-width: 640px) {
  .ntb-quote-detail .ntb-quote-next-step .ntb-action-buttons > * { width: 100%; }
  .ntb-quote-detail .ntb-quote-next-step .ntb-action-form .ntb-button { width: 100%; }
}

/* Actionable progression feedback uses the same line targets as the editor. */
.ntb-quote-detail .ntb-readiness-issues {
  margin: 0 0 20px;
  padding: 0 0 0 22px;
  max-width: 72ch;
  color: var(--ntb-ink);
  font-size: 16px;
  line-height: 1.6;
}
.ntb-quote-detail .ntb-readiness-issues li { margin: 0 0 12px; }
.ntb-quote-detail .ntb-readiness-issues a {
  color: var(--ntb-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ntb-quote-detail :is(#ntb-quote-items, .ntb-line) { scroll-margin-top: 110px; }
.ntb-quote-detail .ntb-quote-next-step .ntb-button { margin: 0 !important; }
