/* The sell block's own rules, moved out of calc-formula.css on 29 Nov so a page outside the calculators can show it (the
   /notion-template pricing band, Igor «делай» on the calculators' story as the Pro offer): the calculators load this file
   after calc-formula.css (tools/includes/calc-formula.php); another page wraps the block in .cf-sell-host. :is() keeps the
   old specificity, so the calculators draw exactly as before. */
/* The calculators' palette, for a host outside them (calc-formula.css keeps its own copy on body.calc-formula). */
.cf-sell-host { --cf-ink: #1d1d22; --cf-grey: #6b6b75; --cf-faint: #8a8a94; --cf-line: #ececf1; --cf-edge: #d6d6de; --cf-chip: #f1f1f5; --cf-red: #c4342d; --cf-green: #449a6b; --cf-accent: var(--lr-accent, #443ab8); }
/* What TSB does with this number (tools/includes/calc-sell.php, Igor 28 Nov «С»): the landing's accepted lines and film
   (assets/landing-relaunch.css .lr-one, ported at the calculator's scale: 32 px lines where the landing's are 40), said
   about the visitor's own answer, on the landing's demo trader. */
@font-face { font-family: 'TSB Hand'; src: url('/assets/fonts/landing/Caveat-latin.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
:is(body.calc-formula, .cf-sell-host) .cf-sell { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--cf-line); }
/* The lines at the page's section size, under the calculator's answer, the action beside them (Igor 28 Nov «растяни их
   как-то чтобы не было пусто», then «Да, 32px» on 40 px lines that outweighed the answer). */
:is(body.calc-formula, .cf-sell-host) .cf-sell-head { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: center; gap: 48px; }
:is(body.calc-formula, .cf-sell-host) .cf-sell-lines { margin: 0; color: var(--cf-ink); font-size: 32px; font-weight: 500; line-height: 52px; letter-spacing: -0.03em; }
:is(body.calc-formula, .cf-sell-host) .cf-sell-lines > span { display: block; }
:is(body.calc-formula, .cf-sell-host) .cf-sell-lines > span > i { color: var(--cf-grey); font-style: normal; }
:is(body.calc-formula, .cf-sell-host) .cf-sell-lines b { font-weight: 500; }
:is(body.calc-formula, .cf-sell-host) .cf-sell-lines .is-loss { color: var(--cf-red); }
:is(body.calc-formula, .cf-sell-host) .cf-sell-lines .is-win { color: var(--cf-green); }
:is(body.calc-formula, .cf-sell-host) .cf-sell-chip { position: relative; top: -.08em; display: inline-flex; align-items: center; gap: .32em; height: 40px; margin: 0 .1em; padding: 0 .5em 0 .34em; border: 1px solid #e3e3ea; border-radius: 6px; background: #fff; font-size: 20px; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; vertical-align: middle; font-variant-numeric: tabular-nums; }
:is(body.calc-formula, .cf-sell-host) .cf-sell-chip .lr-src-tile { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 6px; overflow: hidden; }
:is(body.calc-formula, .cf-sell-host) .cf-sell-chip .lr-src-tile img { width: 100%; height: 100%; object-fit: cover; }
:is(body.calc-formula, .cf-sell-host) .cf-sell-chip.is-voice { padding: 0 .5em; border-color: transparent; background: var(--cf-accent); color: #fff; }
:is(body.calc-formula, .cf-sell-host) .cf-sell-wave { display: flex; flex: none; align-items: center; gap: 3px; height: 20px; }
:is(body.calc-formula, .cf-sell-host) .cf-sell-wave i { flex: none; width: 2px; height: calc(var(--h) * 100%); min-height: 3px; border-radius: 2px; background: #fff; }
:is(body.calc-formula, .cf-sell-host) .cf-sell-dot { color: #b4b4bd; }
:is(body.calc-formula, .cf-sell-host) .cf-sell-said, :is(body.calc-formula, .cf-sell-host) .cf-sell-cost { white-space: nowrap; }
:is(body.calc-formula, .cf-sell-host) .cf-sell-said mark { padding: .02em .14em .06em; border-radius: 6px; background: #eaeaec; color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
:is(body.calc-formula, .cf-sell-host) .cf-sell-film { margin-top: 64px; }
/* The note and its arrow are placed on the film itself (not on the month row under it), so the arrow ends at the square. */
:is(body.calc-formula, .cf-sell-host) .cf-sell-stage { position: relative; }
:is(body.calc-formula, .cf-sell-host) .cf-sell-svg { display: block; width: 100%; height: auto; }
:is(body.calc-formula, .cf-sell-host) .cf-sell-part { display: none; width: 100%; height: auto; }
/* By the square's own class: the phone's halves draw the film through <use>, whose copies see no ancestor's class. */
.cf-sell-zero { stroke: #dcdce4; stroke-width: 1; }
.cf-sq { fill: #ebebef; }
.cf-sq.is-lit.is-win { fill: #449a6b; }
.cf-sq.is-lit.is-loss { fill: #c4342d; }
:is(body.calc-formula, .cf-sell-host) .cf-sell-note { position: absolute; top: -50px; color: var(--cf-ink); font: 500 24px/1 'TSB Hand', 'Segoe Print', 'Bradley Hand', cursive; white-space: nowrap; transform: translateX(calc(-100% - 58px)) rotate(-5deg); }
/* The note ends a fixed 10 px before its arrow starts, whatever its length («past the stop» ran into the arrow: Igor 28 Nov «слиплось»). */
:is(body.calc-formula, .cf-sell-host) .cf-sell-arrow { position: absolute; top: -38px; width: 50px; overflow: visible; transform: translateX(-49px); pointer-events: none; }
:is(body.calc-formula, .cf-sell-host) .cf-sell-arrow path { fill: none; stroke: var(--cf-ink); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
:is(body.calc-formula, .cf-sell-host) .cf-sell-months { position: relative; display: block; height: 20px; margin-top: 8px; }
:is(body.calc-formula, .cf-sell-host) .cf-sell-months em { position: absolute; color: var(--cf-grey); font-size: 14px; font-style: normal; line-height: 20px; }
:is(body.calc-formula, .cf-sell-host) .cf-sell-caption { margin: 12px 0 0; color: var(--cf-grey); font-size: 14px; line-height: 22px; }
:is(body.calc-formula, .cf-sell-host) .cf-sell-act { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
:is(body.calc-formula, .cf-sell-host) .cf-sell-act small { color: var(--cf-faint); font-size: 13px; text-align: center; }
/* The site's buttons as the band and the nav draw them (the leaf's own type would set them at 400 / 16). */
:is(body.calc-formula, .cf-sell-host) .cf-sell-act .lr-button { font: 500 17px/1 var(--lr-font, 'TSB Inter', Inter, sans-serif); letter-spacing: -0.01em; }

@media (max-width: 1180px) {
    :is(body.calc-formula, .cf-sell-host) .cf-sell-head { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    :is(body.calc-formula, .cf-sell-host) .cf-sell-act { flex-direction: row; flex-wrap: wrap; align-items: center; }
    :is(body.calc-formula, .cf-sell-host) .cf-sell-act small { text-align: left; }
}
@media (max-width: 600px) {
    :is(body.calc-formula, .cf-sell-host) .cf-sell { margin-top: 48px; padding-top: 28px; }
    :is(body.calc-formula, .cf-sell-host) .cf-sell-lines { font-size: 24px; line-height: 36px; letter-spacing: -0.025em; }
    :is(body.calc-formula, .cf-sell-host) .cf-sell-lines > span + span { margin-top: 10px; }
    :is(body.calc-formula, .cf-sell-host) .cf-sell-chip { height: 32px; margin-inline: 0; font-size: 16px; }
    :is(body.calc-formula, .cf-sell-host) .cf-sell-chip .lr-src-tile { width: 22px; height: 22px; }
    :is(body.calc-formula, .cf-sell-host) .cf-sell-wave { gap: 2px; height: 18px; }
    :is(body.calc-formula, .cf-sell-host) .cf-sell-said, :is(body.calc-formula, .cf-sell-host) .cf-sell-cost { display: block; white-space: normal; }
    :is(body.calc-formula, .cf-sell-host) .cf-sell-note, :is(body.calc-formula, .cf-sell-host) .cf-sell-arrow, :is(body.calc-formula, .cf-sell-host) .cf-sell-months, :is(body.calc-formula, .cf-sell-host) .cf-sell-svg { display: none; }
    :is(body.calc-formula, .cf-sell-host) .cf-sell-part { display: block; }
    :is(body.calc-formula, .cf-sell-host) .cf-sell-part + .cf-sell-part { margin-top: 12px; }
    :is(body.calc-formula, .cf-sell-host) .cf-sell-film { margin-top: 28px; }
    :is(body.calc-formula, .cf-sell-host) .cf-sell-act { flex-wrap: wrap; }
}
