/* Generated from products/design-system/shared/rate-page by Navorina/scripts/sync-ds-invoice-document.mjs. Do not edit. */
/* Rate page (shared/rate-page.js): the public exchange-rate page and the rates index.
   Surfaces come from the page it sits on: the public tools canvas (css/tools.css) in the product,
   the catalog island tokens in the DS. The page draws its own field, pills, period switch and table rows,
   so the catalog and navorina.ai look the same without the product's form and table runtimes. */

.nv-rate {
  --nv-rate-island: var(--nv-tools-island, var(--nv-table-island, #141416));
  --nv-rate-well: var(--nv-tools-well, var(--nv-table-well, #1f1f22));
  --nv-rate-well-hover: var(--nv-tools-well-hover, var(--nv-table-well-hover, #29292c));
  --nv-rate-radius: var(--nv-island-radius, 2rem);
  --nv-rate-pad: var(--nv-island-padding, 24px);
  --nv-rate-line: var(--nv-text-primary, #f5f5f7);
  display: grid;
  gap: 16px;
  min-width: 0;
  color: var(--nv-text-primary);
}

.nv-rate :is(h1, h2, p, dl, dd) { margin: 0; }

.nv-rate-head { display: grid; gap: 4px; padding-block-end: 8px; }

.nv-rate-head h1 {
  font-size: var(--nv-type-title-1-size, 28px);
  font-weight: var(--nv-type-title-1-weight, 600);
  line-height: var(--nv-type-title-1-line, 34px);
  letter-spacing: var(--nv-type-title-1-tracking, -.02em);
}

.nv-rate-head__names,
.nv-rate-head__source {
  color: var(--nv-text-secondary);
  font-size: var(--nv-type-body-size, 14px);
  line-height: var(--nv-type-body-line, 20px);
}

.nv-rate-head__value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  margin-block-start: 12px;
  font-size: var(--nv-type-title-2-size, 22px);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.nv-rate-head__value span { color: var(--nv-text-secondary); }

.nv-rate-head__value strong {
  font-size: var(--nv-type-large-title-size, 40px);
  font-weight: 600;
  letter-spacing: -.025em;
}

.nv-rate-head__source { color: var(--nv-text-tertiary); font-size: var(--nv-type-footnote-size, 12px); line-height: 16px; }
.nv-rate-head__source a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 2px; }
.nv-rate-head__source a:hover { color: var(--nv-text-secondary); }

.nv-rate-island {
  min-width: 0;
  padding: var(--nv-rate-pad);
  border-radius: var(--nv-rate-radius);
  background: var(--nv-rate-island);
}

.nv-rate-island__head {
  display: flex;
  min-height: 32px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.nv-rate-island__title {
  font-size: var(--nv-type-headline-size, 15px);
  font-weight: var(--nv-type-headline-weight, 600);
  line-height: var(--nv-type-headline-line, 20px);
  letter-spacing: var(--nv-type-headline-tracking, -.009em);
}

/* Converter left, chart right; stacked under 960 px. */
.nv-rate-grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.nv-rate-convert { display: grid; align-content: start; gap: 16px; }

.nv-rate-field { display: grid; gap: 6px; }
.nv-rate-field > span { color: var(--nv-text-secondary); font-size: var(--nv-type-footnote-size, 12px); font-weight: 500; line-height: 16px; }

.nv-rate-input {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--nv-rate-well);
  color: var(--nv-text-primary);
  font: inherit;
  font-size: var(--nv-type-body-size, 14px);
  font-variant-numeric: tabular-nums;
  outline: none;
}

input.nv-rate-input:hover { background: var(--nv-rate-well-hover); }
input.nv-rate-input:focus-visible { box-shadow: 0 0 0 2px var(--nv-text-tertiary); }
.nv-rate-convert__result { font-weight: 600; }

/* Pills: quiet secondary on the well, one primary for the invoice call. */
.nv-rate-button {
  display: inline-flex;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--nv-rate-well);
  color: var(--nv-text-primary);
  cursor: pointer;
  font: inherit;
  font-size: var(--nv-type-callout-size, 13px);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nv-rate-button:hover { background: var(--nv-rate-well-hover); }
.nv-rate-button:focus-visible,
.nv-rate-tab:focus-visible { outline: 2px solid var(--nv-text-tertiary); outline-offset: 2px; }
.nv-rate-button svg { width: 16px; height: 16px; }

.nv-rate-button--primary {
  height: 36px;
  padding: 0 16px;
  background: var(--nv-button-primary, var(--color-button-primary, #eeeeee));
  color: var(--nv-button-primary-text, var(--color-button-primary-text, #0a0a0a));
}

.nv-rate-button--primary:hover { background: var(--nv-button-primary, var(--color-button-primary, #eeeeee)); opacity: .9; }
.nv-rate-swap { justify-self: start; }

.nv-rate-convert__inverse { color: var(--nv-text-tertiary); font-size: var(--nv-type-footnote-size, 12px); font-variant-numeric: tabular-nums; line-height: 16px; }

/* Chart island. */
.nv-rate-chart { display: grid; align-content: start; gap: 16px; }
.nv-rate-tabs { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--nv-rate-well); }

.nv-rate-tab {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--nv-text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: var(--nv-type-footnote-size, 12px);
  font-weight: 500;
}

.nv-rate-tab:hover { color: var(--nv-text-primary); }
.nv-rate-tab.is-active { background: var(--nv-rate-island); color: var(--nv-text-primary); }
.nv-rate-chart__range { display: grid; gap: 12px; }

.nv-rate-chart__plot {
  position: relative;
  height: 200px;
  touch-action: pan-y;
  cursor: crosshair;
}

.nv-rate-chart__plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.nv-rate-chart__line { fill: none; stroke: var(--nv-rate-line); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nv-rate-chart__area { fill: color-mix(in srgb, var(--nv-rate-line) 7%, transparent); stroke: none; }

.nv-rate-chart__cursor {
  position: absolute;
  inset-block: 0;
  width: 1px;
  background: color-mix(in srgb, var(--nv-text-primary) 18%, transparent);
  pointer-events: none;
}

.nv-rate-chart__dot {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--nv-rate-line);
  box-shadow: 0 0 0 3px var(--nv-rate-island);
  pointer-events: none;
}

.nv-rate-chart__tip {
  position: absolute;
  top: -6px;
  transform: translate(-50%, -100%);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--nv-rate-well);
  color: var(--nv-text-primary);
  font-size: var(--nv-type-footnote-size, 12px);
  font-variant-numeric: tabular-nums;
  line-height: 16px;
  white-space: nowrap;
  pointer-events: none;
}

.nv-rate-chart__axis {
  display: flex;
  justify-content: space-between;
  color: var(--nv-text-tertiary);
  font-size: var(--nv-type-footnote-size, 12px);
  line-height: 16px;
}

.nv-rate-chart__empty {
  display: grid;
  height: 200px;
  place-items: center;
  border-radius: 20px;
  background: var(--nv-rate-well);
  color: var(--nv-text-secondary);
  font-size: var(--nv-type-callout-size, 13px);
}

.nv-rate-chart__since { color: var(--nv-text-tertiary); font-size: var(--nv-type-footnote-size, 12px); line-height: 16px; }

.nv-rate-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nv-rate-stats dt { color: var(--nv-text-tertiary); font-size: var(--nv-type-footnote-size, 12px); line-height: 16px; }
.nv-rate-stats dd { font-size: var(--nv-type-body-size, 14px); font-variant-numeric: tabular-nums; font-weight: 600; line-height: 20px; }

/* What lands. */
.nv-rate-delivered { display: grid; gap: 12px; }
.nv-rate-delivered__lead { color: var(--nv-text-secondary); font-size: var(--nv-type-body-size, 14px); line-height: 20px; }
.nv-rate-delivered__lead span { color: var(--nv-text-primary); font-variant-numeric: tabular-nums; }

.nv-rate-badge {
  display: inline-flex;
  height: 22px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--nv-rate-well);
  color: var(--nv-text-secondary);
  font-size: var(--nv-type-footnote-size, 12px);
  font-weight: 500;
}

.nv-rate-routes { display: grid; gap: 4px; }

.nv-rate-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  margin-inline: -12px;
  padding: 8px 12px;
  border-radius: 16px;
}

.nv-rate-route:hover { background: var(--nv-rate-well); }
.nv-rate-route__label { font-size: var(--nv-type-body-size, 14px); font-weight: 500; line-height: 20px; }
.nv-rate-route__note { color: var(--nv-text-tertiary); font-size: var(--nv-type-footnote-size, 12px); line-height: 16px; }
.nv-rate-route__value { flex: none; font-size: var(--nv-type-body-size, 14px); font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }

.nv-rate-footnote { color: var(--nv-text-tertiary); font-size: var(--nv-type-footnote-size, 12px); line-height: 16px; }

/* Amount tables: table islands side by side, rows with the table hover, no rules. */
.nv-rate-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nv-rate-table { display: grid; gap: 8px; padding-block-end: 12px; }

.nv-rate-grid-table {
  width: calc(100% + 24px);
  margin-inline: -12px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--nv-type-body-size, 14px);
  font-variant-numeric: tabular-nums;
  line-height: 20px;
}

.nv-rate-grid-table th {
  padding: 8px 12px;
  color: var(--nv-text-tertiary);
  font-size: var(--nv-type-footnote-size, 12px);
  font-weight: 500;
  line-height: 16px;
  text-align: start;
}

.nv-rate-grid-table td { height: 40px; padding: 0 12px; }
.nv-rate-grid-table td:first-child { border-radius: 14px 0 0 14px; color: var(--nv-text-secondary); }
.nv-rate-grid-table td:last-child { border-radius: 0 14px 14px 0; }
.nv-rate-grid-table tbody tr:hover td { background: var(--nv-rate-well); }
.nv-rate-grid-table .is-amount { text-align: end; }
.nv-rate-grid-table td.is-amount { font-weight: 500; }

/* Call to action. */
.nv-rate-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.nv-rate-cta p { margin-block-start: 2px; color: var(--nv-text-secondary); font-size: var(--nv-type-callout-size, 13px); line-height: 18px; }

/* About and FAQ. */
.nv-rate-about { display: grid; gap: 12px; }
.nv-rate-about__intro { color: var(--nv-text-secondary); font-size: var(--nv-type-body-size, 14px); line-height: 22px; max-width: 72ch; }
.nv-rate-faq { display: grid; gap: 2px; margin-inline: -12px; }
.nv-rate-faq__item { border-radius: 16px; }
.nv-rate-faq__item[open] { background: var(--nv-rate-well); }

.nv-rate-faq__item summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  cursor: pointer;
  font-size: var(--nv-type-body-size, 14px);
  font-weight: 500;
  line-height: 20px;
  list-style: none;
}

.nv-rate-faq__item summary::-webkit-details-marker { display: none; }
.nv-rate-faq__item summary:hover { background: var(--nv-rate-well); }
.nv-rate-faq__item summary:focus-visible { outline: 2px solid var(--nv-text-tertiary); outline-offset: -2px; }
.nv-rate-faq__item p { padding: 0 12px 12px; color: var(--nv-text-secondary); font-size: var(--nv-type-body-size, 14px); line-height: 22px; max-width: 72ch; }

/* Other pairs. */
.nv-rate-related { display: grid; gap: 12px; }
.nv-rate-pairs { display: flex; flex-wrap: wrap; gap: 8px; }

.nv-rate-pair {
  display: inline-flex;
  height: 32px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--nv-rate-well);
  color: var(--nv-text-primary);
  font-size: var(--nv-type-callout-size, 13px);
  font-weight: 500;
  text-decoration: none;
}

.nv-rate-pair:hover { background: var(--nv-rate-well-hover); }
.nv-rate-pair--all { background: transparent; color: var(--nv-text-secondary); }
.nv-rate-pair--all:hover { color: var(--nv-text-primary); }

.nv-rate-index__pair { color: var(--nv-text-primary); font-weight: 500; text-decoration: none; }
.nv-rate-grid-table td:first-child:has(.nv-rate-index__pair) { color: var(--nv-text-primary); }
.nv-rate-index__pair:hover { text-decoration: underline; text-underline-offset: 3px; }

.nv-rate-empty p { display: grid; gap: 4px; color: var(--nv-text-secondary); font-size: var(--nv-type-callout-size, 13px); line-height: 18px; }
.nv-rate-empty strong { color: var(--nv-text-primary); font-size: var(--nv-type-body-size, 14px); font-weight: 600; }

@media (max-width: 959px) {
  .nv-rate-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .nv-rate-head h1 { font-size: var(--nv-type-title-2-size, 22px); line-height: var(--nv-type-title-2-line, 28px); }
  .nv-rate-head__value strong { font-size: 32px; }
  .nv-rate-tables { grid-template-columns: minmax(0, 1fr); }
  .nv-rate-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nv-rate-chart__plot { height: 160px; }
  .nv-rate-chart__empty { height: 160px; }
  .nv-rate-cta .nv-rate-button { width: 100%; }
}
