/* Small layout adjustments for the server-rendered Funding and checkout markup. */
.cv-product-shell[data-theme] .c-funding-workspace .c-scanner-toolbar {
  align-items: center;
}
.cv-product-shell[data-theme] .c-funding-workspace .c-search {
  flex: 1 1 210px;
  min-width: 150px;
}
.cv-product-shell[data-theme] .c-funding-workspace .c-search input {
  width: 100%;
}
.cv-product-shell[data-theme] .c-funding-workspace .c-chart-finance-track {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--material-rim);
  border-radius: 999px;
  background: var(--material-nested);
}
.cv-product-shell[data-theme] .c-funding-workspace .c-chart-finance-track button {
  position: relative;
  z-index: 2;
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  color: var(--color-muted);
  white-space: nowrap;
}
.cv-product-shell[data-theme] .c-funding-workspace .c-chart-finance-track button[aria-pressed="true"] {
  color: var(--color-text);
}
.cv-product-shell[data-theme] .c-funding-mobile {
  display: grid;
  gap: 12px;
}
.cv-product-shell[data-theme] .c-funding-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.cv-product-shell[data-theme] .c-funding-mobile-head .c-coin-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.cv-product-shell[data-theme] .c-funding-mobile-route {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  min-width: 0;
  font-size: 13px;
}
.cv-product-shell[data-theme] .c-funding-mobile-route small {
  color: var(--color-muted);
}
.cv-product-shell[data-theme] .c-funding-mobile-values {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  color: var(--color-muted);
  font-size: 12px;
}
.cv-product-shell[data-theme] .c-funding-mobile-values span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.cv-product-shell[data-theme] .c-funding-mobile-values b {
  color: var(--color-text);
}
.cv-product-shell[data-theme] .cv-merchant-checkout > h1 {
  margin-bottom: 12px;
}
.cv-product-shell[data-theme] .cv-merchant-checkout .cv-checkout-back {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--color-muted);
}
.cv-product-shell[data-theme] .cv-checkout-elite {
  max-width: 560px;
  margin-top: 16px;
}
.cv-product-shell[data-theme] .cv-checkout-elite p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
}
.cv-product-shell[data-theme] .cv-checkout-elite .c-btn {
  margin-top: 22px;
}
@media (max-width: 767px) {
  .cv-product-shell[data-theme] .c-funding-workspace .c-scanner-desktop {
    display: none;
  }
  .cv-product-shell[data-theme] .c-funding-workspace .c-funding-mobile {
    display: grid;
  }
}
@media (min-width: 768px) {
  .cv-product-shell[data-theme] .c-funding-workspace .c-funding-mobile {
    display: none;
  }
}
@media (max-width: 480px) {
  .cv-product-shell[data-theme] .c-funding-workspace .c-chart-finance-track {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }
  .cv-product-shell[data-theme] .c-funding-workspace .c-chart-finance-track button {
    flex: 1 1 0;
  }
}

/* Invoice: amount, state, then transfer details, with a stable loading footprint. */
.cv-product-shell[data-theme] .cv-merchant-checkout {
  width: min(100%, 640px); max-width: 640px; box-sizing: border-box;
  padding-top: 36px; padding-bottom: 48px;
}
.cv-product-shell[data-theme] .cv-invoice-card {
  display: flex; flex-direction: column; gap: 22px;
  min-height: 500px; margin-top: 20px; padding: 28px;
}
.cv-product-shell[data-theme] .cv-invoice-card .cv-merchant-plan-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin: 0; padding-bottom: 22px; border-bottom: 1px solid var(--color-border-soft);
}
.cv-product-shell[data-theme] .cv-invoice-card .cv-merchant-plan-heading > div > span {
  color: var(--color-muted); font-size: 12px;
}
.cv-product-shell[data-theme] .cv-invoice-card h2 {
  margin: 6px 0 0; font-size: 30px; font-weight: 500; letter-spacing: -.03em;
}
.cv-product-shell[data-theme] .cv-invoice-card .cv-plan-price {
  margin: 0; text-align: right; flex: 0 0 auto;
}
.cv-product-shell[data-theme] .cv-invoice-card .cv-plan-price strong {
  font-size: clamp(24px, 4vw, 32px); font-weight: 500; line-height: 1.2;
}
.cv-product-shell[data-theme] .cv-invoice-card .cv-plan-price > div {
  margin-top: 5px; color: var(--color-muted); font-size: 12px;
}
.cv-product-shell[data-theme] .cv-invoice-card .cv-checkout-summary {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0;
}
.cv-product-shell[data-theme] .cv-invoice-card .cv-checkout-summary > div {
  display: flex; flex-direction: column; gap: 5px;
}
.cv-product-shell[data-theme] .cv-invoice-card dt { color: var(--color-muted); font-size: 12px; }
.cv-product-shell[data-theme] .cv-invoice-card dd { margin: 0; font-size: 14px; }
.cv-product-shell[data-theme] .cv-invoice-card .cv-checkout-status {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0; padding: 13px 15px; border: 1px solid var(--color-border-soft);
  border-radius: 16px; background: var(--material-nested);
}
.cv-product-shell[data-theme] .cv-invoice-card .cv-checkout-status strong { font-size: 13px; font-weight: 500; }
.cv-product-shell[data-theme] .cv-invoice-card .cv-checkout-status button { flex-shrink: 0; font-size: 12px; }
.cv-product-shell[data-theme] .cv-invoice-card .cv-inline-payment {
  display: grid; gap: 16px; margin: 0; padding: 20px;
  border: 1px solid var(--color-border-soft); border-radius: 18px;
}
.cv-product-shell[data-theme] .cv-invoice-card label {
  display: grid; gap: 8px; color: var(--color-muted); font-size: 12px;
}
.cv-product-shell[data-theme] .cv-invoice-card input {
  box-sizing: border-box; width: 100%; min-width: 0; height: 44px; padding: 10px 12px;
  border: 1px solid var(--color-border); border-radius: 10px;
  background: var(--material-nested); color: var(--color-text); font-size: 13px;
}
.cv-product-shell[data-theme] .cv-invoice-card p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--color-muted); }
.cv-product-shell[data-theme] .cv-invoice-card .cv-checkout-form { display: grid; gap: 14px; margin: 0; }
.cv-product-shell[data-theme] .cv-invoice-card > .c-btn { width: 100%; min-height: 44px; }
.cv-product-shell[data-theme] .cv-invoice-card > .c-btn:last-child { margin-top: auto; }
.cv-invoice-skeleton { display: grid; gap: 20px; padding-top: 15px; }
.cv-invoice-skeleton i { display: block; height: 58px; border-radius: 12px; background: var(--material-nested); }
.cv-invoice-skeleton i:first-child { width: 65%; height: 72px; }
.cv-invoice-skeleton i:last-child { height: 90px; }
@media (max-width: 559px) {
  .cv-product-shell[data-theme] .cv-invoice-card { padding: 20px; gap: 18px; }
  .cv-product-shell[data-theme] .cv-invoice-card .cv-inline-payment { padding: 15px; }
  .cv-product-shell[data-theme] .cv-invoice-card .cv-checkout-status { align-items: flex-start; flex-direction: column; }
}
.cv-product-shell[data-theme] .cv-hosted-payment { display: grid; gap: 18px; padding-top: 2px; }
.cv-product-shell[data-theme] .cv-hosted-payment h3 { margin: 0; font-size: 16px; font-weight: 500; }
.cv-product-shell[data-theme] .cv-hosted-payment ol { display: grid; gap: 14px; margin: 0; padding-left: 21px; font-size: 13px; line-height: 1.65; color: var(--color-muted); }
.cv-product-shell[data-theme] .cv-hosted-payment li { padding-left: 5px; }
.cv-product-shell[data-theme] .cv-hosted-payment li::marker { color: var(--color-accent); }
.cv-product-shell[data-theme] .cv-hosted-payment > .c-btn { width: 100%; min-height: 46px; }
.cv-product-shell[data-theme] .cv-hosted-payment > .c-btn:disabled { opacity: .55; cursor: default; }
/* Funding pairs share the arbitrage scanner's two aligned market legs. */
.cv-product-shell[data-theme] .c-funding-table .c-funding-pair-stack { display: grid; gap: 12px; }
.cv-product-shell[data-theme] .c-funding-table .c-funding-pair-stack > * { min-height: 42px; }
.cv-product-shell[data-theme] .c-funding-pair-leg { min-width: 225px; gap: 16px; }
.cv-product-shell[data-theme] .c-funding-pair-leg .c-market-venue { display: flex; align-items: center; gap: 6px; }
.cv-product-shell[data-theme] .c-funding-pair-leg small { color: var(--color-muted); font-size: 10px; font-weight: 400; }
.cv-product-shell[data-theme] .c-funding-leg-detail { display: flex; flex-direction: column; justify-content: center; gap: 4px; white-space: nowrap; }
.cv-product-shell[data-theme] .c-funding-leg-detail .c-num { font-size: 13px; }
.cv-product-shell[data-theme] .c-funding-leg-detail small { color: var(--color-muted); font-size: 11px; }
.cv-product-shell[data-theme] .c-funding-table th { white-space: normal; }
.cv-product-shell[data-theme] .c-funding-table td:first-child { width: 44px; }
.cv-product-shell[data-theme] [data-funding-href] { cursor: pointer; }
.cv-product-shell[data-theme] [data-funding-href]:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.cv-product-shell[data-theme] .c-funding-net-label { display: block; margin: 7px 0 0; color: var(--color-muted); text-align: right; font-size: 11px; }
.cv-product-shell[data-theme] .c-funding-mobile-leg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--color-border-soft); }
.cv-product-shell[data-theme] .c-funding-mobile-leg .c-market-leg { grid-column: 1 / -1; min-width: 0; }
.cv-product-shell[data-theme] .c-funding-mobile-leg .c-funding-leg-detail { white-space: normal; }
.cv-product-shell[data-theme] .c-funding-mobile-leg .c-funding-leg-detail:last-child { text-align: right; }
