.fxo-ci,
.fxo-ci * {
  box-sizing: border-box;
}

.fxo-ci {
  --ci-navy: #020c1b;
  --ci-navy-soft: #07172d;
  --ci-blue: #046bd2;
  --ci-blue-dark: #045cb4;
  --ci-cyan: #62d6ff;
  --ci-ink: #111827;
  --ci-slate: #475569;
  --ci-muted: #64748b;
  --ci-line: #dbe4ee;
  --ci-soft: #f5f9fd;
  --ci-success: #08775d;
  --ci-danger: #b42318;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: clip;
  color: var(--ci-ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.55;
}

.fxo-ci [hidden] {
  display: none !important;
}

.fxo-ci button,
.fxo-ci input,
.fxo-ci select,
.fxo-ci textarea {
  font: inherit;
}

.fxo-ci button,
.fxo-ci a {
  -webkit-tap-highlight-color: transparent;
}

.fxo-ci a {
  text-decoration: none !important;
}

.fxo-ci-shell {
  width: min(1296px, calc(100% - 144px));
  margin-inline: auto;
}

.fxo-ci-hero {
  position: relative;
  isolation: isolate;
  padding: 28px 0 58px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(98, 214, 255, 0.2), transparent 29%),
    linear-gradient(135deg, var(--ci-navy-soft), var(--ci-navy));
  color: #fff;
}

.fxo-ci-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(98, 214, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 214, 255, 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.2) 38%, #000 100%);
  pointer-events: none;
}

.fxo-ci-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: #b9c9d9;
  font-size: 13px;
}

.fxo-ci-breadcrumbs a {
  color: #d9e8f5;
}

.fxo-ci-breadcrumbs a:hover,
.fxo-ci-breadcrumbs a:focus-visible {
  color: #fff;
  text-decoration: underline !important;
}

.fxo-ci-eyebrow {
  margin: 0 0 14px;
  color: var(--ci-cyan);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.fxo-ci h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 4.2vw, 58px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.fxo-ci-lead {
  max-width: 850px;
  margin: 18px 0 0;
  color: #d7e4f1;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
}

.fxo-ci-hero-actions,
.fxo-ci-toolbar-actions,
.fxo-ci-bottom-actions,
.fxo-ci-resource-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.fxo-ci-hero-actions {
  margin-top: 22px;
}

.fxo-ci-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.fxo-ci-button:hover,
.fxo-ci-button:focus-visible {
  transform: translateY(-1px);
}

.fxo-ci-button-primary {
  background: var(--ci-blue);
  color: #fff;
  box-shadow: 0 12px 32px rgba(4, 107, 210, 0.28);
}

.fxo-ci-button-primary:hover,
.fxo-ci-button-primary:focus-visible {
  background: #1682ed;
  color: #fff;
}

.fxo-ci-button-secondary {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.fxo-ci-button-secondary:hover,
.fxo-ci-button-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.fxo-ci-button-light {
  border-color: #c8d6e5;
  background: #fff;
  color: var(--ci-ink);
}

.fxo-ci-button-light:hover,
.fxo-ci-button-light:focus-visible {
  border-color: var(--ci-blue);
  color: var(--ci-blue-dark);
}

.fxo-ci-workspace {
  padding: 44px 0 64px;
  background: var(--ci-soft);
}

.fxo-ci-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid var(--ci-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(15, 36, 58, 0.08);
}

.fxo-ci-toolbar-label {
  margin: 0 0 10px;
  color: var(--ci-ink);
  font-size: 14px;
  font-weight: 700;
}

.fxo-ci-toolbar-help {
  margin: 9px 0 0;
  color: var(--ci-muted);
  font-size: 13px;
}

.fxo-ci-segmented {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border: 1px solid #cbd8e6;
  border-radius: 12px;
  background: #f4f7fa;
}

.fxo-ci-segmented button {
  min-height: 42px;
  padding: 9px 17px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ci-slate);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.fxo-ci-segmented button.is-active {
  background: var(--ci-navy-soft);
  color: #fff;
  box-shadow: 0 4px 12px rgba(2, 12, 27, 0.15);
}

.fxo-ci-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 16px;
  border-left: 4px solid var(--ci-blue);
  border-radius: 8px;
  background: #eaf4ff;
  color: #17324d;
  font-size: 14px;
}

.fxo-ci-notice strong {
  flex: 0 0 auto;
}

.fxo-ci-form {
  padding: 26px;
  border: 1px solid var(--ci-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(15, 36, 58, 0.1);
}

.fxo-ci-document-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ci-navy);
}

.fxo-ci-logo-mark {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: contain;
  border-radius: 8px;
}

.fxo-ci-document-header > div:last-child {
  text-align: right;
}

.fxo-ci-document-header p {
  margin: 0;
  color: var(--ci-navy);
  font-size: 24px;
  font-weight: 700;
}

.fxo-ci-document-header small {
  color: var(--ci-muted);
  font-size: 13px;
}

.fxo-ci-card {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--ci-line);
  border-radius: 16px;
  background: #fff;
}

.fxo-ci-section-heading,
.fxo-ci-section-heading-copy {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.fxo-ci-section-heading {
  margin-bottom: 16px;
}

.fxo-ci-section-heading-action {
  align-items: center;
  justify-content: space-between;
}

.fxo-ci-section-heading > span,
.fxo-ci-section-heading-copy > span {
  min-width: 38px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e8f3ff;
  color: var(--ci-blue-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.fxo-ci-section-heading h2 {
  margin: 0;
  color: var(--ci-navy);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.fxo-ci-section-heading p {
  margin: 5px 0 0;
  color: var(--ci-muted);
  font-size: 14px;
}

.fxo-ci-grid {
  display: grid;
  gap: 12px 14px;
}

.fxo-ci-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fxo-ci-grid-2,
.fxo-ci-party-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fxo-ci-party-grid {
  display: grid;
  gap: 14px;
}

.fxo-ci label {
  display: block;
  min-width: 0;
  color: var(--ci-slate);
  font-size: 13px;
  font-weight: 600;
}

.fxo-ci label > span:first-child,
.fxo-ci-party legend {
  display: block;
  margin-bottom: 5px;
}

.fxo-ci label b {
  color: var(--ci-danger);
}

.fxo-ci label > small {
  display: block;
  margin-top: 6px;
  color: var(--ci-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.fxo-ci input,
.fxo-ci select,
.fxo-ci textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #b9c8d8;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: var(--ci-ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.fxo-ci textarea {
  min-height: 66px;
  resize: vertical;
}

.fxo-ci input:focus,
.fxo-ci select:focus,
.fxo-ci textarea:focus {
  border-color: var(--ci-blue);
  box-shadow: 0 0 0 3px rgba(4, 107, 210, 0.14);
}

.fxo-ci input[readonly] {
  background: #f4f7fa;
  color: #334155;
}

.fxo-ci [aria-invalid="true"] {
  border-color: var(--ci-danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

.fxo-ci-party {
  min-width: 0;
  margin: 0;
  padding: 15px;
  border: 1px solid var(--ci-line);
  border-radius: 12px;
}

.fxo-ci-party legend {
  padding: 0 7px;
  color: var(--ci-navy);
  font-size: 16px;
  font-weight: 700;
}

.fxo-ci-party > label + label,
.fxo-ci-party > .fxo-ci-grid,
.fxo-ci-party > .fxo-ci-grid + label {
  margin-top: 11px;
}

.fxo-ci-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  cursor: pointer;
}

.fxo-ci-check input {
  width: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
}

.fxo-ci-check span {
  margin: 0 !important;
}

.fxo-ci-buyer {
  margin-top: 14px;
}

.fxo-ci-commodity-list {
  display: grid;
  gap: 12px;
}

.fxo-ci-commodity {
  position: relative;
  padding: 16px;
  border: 1px solid #cbd8e6;
  border-radius: 14px;
  background: #fbfdff;
}

.fxo-ci-commodity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.fxo-ci-commodity-head h3 {
  margin: 0;
  color: var(--ci-navy);
  font-size: 16px;
  font-weight: 700;
}

.fxo-ci-commodity-head button,
.fxo-ci-suggestions-head button {
  min-height: 36px;
  padding: 6px 9px;
  border: 0;
  background: transparent;
  color: var(--ci-danger);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.fxo-ci-grid-commodity {
  grid-template-columns: 2fr repeat(6, minmax(100px, 1fr));
}

.fxo-ci-description {
  grid-column: span 2;
}

.fxo-ci-description small {
  display: block;
  margin-top: 6px;
  color: var(--ci-muted);
  font-size: 12px;
  font-weight: 400;
}

.fxo-ci-code-field {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px;
}

.fxo-ci-lookup-button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--ci-blue);
  border-radius: 8px;
  background: #eaf4ff;
  color: var(--ci-blue-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.fxo-ci-lookup-button:hover,
.fxo-ci-lookup-button:focus-visible {
  background: var(--ci-blue);
  color: #fff;
}

.fxo-ci-lookup-button:disabled {
  border-color: #cbd5e1;
  background: #edf1f5;
  color: #718096;
  cursor: not-allowed;
}

.fxo-ci-suggestions {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #bfd5ea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 36, 58, 0.12);
}

.fxo-ci-suggestions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--ci-line);
  background: #f1f7fd;
  color: var(--ci-navy);
  font-size: 14px;
}

.fxo-ci-suggestions-head button {
  color: var(--ci-slate);
}

.fxo-ci-suggestions-status {
  margin: 0;
  padding: 13px 16px;
  color: var(--ci-muted);
  font-size: 13px;
}

.fxo-ci-suggestions-list {
  max-height: 340px;
  overflow-y: auto;
}

.fxo-ci-suggestion {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(110px, 0.34fr) 1fr;
  gap: 14px;
  padding: 14px 16px;
  border: 0;
  border-top: 1px solid #e7edf4;
  background: #fff;
  color: var(--ci-ink);
  cursor: pointer;
  text-align: left;
}

.fxo-ci-suggestion:hover,
.fxo-ci-suggestion:focus-visible,
.fxo-ci-suggestion[aria-selected="true"] {
  background: #edf6ff;
  outline: 0;
}

.fxo-ci-suggestion-code {
  color: var(--ci-blue-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}

.fxo-ci-suggestion-description {
  font-size: 13px;
  line-height: 1.5;
}

.fxo-ci-value-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.65fr);
  gap: 30px;
}

.fxo-ci-input-group {
  display: grid;
  grid-template-columns: 1fr 82px;
}

.fxo-ci-input-group input {
  border-radius: 8px 0 0 8px;
}

.fxo-ci-input-group select {
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.fxo-ci-totals {
  align-self: start;
  padding: 22px;
  border-radius: 12px;
  background: var(--ci-navy-soft);
  color: #fff;
}

.fxo-ci-totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  color: #ccdae7;
  font-size: 13px;
}

.fxo-ci-totals strong {
  color: #fff;
  font-weight: 600;
  text-align: right;
}

.fxo-ci-totals .fxo-ci-grand-total {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.fxo-ci-grand-total strong {
  color: var(--ci-cyan);
  font-size: 18px;
}

.fxo-ci-card > label:not(.fxo-ci-check) {
  margin-top: 18px;
}

.fxo-ci-certification {
  padding: 15px;
  border: 1px solid #cbd8e6;
  border-radius: 10px;
  background: #f8fbfe;
}

.fxo-ci-signature {
  max-width: 520px;
}

.fxo-ci-signature-grid {
  margin-top: 18px;
}

.fxo-ci-form-status {
  margin-top: 20px;
  border-radius: 10px;
  font-size: 14px;
}

.fxo-ci-form-status:not(:empty) {
  padding: 14px 16px;
}

.fxo-ci-form-status.is-error {
  border: 1px solid #f3b7b2;
  background: #fff0ef;
  color: #8b1d15;
}

.fxo-ci-form-status.is-success {
  border: 1px solid #99d7c7;
  background: #edfbf6;
  color: #08634f;
}

.fxo-ci-bottom-actions {
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--ci-line);
}

.fxo-ci-bottom-actions p {
  margin: 0;
  color: var(--ci-muted);
  font-size: 13px;
}

.fxo-ci-guidance {
  padding: 96px 0;
  background: #fff;
}

.fxo-ci-guidance .fxo-ci-eyebrow {
  color: var(--ci-blue);
}

.fxo-ci-guidance h2 {
  max-width: 760px;
  margin: 0;
  color: var(--ci-navy);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.fxo-ci-guidance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.fxo-ci-guidance-grid article {
  padding: 27px;
  border: 1px solid var(--ci-line);
  border-radius: 14px;
  background: #fff;
}

.fxo-ci-guidance-grid h3 {
  margin: 0;
  color: var(--ci-navy);
  font-size: 18px;
  font-weight: 700;
}

.fxo-ci-guidance-grid p {
  margin: 12px 0 0;
  color: var(--ci-slate);
  font-size: 15px;
  line-height: 1.7;
}

.fxo-ci-invoice-explainer {
  margin-top: 72px;
  padding: 38px;
  border: 1px solid var(--ci-line);
  border-radius: 18px;
  background: var(--ci-soft);
}

.fxo-ci-invoice-explainer h2 {
  max-width: 850px;
  font-size: clamp(30px, 3.5vw, 44px);
}

.fxo-ci-explainer-lead {
  max-width: 980px;
  margin: 20px 0 0;
  color: var(--ci-slate);
  font-size: 16px;
  line-height: 1.75;
}

.fxo-ci-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.fxo-ci-comparison-grid article {
  padding: 24px;
  border: 1px solid var(--ci-line);
  border-radius: 12px;
  background: #fff;
}

.fxo-ci-comparison-grid h3 {
  margin: 0;
  color: var(--ci-navy);
  font-size: 18px;
  font-weight: 700;
}

.fxo-ci-comparison-grid p,
.fxo-ci-source-note {
  margin: 10px 0 0;
  color: var(--ci-slate);
  font-size: 14px;
  line-height: 1.7;
}

.fxo-ci-source-note {
  margin-top: 22px;
}

.fxo-ci-source-note a {
  color: var(--ci-blue-dark);
  font-weight: 600;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.fxo-ci-faq {
  margin-top: 64px;
}

.fxo-ci-faq h2 {
  max-width: 820px;
  font-size: clamp(30px, 3.5vw, 44px);
}

.fxo-ci-faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.fxo-ci-faq details {
  align-self: start;
  border: 1px solid var(--ci-line);
  border-radius: 12px;
  background: #fff;
}

.fxo-ci-faq summary {
  position: relative;
  padding: 18px 48px 18px 20px;
  color: var(--ci-navy);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
}

.fxo-ci-faq summary::-webkit-details-marker {
  display: none;
}

.fxo-ci-faq summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  color: var(--ci-blue-dark);
  content: "+";
  font-size: 22px;
  line-height: 1;
  transform: translateY(-50%);
}

.fxo-ci-faq details[open] summary::after {
  content: "−";
}

.fxo-ci-faq summary:focus-visible {
  border-radius: 12px;
  outline: 3px solid rgba(4, 107, 210, 0.2);
  outline-offset: 2px;
}

.fxo-ci-faq details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--ci-slate);
  font-size: 14px;
  line-height: 1.65;
}

.fxo-ci-resource-links {
  margin-top: 28px;
}

.fxo-ci-resource-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #cbd8e6;
  border-radius: 999px;
  color: var(--ci-blue-dark);
  font-size: 13px;
  font-weight: 600;
}

.fxo-ci-resource-links a:hover,
.fxo-ci-resource-links a:focus-visible {
  border-color: var(--ci-blue);
  background: #f1f7fd;
}

@media (max-width: 1180px) {
  .fxo-ci-shell {
    width: min(100% - 64px, 1100px);
  }

  .fxo-ci-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fxo-ci-grid-commodity {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .fxo-ci-description {
    grid-column: span 3;
  }
}

@media (max-width: 760px) {
  .fxo-ci-shell {
    width: min(100% - 32px, 680px);
  }

  .fxo-ci-hero {
    padding: 22px 0 44px;
  }

  .fxo-ci-breadcrumbs {
    margin-bottom: 26px;
  }

  .fxo-ci h1 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .fxo-ci-workspace,
  .fxo-ci-guidance {
    padding: 40px 0;
  }

  .fxo-ci-toolbar,
  .fxo-ci-bottom-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .fxo-ci-segmented {
    width: 100%;
  }

  .fxo-ci-toolbar-actions .fxo-ci-button,
  .fxo-ci-bottom-actions .fxo-ci-button {
    flex: 1;
  }

  .fxo-ci-notice {
    flex-direction: column;
  }

  .fxo-ci-form {
    padding: 20px;
  }

  .fxo-ci-document-header {
    align-items: flex-start;
  }

  .fxo-ci-document-header > div:last-child {
    text-align: right;
  }

  .fxo-ci-card {
    padding: 20px;
  }

  .fxo-ci-grid-4,
  .fxo-ci-grid-2,
  .fxo-ci-party-grid,
  .fxo-ci-grid-commodity,
  .fxo-ci-value-layout,
  .fxo-ci-guidance-grid,
  .fxo-ci-faq-list,
  .fxo-ci-comparison-grid {
    grid-template-columns: 1fr;
  }

  .fxo-ci-invoice-explainer {
    margin-top: 50px;
    padding: 24px;
  }

  .fxo-ci-faq {
    margin-top: 46px;
  }

  .fxo-ci-description,
  .fxo-ci-code-field {
    grid-column: auto;
  }

  .fxo-ci-section-heading-action {
    align-items: stretch;
    flex-direction: column;
  }

  .fxo-ci-section-heading-action > .fxo-ci-button {
    align-self: flex-start;
  }

  .fxo-ci-suggestion {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (max-width: 430px) {
  .fxo-ci-shell {
    width: min(100% - 24px, 390px);
  }

  .fxo-ci-hero-actions,
  .fxo-ci-toolbar-actions {
    flex-direction: column;
  }

  .fxo-ci-hero-actions .fxo-ci-button,
  .fxo-ci-toolbar-actions .fxo-ci-button {
    width: 100%;
  }

  .fxo-ci-form {
    padding: 14px;
    border-radius: 14px;
  }

  .fxo-ci-card,
  .fxo-ci-commodity {
    padding: 16px;
  }

  .fxo-ci-document-header p {
    font-size: 19px;
  }

  .fxo-ci-logo-mark {
    width: 46px;
    height: 46px;
  }

  .fxo-ci-code-field {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fxo-ci *,
  .fxo-ci *::before,
  .fxo-ci *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    size: Letter portrait;
    margin: 6mm;
  }

  body {
    background: #fff !important;
  }

  body > header,
  body > footer,
  .site-header,
  .site-footer,
  #masthead,
  #colophon,
  .fxo-ci-hero,
  .fxo-ci-toolbar,
  .fxo-ci-notice,
  .fxo-ci-guidance,
  .fxo-ci-bottom-actions,
  .fxo-ci-form-status,
  .fxo-ci-lookup-button,
  .fxo-ci-suggestions,
  .fxo-ci-section-heading > span,
  .fxo-ci-section-heading-copy > span,
  [data-ci-action="add-row"],
  [data-ci-action="remove-row"] {
    display: none !important;
  }

  .fxo-ci,
  .fxo-ci-workspace,
  .fxo-ci-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
    color: #000 !important;
  }

  .fxo-ci-form {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .fxo-ci-document-header {
    min-height: 36px;
    padding: 0 0 5px;
    border-bottom: 1.5px solid #111827;
  }

  .fxo-ci-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 4px;
  }

  .fxo-ci-document-header p {
    font-size: 15px;
    line-height: 1.1;
  }

  .fxo-ci-document-header small {
    font-size: 7px;
  }

  .fxo-ci-card {
    margin-top: 5px;
    padding: 4px 0 0;
    break-inside: avoid;
    border: 0;
    border-top: 1px solid #8f9baa;
    border-radius: 0;
    background: #fff;
  }

  .fxo-ci-section-heading,
  .fxo-ci-section-heading-copy {
    display: block;
    margin: 0 0 3px;
  }

  .fxo-ci-section-heading h2 {
    font-size: 8px;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .fxo-ci-section-heading p,
  .fxo-ci label > small {
    display: none;
  }

  .fxo-ci-grid,
  .fxo-ci-party-grid {
    gap: 3px 5px;
  }

  .fxo-ci-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .fxo-ci-grid-2,
  .fxo-ci-party-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fxo-ci-grid-commodity {
    grid-template-columns: 1.8fr 0.8fr 0.8fr 0.55fr 0.65fr 0.75fr 0.75fr;
  }

  .fxo-ci-description {
    grid-column: span 2;
  }

  .fxo-ci-code-field {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }

  .fxo-ci label {
    font-size: 6.5px;
    line-height: 1.15;
  }

  .fxo-ci label > span:first-child,
  .fxo-ci-party legend {
    margin-bottom: 1px;
  }

  .fxo-ci input,
  .fxo-ci select,
  .fxo-ci textarea {
    min-height: 18px;
    padding: 2px 3px;
    border: 0;
    border-bottom: 0.75px solid #8793a3;
    border-radius: 0;
    background: transparent;
    color: #000;
    box-shadow: none;
    font-size: 7.5px;
    line-height: 1.15;
  }

  .fxo-ci textarea {
    min-height: 25px;
  }

  .fxo-ci-party {
    padding: 3px 5px 4px;
    break-inside: avoid;
    border: 0.75px solid #aab4c0;
    border-radius: 2px;
  }

  .fxo-ci-party legend {
    padding: 0 3px;
    font-size: 8px;
  }

  .fxo-ci-party > label + label,
  .fxo-ci-party > .fxo-ci-grid,
  .fxo-ci-party > .fxo-ci-grid + label,
  .fxo-ci-card > label:not(.fxo-ci-check),
  .fxo-ci-signature-grid {
    margin-top: 3px;
  }

  .fxo-ci-check {
    gap: 4px;
    margin-top: 3px;
  }

  .fxo-ci-check input {
    width: 10px;
    min-height: 10px;
    flex-basis: 10px;
  }

  .fxo-ci-buyer {
    margin-top: 4px;
  }

  .fxo-ci-commodity-list {
    gap: 3px;
  }

  .fxo-ci-commodity {
    padding: 3px 5px 4px;
    break-inside: avoid;
    border: 0.75px solid #aab4c0;
    border-radius: 2px;
    background: #fff;
  }

  .fxo-ci-commodity-head {
    margin-bottom: 2px;
  }

  .fxo-ci-commodity-head h3 {
    font-size: 7.5px;
  }

  .fxo-ci-value-layout {
    grid-template-columns: 1.75fr 0.65fr;
    gap: 7px;
  }

  .fxo-ci-input-group {
    grid-template-columns: 1fr 34px;
  }

  .fxo-ci-totals {
    padding: 4px 6px;
    border: 0.75px solid #8793a3;
    border-radius: 2px;
    background: #fff;
    color: #000;
  }

  .fxo-ci-totals > div {
    padding: 1px 0;
    color: #000;
    font-size: 6.5px;
  }

  .fxo-ci-totals strong,
  .fxo-ci-totals .fxo-ci-grand-total,
  .fxo-ci-grand-total strong {
    color: #000;
    font-size: 7px;
  }

  .fxo-ci-totals .fxo-ci-grand-total {
    margin-top: 1px;
    padding-top: 2px;
    border-top: 0.75px solid #8793a3;
  }

  .fxo-ci-certification {
    padding: 3px 5px;
    border-radius: 2px;
  }

  .fxo-ci-signature {
    max-width: none;
  }
}
