/* FitnessLab 3 EN (USA) Google Pay Moderation snapshot styles.
 * Visual contracts: Scripts/{height,weight_1,weight_2,profile}_en_usa.html.
 * This file is intentionally scoped to FitnessLab step IDs and visualSource values.
 */

/* Trophy / insight badges: fill more of the circle than the engine default 30/56. */
figure.bf-icon-badge {
  width: 72px;
  height: 72px;
  margin: 0 0 16px;
}
figure.bf-icon-badge img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

main[data-step="age"] .bf-options[data-variant="age"] .bf-option-body {
  background: var(--bf-accent);
  color: #fff;
}

main[data-step="age"] .bf-options[data-variant="age"] .bf-option-label {
  color: #fff;
}

main[data-step="age"] .bf-options[data-variant="age"] .bf-option-card.is-selected {
  box-shadow: 0 0 0 3px var(--bf-accent);
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget) {
  all: initial;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  font-family: "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget) * {
  box-sizing: border-box;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)
  :is(.height-widget-wrapper, .weight-widget-wrapper, .target-weight-widget-wrapper) {
  padding: 20px;
  background: transparent;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget) .unit-toggle {
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
  height: 40px;
  margin: 0 auto 25px;
  padding: 4px;
  border: 1px solid #d1d1d6;
  border-radius: 12px;
  background: #d1d1d6;
  touch-action: manipulation;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget) .unit-toggle::before {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)
  .unit-toggle[data-active-unit="imperial"]::before {
  transform: translateX(-100%);
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget) .unit-option {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  width: auto;
  height: 32px;
  padding: 0 24px;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: #666 !important;
  box-shadow: none !important;
  font: 400 16px/1 "PT Sans", sans-serif;
  letter-spacing: 0;
  cursor: pointer;
  touch-action: manipulation;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)
  .unit-toggle[data-active-unit="metric"] .unit-option[data-unit="metric"],
:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)
  .unit-toggle[data-active-unit="imperial"] .unit-option[data-unit="imperial"] {
  color: #333 !important;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget) .input-container {
  position: relative;
  display: none !important;
  min-height: 0;
  margin-bottom: 8px;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)
  .unit-toggle[data-active-unit="metric"] ~ .input-container[data-unit="metric"],
:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)
  .unit-toggle[data-active-unit="imperial"] ~ .input-container[data-unit="imperial"] {
  display: block !important;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget) .input-wrapper,
.fitness-height-widget .imperial-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fitness-height-widget .imperial-inputs {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Override engine underline measure chrome with donor boxed inputs. */
:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)
  :is(.cm-input, .kg-input, .lbs-input, .imperial-input, .bf-measure-input) {
  flex: 1;
  min-width: 0;
  width: 0;
  height: 60px;
  min-height: 60px;
  padding: 0 20px !important;
  border: 1px solid #d1d1d6 !important;
  border-radius: 12px !important;
  outline: none;
  background: #f9f9fb !important;
  color: #333 !important;
  font: 700 28px/1 "PT Sans", sans-serif;
  font-size: 28px !important;
  line-height: 1 !important;
  text-align: center;
  user-select: text;
  transition: all .2s ease;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)
  :is(.cm-input, .kg-input, .lbs-input, .imperial-input)::placeholder {
  color: #d0d0d0;
  font-weight: 700;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)
  :is(.cm-input, .kg-input, .lbs-input, .imperial-input, .bf-measure-input):focus {
  border-color: #5581fd !important;
  background: #f4f7ff !important;
  color: #333 !important;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)[data-measure-state="error"]
  :is(.cm-input, .kg-input, .lbs-input, .imperial-input, .bf-measure-input) {
  border-color: #e54e51 !important;
  background: #fef7f7 !important;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)[data-measure-state]:not([data-measure-state="wait"], [data-measure-state="error"])
  :is(.cm-input, .kg-input, .lbs-input, .imperial-input, .bf-measure-input) {
  border-color: #00b67a !important;
  background: #f4fff8 !important;
  color: #333 !important;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)
  :is(.unit-label, .imperial-unit) {
  min-width: 40px;
  color: #333;
  font: 700 28px/1 "PT Sans", sans-serif;
}

.fitness-height-widget .imperial-unit {
  min-width: 50px;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget) .error-message {
  min-height: 18px;
  margin-top: 8px;
  color: #333;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)[data-measure-state="error"]
  .error-message {
  color: #e54e51;
}

.fitness-height-widget .bf-hint-card {
  display: none !important;
}

:is(.fitness-weight-widget, .fitness-target-weight-widget) .bf-hint-card {
  display: none;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 15px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}

:is(.fitness-weight-widget, .fitness-target-weight-widget) .bf-hint-card:not([data-hint-state="wait"], [data-hint-state="error"]) {
  display: flex;
}

:is(.fitness-weight-widget, .fitness-target-weight-widget) .bf-hint-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

:is(.fitness-weight-widget, .fitness-target-weight-widget) .bf-hint-body {
  flex: 1;
}

:is(.fitness-weight-widget, .fitness-target-weight-widget) .bf-hint-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

:is(.fitness-weight-widget, .fitness-target-weight-widget) .bf-hint-text {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

.fitness-weight-widget .bf-hint-card[data-hint-state="normal"] {
  border: 1px solid #c8e6c9;
  background: #e8f5e8;
}

.fitness-weight-widget .bf-hint-card[data-hint-state="normal"] .bf-hint-dot {
  background: #4caf50 !important;
}

.fitness-weight-widget .bf-hint-card[data-hint-state="normal"] .bf-hint-title {
  color: #2e7d32;
}

.fitness-weight-widget .bf-hint-card[data-hint-state="underweight"],
.fitness-weight-widget .bf-hint-card[data-hint-state="obese"] {
  border: 1px solid #ffcdd2;
  background: #ffebee;
}

.fitness-weight-widget .bf-hint-card:is([data-hint-state="underweight"], [data-hint-state="obese"]) .bf-hint-dot {
  background: #f44336 !important;
}

.fitness-weight-widget .bf-hint-card:is([data-hint-state="underweight"], [data-hint-state="obese"]) .bf-hint-title {
  color: #c62828;
}

.fitness-weight-widget .bf-hint-card[data-hint-state="overweight"] {
  border: 1px solid #ffcc02;
  background: #fff3e0;
}

.fitness-weight-widget .bf-hint-card[data-hint-state="overweight"] .bf-hint-dot {
  background: #ff9800 !important;
}

.fitness-weight-widget .bf-hint-card[data-hint-state="overweight"] .bf-hint-title {
  color: #f57c00;
}

.fitness-target-weight-widget .bf-hint-card {
  border: 1px solid #e0e0e0;
  background: #f5f5f5;
}

.fitness-target-weight-widget .bf-hint-dot {
  background: #666 !important;
}

.fitness-bmi-profile {
  all: initial;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 30px 20px;
  background: transparent;
  font-family: "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.fitness-bmi-profile * {
  box-sizing: border-box;
}

.fitness-bmi-profile .profile-title {
  margin: 0 0 40px;
  color: #333;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  animation: fitness-profile-title .8s cubic-bezier(.25, .46, .45, .94) both;
}

.fitness-bmi-profile .bmi-scale-container {
  margin-bottom: 0;
  animation: fitness-profile-scale 1.2s cubic-bezier(.25, .46, .45, .94) .2s both;
}

.fitness-bmi-profile .scale-values {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: #8e8e93;
  font-size: 13px;
  font-weight: 500;
}

.fitness-bmi-profile .scale-lines {
  position: relative;
  height: 10px;
}

.fitness-bmi-profile .scale-line {
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 5px;
  background: #ccc;
}

.fitness-bmi-profile .scale-line.major {
  height: 10px;
  background: #999;
}

.fitness-bmi-profile .bmi-scale {
  position: relative;
  display: block;
  height: 8px;
  padding: 0;
  overflow: visible;
  border-radius: 4px;
  background: linear-gradient(90deg, #96d9ff 0%, #b7f5a8 31.77%, #f9eb7c 66.15%, #fc806e 100%);
  box-shadow: 0 2px 20px rgb(0 0 0 / 8%);
  transform-origin: left;
  animation: fitness-profile-track 1s cubic-bezier(.25, .46, .45, .94) .2s both;
}

.fitness-bmi-profile .bmi-pointer {
  position: absolute;
  top: -8px;
  bottom: auto;
  z-index: 10;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 25px rgb(0 0 0 / 15%), 0 4px 10px rgb(0 0 0 / 10%), 0 0 0 1px rgb(0 0 0 / 5%);
  transform: translateX(-12px);
  animation: fitness-profile-pointer 3s ease-in-out infinite;
}

.fitness-bmi-profile .bmi-value-badge {
  position: absolute;
  top: -50px;
  left: 50%;
  z-index: 20;
  width: max-content;
  padding: 8px 16px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #2c2c2c;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .3px;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgb(0 0 0 / 15%);
}

.fitness-bmi-profile .bmi-value-badge::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #2c2c2c;
}

.fitness-bmi-profile .scale-categories {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #a0a0a0;
  font-size: 12px;
}

.fitness-bmi-profile .scale-category {
  flex: 1;
  padding: 0;
  background: transparent !important;
  color: #333 !important;
  font-weight: 400;
  text-align: center;
}

.fitness-bmi-profile .scale-category:first-child {
  text-align: left;
}

.fitness-bmi-profile .scale-category:last-child {
  text-align: right;
}

.fitness-bmi-profile .bmi-comment {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 25px;
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  animation: fitness-profile-comment 1s cubic-bezier(.25, .46, .45, .94) .2s both;
}

.fitness-bmi-profile .bmi-comment[data-hint-state="normal"] {
  border: 1px solid rgb(200 230 201 / 50%);
  background: linear-gradient(135deg, rgb(232 245 232 / 95%), rgb(200 230 201 / 90%));
  box-shadow: 0 8px 32px rgb(76 175 80 / 15%), 0 2px 8px rgb(0 0 0 / 5%);
}

.fitness-bmi-profile .bmi-comment:not([data-hint-state="normal"]) {
  border: 1px solid rgb(255 205 210 / 50%);
  background: linear-gradient(135deg, rgb(255 235 238 / 95%), rgb(255 205 210 / 90%));
  box-shadow: 0 8px 32px rgb(244 67 54 / 15%), 0 2px 8px rgb(0 0 0 / 5%);
}

.fitness-bmi-profile .comment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0;
  border-radius: 50%;
  background: #f44336 !important;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.fitness-bmi-profile .bmi-comment[data-hint-state="normal"] .comment-icon {
  background: #4caf50 !important;
}

.fitness-bmi-profile .comment-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #c62828;
  font-size: 18px;
  font-weight: 600;
}

.fitness-bmi-profile .comment-title .bf-hint-title {
  margin: 0;
  font: inherit;
}

.fitness-bmi-profile .bmi-comment[data-hint-state="normal"] .comment-title {
  color: #2e7d32;
}

.fitness-bmi-profile .comment-text {
  margin: 0;
  color: #666;
  font-size: 15px;
  line-height: 1.6;
}

.fitness-bmi-profile .bf-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: end;
  gap: 12px;
  margin-top: 26px;
}

.fitness-bmi-profile .bf-profile-facts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 0;
}

.fitness-bmi-profile .bf-profile-fact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.fitness-bmi-profile .bf-profile-fact > img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.fitness-bmi-profile .bf-fact-caption {
  display: block;
  margin-bottom: 2px;
  color: #8e8e93;
  font-size: 12px;
  font-weight: 600;
}

.fitness-bmi-profile .bf-fact-value {
  display: block;
  color: #333;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.fitness-bmi-profile .bf-profile-motion {
  display: none;
}

.fitness-bmi-profile .bf-profile-visual {
  align-self: end;
  min-width: 0;
}

.fitness-bmi-profile .bf-profile-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  object-position: center bottom;
}

@media (max-width: 374px) {
  .fitness-bmi-profile .bf-profile-grid {
    grid-template-columns: minmax(0, 1fr) 108px;
  }
}

@media (max-width: 480px) {
  .fitness-bmi-profile {
    padding: 20px 15px;
  }

  .fitness-bmi-profile .profile-title {
    margin-bottom: 30px;
    font-size: 24px;
  }

  .fitness-bmi-profile .comment-title {
    font-size: 16px;
  }

  .fitness-bmi-profile .comment-text {
    font-size: 14px;
  }
}

@keyframes fitness-profile-title {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: none; }
}

@keyframes fitness-profile-scale {
  from { opacity: 0; transform: translateY(30px) scale(.9); }
  to { opacity: 1; transform: none; }
}

@keyframes fitness-profile-track {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes fitness-profile-pointer {
  0%, 100% { transform: translateX(-12px) scale(1); }
  50% { transform: translateX(-12px) scale(1.05); }
}

@keyframes fitness-profile-comment {
  from { opacity: 0; transform: translateY(30px) scale(.95); }
  to { opacity: 1; transform: none; }
}

.bf-trajectory {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.bf-trajectory-card {
  padding: 18px 14px 14px;
  overflow: hidden;
  border-radius: 22px;
  background: color-mix(in srgb, var(--bf-accent) 6%, var(--bf-surface));
}

.bf-trajectory-view[data-trajectory-direction="up"] {
  display: none;
}

.bf-trajectory:has([title="up"]) .bf-trajectory-view[data-trajectory-direction="down"] {
  display: none;
}

.bf-trajectory:has([title="up"]) .bf-trajectory-view[data-trajectory-direction="up"] {
  display: block;
}

.bf-trajectory svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.bf-trajectory-grid line {
  stroke: color-mix(in srgb, var(--bf-muted) 15%, transparent);
  stroke-width: 1;
}

.bf-trajectory-guide {
  stroke: color-mix(in srgb, var(--bf-accent) 38%, transparent);
  stroke-width: 2;
  stroke-dasharray: 5 7;
}

.bf-trajectory-line {
  fill: none;
  stroke: var(--bf-accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  path-length: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 5px 8px color-mix(in srgb, var(--bf-accent) 25%, transparent));
  animation: fitness-trajectory-draw 1.45s cubic-bezier(.22, .75, .2, 1) .2s forwards;
}

.bf-trajectory-dot {
  fill: var(--bf-accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: fitness-trajectory-dot .38s cubic-bezier(.2, .8, .2, 1) both;
}

.bf-trajectory-dot[data-end] {
  animation-delay: 1.45s;
}

.bf-trajectory-plot {
  position: relative;
}

.bf-trajectory-badge {
  position: absolute;
  min-width: 108px;
  padding: 9px 12px;
  border-radius: 14px;
  background: var(--bf-surface);
  color: var(--bf-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--bf-text) 12%, transparent);
  opacity: 0;
  transform: translateY(8px);
  animation: fitness-trajectory-badge .4s ease forwards;
}

.bf-trajectory-badge strong {
  display: block;
  margin-top: 3px;
  color: var(--bf-accent);
  font-size: 18px;
}

.bf-trajectory-view[data-trajectory-direction="down"] .bf-trajectory-start,
.bf-trajectory-view[data-trajectory-direction="up"] .bf-trajectory-goal {
  top: 2%;
}

.bf-trajectory-view[data-trajectory-direction="down"] .bf-trajectory-start,
.bf-trajectory-view[data-trajectory-direction="up"] .bf-trajectory-start {
  left: 2%;
}

.bf-trajectory-view[data-trajectory-direction="down"] .bf-trajectory-goal,
.bf-trajectory-view[data-trajectory-direction="up"] .bf-trajectory-goal {
  right: 1%;
}

.bf-trajectory-view[data-trajectory-direction="down"] .bf-trajectory-goal,
.bf-trajectory-view[data-trajectory-direction="up"] .bf-trajectory-start {
  bottom: 15%;
}

.bf-trajectory-goal {
  background: var(--bf-accent);
  color: #fff;
  animation-delay: 1.5s;
}

.bf-trajectory-goal strong {
  color: #fff;
}

.bf-trajectory-dates {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: var(--bf-muted);
  font-size: 13px;
  font-weight: 700;
}

.bf-trajectory-caption {
  margin: 14px 6px 0;
  color: var(--bf-muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

@keyframes fitness-trajectory-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes fitness-trajectory-dot {
  from { opacity: 0; transform: scale(.2); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fitness-trajectory-badge {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .bf-trajectory-line,
  .bf-trajectory-dot,
  .bf-trajectory-badge {
    animation: none;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }
}

main[data-layout-preset="standard-v1"] > [data-type="paywall_header"]:has(~ .bf-ba-fitness) {
  margin: -12px calc(0px - var(--bf-layout-page-padding)) 0;
}

main[data-layout-preset="standard-v1"] > .bf-ba-fitness {
  width: calc(100% + var(--bf-layout-page-padding) + var(--bf-layout-page-padding));
  margin-right: calc(0px - var(--bf-layout-page-padding));
  margin-left: calc(0px - var(--bf-layout-page-padding));
}

.bf-ba-fitness {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 100%;
  aspect-ratio: auto;
  padding: 64px 10px 0;
  overflow: hidden;
  background: #f2f2f2;
}

.bf-ba-fitness > .bf-ba-bg {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bf-ba-fitness > .bf-ba-col {
  z-index: 1;
  min-width: 0;
  height: auto;
  gap: 0;
  justify-content: flex-start;
}

.bf-ba-fitness > .bf-ba-before {
  padding-right: 0;
}

.bf-ba-fitness > .bf-ba-after {
  padding-left: 0;
}

.bf-ba-fitness .bf-ba-photo {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 2.05;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.bf-ba-fitness .bf-ba-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.bf-ba-fitness .bf-ba-badge {
  top: -52px;
  bottom: auto;
  left: 50%;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding: 11px 8px;
  transform: translateX(-50%);
  border-radius: 11px;
  background: rgb(255 255 255 / 94%);
  font-size: 16px;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  box-shadow: none;
}

.bf-ba-fitness .bf-ba-after .bf-ba-badge {
  color: var(--bf-accent);
}

.bf-ba-fitness > .bf-ba-before::after {
  display: none;
}

.bf-ba-fitness .bf-ba-metrics {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 132px;
  padding: 14px 6px 10px;
  background: var(--bf-bg);
}

.bf-ba-fitness .bf-ba-before .bf-ba-metrics {
  margin-left: -10px;
  margin-right: -2px;
  padding-left: 16px;
  padding-right: 8px;
}

.bf-ba-fitness .bf-ba-after .bf-ba-metrics {
  margin-left: -2px;
  margin-right: -10px;
  padding-left: 8px;
  padding-right: 16px;
}

/* Special offer: spacing, lead typography, media tint and timer heading come from the
   shared engine block (renderer_paywall.go). Quiz-specific: neutral grey plate under the
   last "Healthy Habits" icon, same 76px size as the rest. */
main[data-step="special-offer"] [data-type="benefits"] .bf-benefit:last-child .bf-benefit-media {
  background: color-mix(in srgb, var(--bf-text) 7%, transparent) !important;
}

/* Google Pay Moderation: trial note under price; transparent badges; outlined G Pay */

/* Trial line sits directly under discount_timer price card */
[data-el="el-offer-paragraph"],
[data-el="el-offer-paragraph-3"],
[data-el="el-special-offer-paragraph"] {
  box-sizing: border-box;
  margin: 6px auto 20px !important;
  max-width: 360px;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bf-accent) 7%, transparent);
  text-align: center !important;
  font: 700 14px/1.35 var(--bf-font-family);
  color: var(--bf-text);
}

/* Exact accepted-payment image, placed close to the FF Billing security note. */
main[data-step="offer"] #bfco-el-offer-checkout + .bf-checkout-native-note,
main[data-step="special-offer"] #bfco-el-special-offer-checkout + .bf-checkout-native-note {
  margin-bottom: 0 !important;
}
figure[data-type="image"]:has(img[src*="accepted-payment-methods"]) {
  margin: -8px auto 32px !important;
  max-width: 420px;
  background: transparent !important;
}
figure[data-type="image"]:has(img[src*="accepted-payment-methods"]) img {
  width: 100%;
  max-width: 420px;
  height: auto;
  background: transparent !important;
  border-radius: 0;
}

/* Restore FF Billing outlined Google Pay mark (pill border) on this quiz only.
   Engine native skin flattens .ff-google-pay-logo; moderation needs the SDK img. */
.bf-checkout[data-checkout-ui="native"] .ff-google-pay-logo {
  width: auto !important;
  height: auto !important;
  background: none !important;
}
.bf-checkout[data-checkout-ui="native"] .ff-google-pay-logo img {
  display: block !important;
  width: auto !important;
  height: 30px !important;
  max-height: 30px;
}

/* Production currently renders timer chrome in Russian.
   Keep the correction isolated to this quiz until the locale-aware engine ships. */
.bf-dt-label {
  opacity: 0;
}
.bf-dt-chain {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 156 52'%3E%3Cg fill='%236b6868' font-family='Arial,sans-serif' font-size='11.5' font-weight='700' text-anchor='middle'%3E%3Ctext x='17.37' y='47'%3EDays%3C/text%3E%3Ctext x='56.87' y='47'%3EHours%3C/text%3E%3Ctext x='96.37' y='47'%3EMin%3C/text%3E%3Ctext x='135.87' y='47'%3ESec%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* Sticky paywall header: replace "минуты"/"секунды" with English labels. */
.bf-pwh-labels span {
  position: relative;
  color: transparent !important;
}
.bf-pwh-labels span::after {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: #666666 !important;
  font-family: var(--bf-font-family, "PT Sans", system-ui, sans-serif);
  white-space: nowrap;
}
.bf-pwh-labels span:first-child::after {
  content: "minutes";
}
.bf-pwh-labels span:last-child::after {
  content: "seconds";
}

/* Boot splash: English preparing copy while production seed still emits RU chrome. */
.bf-launch > span {
  font-size: 0 !important;
  color: transparent !important;
  line-height: 0 !important;
}
.bf-launch > span::after {
  content: "Preparing your plan";
  display: inline-block;
  margin-top: 7px;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.2 !important;
  color: #666666 !important;
  font-family: var(--bf-font-family, "PT Sans", system-ui, sans-serif);
}
