/* Finishing styles for the existing French V2 pages and forms. */
html:lang(fr) .theme-v2-legacy .legacy-main {
  --polish-tint: #edf6fa;
  --polish-line: #b9d0db;
  --polish-ink: #143949;
  --polish-muted: #426273;
  --polish-action: #1f5668;
  --polish-action-hover: #173f50;
}

html:lang(fr) .theme-v2-legacy .legacy-main .v2-section-line {
  display: block;
  inline-size: 100%;
  max-inline-size: 100%;
  block-size: 1px;
  margin: 1rem 0;
  padding: 0;
  border: 0;
  background: linear-gradient(90deg, #91b4c4, #cedfe6 72%, transparent);
}
html:lang(fr) .theme-v2-legacy .legacy-main .v2-section-line + br { display: none; }
html:lang(fr) .theme-v2-legacy .legacy-main option.v2-option-separator:disabled { display: none; }

html:lang(fr) .theme-v2-legacy .legacy-main hr {
  max-width: 100%;
  min-height: 1px;
  margin-block: 1.25rem;
  border: 0;
  background: linear-gradient(90deg, #91b4c4, #cedfe6 72%, transparent);
}
html:lang(fr) .theme-v2-legacy .legacy-main .t50-inline-icon,
html:lang(fr) .theme-v2-legacy .legacy-main :is(.t50-heading-icon, .t50-content-icon, .t50-benefit-icon) {
  color: var(--polish-action);
}
html:lang(fr) .theme-v2-legacy .legacy-main :is(.t50-heading-icon, .t50-content-icon, .t50-benefit-icon) {
  background: #e1f0f6;
  border-radius: 10px;
}
html:lang(fr) .theme-v2-legacy .legacy-main :is(.t50-content-icon, .t50-heading-icon) svg {
  stroke-width: 1.7;
}
html:lang(fr) .theme-v2-legacy .legacy-main a > .t50-image-action {
  border-color: var(--polish-line);
  border-radius: 10px;
  background: var(--polish-tint);
  color: var(--polish-ink);
  font-family: var(--legacy-font);
}
html:lang(fr) .theme-v2-legacy .legacy-main a:hover > .t50-image-action {
  border-color: #83afc2;
  background: #dceff6;
  color: var(--polish-ink);
}
html:lang(fr) .theme-v2-legacy .legacy-main :is(.theme50-plan-details a, .theme50-plan-original a, .t50-payment-card a) {
  color: var(--legacy-link);
}

html:lang(fr) .theme-v2-legacy .legacy-main .theme50-order-scope :is(.theme50-domain-panel, .theme50-domain-choice-label) {
  border-color: var(--polish-line);
  background: var(--polish-tint);
  color: var(--polish-ink);
}
html:lang(fr) .theme-v2-legacy .legacy-main .theme50-order-scope .theme50-domain-choice:checked + .theme50-domain-choice-label {
  border-color: #8eb34a;
  background: #eff7dc;
  color: #28410c;
}
html:lang(fr) .theme-v2-legacy .legacy-main .theme50-form-section-heading,
html:lang(fr) .theme-v2-legacy .legacy-main .theme50-order-scope :is(.theme50-field-label, .theme50-field-help, .theme50-order-terms) {
  color: var(--polish-muted);
  font-family: var(--legacy-font) !important;
}
html:lang(fr) .theme-v2-legacy .legacy-main .theme50-order-scope .theme50-calculation-number[readonly] {
  border-color: var(--polish-line) !important;
  background: var(--polish-tint) !important;
  color: var(--polish-ink) !important;
}
html:lang(fr) .theme-v2-legacy .legacy-main :is(.theme50-form-action-empty, .v2-recharge-submit) {
  border-color: var(--polish-action);
  background-color: var(--polish-action);
}
html:lang(fr) .theme-v2-legacy .legacy-main :is(.theme50-form-action-empty, .v2-recharge-submit):hover {
  border-color: var(--polish-action-hover);
  background-color: var(--polish-action-hover);
}

html:lang(fr) .theme-v2-legacy .legacy-main :is(.t50-payment-select, .t50-payment-detail, .t50-invoice-table, .t50-account-summary, .t50-payment-card, .t50-payment-card table) {
  border-color: var(--polish-line);
  font-family: var(--legacy-font) !important;
}
html:lang(fr) .theme-v2-legacy.t50-billing-page .legacy-main :is(.t50-payment-prompt, .t50-payment-detail, .t50-invoice-reference > td, .t50-invoice-columns > :is(td, th), .t50-account-domain td) {
  background-color: var(--polish-tint) !important;
  color: var(--polish-ink) !important;
}
html:lang(fr) .theme-v2-legacy.t50-billing-page .legacy-main select.t50-payment-select {
  color: var(--legacy-ink) !important;
  background-color: white !important;
}
html:lang(fr) .theme-v2-legacy .legacy-main .t50-payment-label {
  color: var(--polish-muted);
  letter-spacing: .015em;
}

/* Retain examples, demo links and media while removing the old raster headings. */
html:lang(fr) .theme-v2-legacy .legacy-main img[src$="/portfolio.png" i],
html:lang(fr) .theme-v2-legacy .legacy-main:has(.theme50-hero) img[src$="/emailingav.png" i],
html:lang(fr) .theme-v2-legacy .legacy-main:has(.theme50-hero) img[src$="/sms.png" i] {
  display: none;
}
html:lang(fr) .theme-v2-legacy .legacy-main :is(.t50-payment-grid, .t50-portfolio-grid, .t50-portfolio-videos) {
  min-inline-size: 0;
}
html:lang(fr) .theme-v2-legacy .legacy-main .t50-portfolio-grid > :is(a, article, figure) {
  border-color: var(--polish-line);
  background: var(--legacy-card);
}
html:lang(fr) .theme-v2-legacy .legacy-main .t50-reference-table td .roundedImage {
  max-inline-size: 100%;
  border-radius: 8px;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

html:lang(fr) .theme-v2-legacy .legacy-main .v2-recharge-fields {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: center;
  margin: 0;
  color: var(--polish-ink);
  font: 1rem/1.5 var(--legacy-font);
  text-align: start;
}
html:lang(fr) .theme-v2-legacy .legacy-main .v2-recharge-fields > .t50-recharge-intro {
  grid-area: 1 / 1 / 2 / -1;
  margin: 0 0 .45rem;
  color: var(--polish-muted);
}
html:lang(fr) .theme-v2-legacy .legacy-main .v2-recharge-fields > .v2-recharge-label {
  grid-area: 2 / 1;
  margin: 0 .25rem 0 0;
  color: var(--legacy-ink);
  font-size: .95rem;
  font-weight: 750;
}
html:lang(fr) .theme-v2-legacy .legacy-main .v2-recharge-fields > .t50-recharge-prefix {
  grid-area: 2 / 2;
  margin: 0 -.65rem 0 0;
  min-block-size: 50px;
  display: flex;
  align-items: center;
  padding-inline: .7rem;
  border: 1px solid var(--polish-line);
  border-inline-end: 0;
  border-radius: 10px 0 0 10px;
  background: var(--polish-tint);
  color: var(--polish-muted);
  font: 650 .8rem/1 var(--legacy-font);
  white-space: nowrap;
}
html:lang(fr) .theme-v2-legacy .legacy-main .v2-recharge-fields > .t50-recharge-domain-field {
  grid-area: 2 / 3;
  min-height: 50px !important;
  border-color: var(--polish-line) !important;
  border-radius: 0 10px 10px 0;
  color: var(--legacy-ink) !important;
  font: 600 1rem/1.45 var(--legacy-font) !important;
}
html:lang(fr) .theme-v2-legacy .legacy-main .v2-recharge-fields > .v2-recharge-submit {
  grid-area: 2 / 4;
  inline-size: 9.75rem !important;
  min-block-size: 50px;
  margin: 0 !important;
  border-radius: 10px;
}
html:lang(fr) .theme-v2-legacy .legacy-main .v2-recharge-fields > .v2-recharge-submit.theme50-form-action-empty {
  /* Keep the centered label legible regardless of the button's width. */
  background-size: 300px auto !important;
}
html:lang(fr) .theme-v2-legacy .legacy-main .v2-recharge-fields > .t50-recharge-hint {
  grid-area: 3 / 2 / 4 / -1;
  color: var(--polish-muted);
  font-size: .82rem;
}

@media (max-width: 920px) {
  html:lang(fr) .theme-v2-legacy .legacy-main .v2-recharge-fields {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  html:lang(fr) .theme-v2-legacy .legacy-main .v2-recharge-fields > .v2-recharge-label { grid-area: 2 / 1 / 3 / -1; }
  html:lang(fr) .theme-v2-legacy .legacy-main .v2-recharge-fields > .t50-recharge-prefix { grid-area: 3 / 1; }
  html:lang(fr) .theme-v2-legacy .legacy-main .v2-recharge-fields > .t50-recharge-domain-field { grid-area: 3 / 2; }
  html:lang(fr) .theme-v2-legacy .legacy-main .v2-recharge-fields > .v2-recharge-submit { grid-area: 3 / 3; }
  html:lang(fr) .theme-v2-legacy .legacy-main .v2-recharge-fields > .t50-recharge-hint { grid-area: 4 / 1 / 5 / -1; }
}
@media (max-width: 560px) {
  html:lang(fr) .theme-v2-legacy .legacy-main .v2-recharge-fields { grid-template-columns: auto minmax(0, 1fr); }
  html:lang(fr) .theme-v2-legacy .legacy-main .v2-recharge-fields > .v2-recharge-submit {
    grid-area: 5 / 1 / 6 / -1;
    inline-size: 100% !important;
  }
}

/* The two newly internal French resources use the same light reading surface. */
html:lang(fr) .theme-v2-legacy .legacy-main .polish-content-card {
  width: var(--legacy-frame);
  margin-inline: auto;
  padding: clamp(20px, 4vw, 52px);
  color: var(--legacy-ink);
  background: var(--legacy-paper);
  border: 1px solid var(--legacy-border);
  border-radius: var(--radius);
}
.polish-content-card h1 { font-size: clamp(1.85rem, 5vw, 3.4rem); line-height: 1.07; letter-spacing: -.045em; margin-block: 0 .7em; }
.polish-content-card h2 { font-size: clamp(1.22rem, 3vw, 1.8rem); line-height: 1.2; margin-block: 1.3em .5em; }
.polish-content-card :is(p, ul, ol) { max-inline-size: 76ch; }
.polish-content-card a { color: var(--legacy-link); text-underline-offset: .16em; }
.polish-content-card code { overflow-wrap: anywhere; }

/* Keep page titles on the dark banner and remove obsolete billing ornaments. */
html:lang(fr) .theme-v2-legacy .legacy-main .legacy-page-heading > h1.t50-billing-title {
  color: var(--text);
  font: 850 clamp(2rem, 4.8vw, 4.15rem)/1.05 var(--legacy-font);
  letter-spacing: -.05em;
}
html:lang(fr) .theme-v2-legacy .legacy-main .v2-recharge-fields > .t50-content-icon { display: none; }
html:lang(fr) .theme-v2-legacy .legacy-main .v2-recharge-fields > .t50-recharge-prefix { font-size: .83rem; }
html:lang(fr) .theme-v2-legacy .legacy-main:has(.t50-payment-grid) #part1emailing > :is(br, p):not(:has(a, input, select, textarea, button)) { display: none; }
html:lang(fr) .theme-v2-legacy .legacy-main:has(.t50-payment-grid) .t50-payment-grid { margin-block-start: 0; }
