/**
 * Exchange-page adaptations for the shared homepage services and reviews sections.
 */

.fm-exchange-page__services {
  padding: 56px 0 72px;
  background: var(--fm-neutral-0);
  color: var(--fm-neutral-900);
}

.fm-exchange-page__services > .fm-container,
.fm-exchange-page__reviews > .fm-container {
  width: calc(100% - clamp(48px, 11.16vw, 128px));
  max-width: var(--fm-container);
  margin-inline: auto;
}

.fm-exchange-page__services .fm-services-section__title {
  margin-bottom: 32px;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.1;
}

.fm-exchange-page__services .fm-services-grid {
  gap: 20px;
}

.fm-exchange-page__services .fm-service-card {
  min-height: 0;
  height: 246px;
  max-height: 246px;
  padding: 20px;
  border-radius: var(--fm-radius-xl);
}

.fm-exchange-page__services .fm-service-card__title {
  font-size: 18px;
  line-height: 1.2;
}

.fm-exchange-page__services .fm-service-card__description {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.3;
}

.fm-exchange-page__services .fm-service-card__image {
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.fm-exchange-page__services .fm-service-card__actions {
  right: auto;
  bottom: 30px;
  left: 32px;
  display: flex;
  width: min(256px, calc(100% - 64px));
}

.fm-exchange-page__services .fm-service-card__button {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--fm-neutral-900);
  color: var(--fm-neutral-0);
  font-size: 14px;
  line-height: 1.2;
}

.fm-exchange-page__services .fm-service-card__button:hover,
.fm-exchange-page__services .fm-service-card__button:focus-visible,
.fm-exchange-page__services .fm-service-card--property .fm-service-card__button:hover,
.fm-exchange-page__services .fm-service-card--property .fm-service-card__button:focus-visible {
  background: var(--fm-neutral-800);
  color: var(--fm-neutral-0);
}

.fm-exchange-page__reviews {
  padding: 72px 0 72px;
  background: var(--fm-neutral-50);
  color: var(--fm-neutral-900);
}

@media (max-width: 767px) {
  .fm-exchange-page__services {
    padding: 40px 0 56px;
  }

  .fm-exchange-page__services > .fm-container,
  .fm-exchange-page__reviews > .fm-container {
    width: 100%;
    padding-inline: 20px;
  }

  .fm-exchange-page__services .fm-services-section__title {
    margin-bottom: 28px;
    font-size: 28px;
  }

  .fm-exchange-page__services .fm-service-card {
    height: 216px;
    max-height: 216px;
    padding: 16px;
  }

  .fm-exchange-page__services .fm-service-card__actions {
    right: auto;
    bottom: 24px;
    left: 24px;
    width: min(256px, calc(100% - 48px));
  }

  .fm-exchange-page__services .fm-service-card__button {
    min-height: 52px;
    font-size: 14px;
  }

  .fm-exchange-page__reviews {
    padding: 44px 0;
  }
}

/* Exchange warning card: reveal the PremiumBox-generated warning and match the Figma card. */
.fm-exchange-page .xchange_div > .warning_message,
.fm-exchange-page .warning_message {
  display: block !important;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 70px 0 !important;
  padding: 30px 36px !important;
  border: 0 !important;
  border-radius: 24px;
  background-color: #070a0f !important;
  background-image: url('../images/backgrounds/exfmpro-background-dark-waves.svg') !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: var(--fm-neutral-0);
}

.fm-exchange-page .warning_message_ins {
  box-sizing: border-box;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.fm-exchange-page .warning_message_title {
  margin: 0 0 20px !important;
  padding: 0 !important;
}

.fm-exchange-page .warning_message_title_ins {
  display: block;
  margin: 0;
  padding: 0;
}

.fm-exchange-page .warning_message_title_ins > span {
  display: inline;
  color: var(--fm-neutral-0) !important;
  font: var(--fm-type-heading-h1) !important;
  letter-spacing: var(--fm-type-heading-h1-letter-spacing);
}

.fm-exchange-page .warning_message_title_ins > span::after {
  display: inline-block;
  width: 38px;
  height: 38px;
  margin-left: 12px;
  vertical-align: middle;
  background: url('../images/icons/exfmpro-icon-span-insert-3.svg') center /
    contain no-repeat;
  content: '';
}

.fm-exchange-page .warning_message_text,
.fm-exchange-page .warning_message_text_ins,
.fm-exchange-page .warning_message_text_ins .text,
.fm-exchange-page .warning_message_text_ins p,
.fm-exchange-page .warning_message_text_ins li {
  color: var(--fm-neutral-0) !important;
  font: var(--fm-type-body-l-medium) !important;
  letter-spacing: var(--fm-type-body-l-medium-letter-spacing);
}

.fm-exchange-page .warning_message_text {
  margin: 0 !important;
  padding: 0 !important;
}

.fm-exchange-page .warning_message_text_ins,
.fm-exchange-page .warning_message_text_ins .text {
  margin: 0;
  padding: 0;
}

@media (max-width: 760px) {
  .fm-exchange-page .xchange_div > .warning_message,
  .fm-exchange-page .warning_message {
    margin-top: 50px !important;
    margin-bottom: 50px !important;
  }
}

/* Exchange-page corrections: keep generated warning content at the page bottom. */
body.fm-exchange-page-template .fm-exchange-page__warning-slot {
  width: min(calc(100% - clamp(48px, 11.16vw, 128px)), var(--fm-container));
  margin-inline: auto;
}

body.fm-exchange-page-template .fm-exchange-page__warning-slot .warning_message,
body.fm-exchange-page-template
  .fm-exchange-page__warning-slot
  .fm-exchange-warning-card {
  display: block !important;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 70px 0 !important;
  padding: 30px 36px !important;
  border: 0 !important;
  border-radius: 24px;
  background-color: #070a0f !important;
  background-image: url('../images/backgrounds/exfmpro-background-dark-waves.svg') !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: var(--fm-neutral-0);
}

body.fm-exchange-page-template
  .fm-exchange-page__warning-slot
  .warning_message_ins {
  box-sizing: border-box;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.fm-exchange-page-template
  .fm-exchange-page__warning-slot
  .warning_message_title {
  margin: 0 0 20px !important;
  padding: 0 !important;
}

body.fm-exchange-page-template
  .fm-exchange-page__warning-slot
  .warning_message_title_ins
  > span {
  display: inline;
  color: var(--fm-neutral-0) !important;
  font: var(--fm-type-heading-h1) !important;
  letter-spacing: var(--fm-type-heading-h1-letter-spacing);
}

body.fm-exchange-page-template
  .fm-exchange-page__warning-slot
  .warning_message_title_ins
  > span::after {
  display: none !important;
}

body.fm-exchange-page-template
  .fm-exchange-page__warning-slot
  .fm-exchange-warning-icon {
  display: inline-block;
  width: 36px;
  height: 36px;
  margin-inline: 2px;
  vertical-align: middle;
  background: url('../images/icons/exfmpro-icon-span-insert-3.svg') center /
    contain no-repeat;
}

body.fm-exchange-page-template
  .fm-exchange-page__warning-slot
  .warning_message_text,
body.fm-exchange-page-template
  .fm-exchange-page__warning-slot
  .warning_message_text_ins,
body.fm-exchange-page-template
  .fm-exchange-page__warning-slot
  .warning_message_text_ins
  .text,
body.fm-exchange-page-template
  .fm-exchange-page__warning-slot
  .warning_message_text_ins
  p,
body.fm-exchange-page-template
  .fm-exchange-page__warning-slot
  .warning_message_text_ins
  li {
  color: var(--fm-neutral-0) !important;
  font: var(--fm-type-body-l-medium) !important;
  letter-spacing: var(--fm-type-body-l-medium-letter-spacing);
}

body.fm-exchange-page-template
  .fm-exchange-page__warning-slot
  .warning_message_text,
body.fm-exchange-page-template
  .fm-exchange-page__warning-slot
  .warning_message_text_ins,
body.fm-exchange-page-template
  .fm-exchange-page__warning-slot
  .warning_message_text_ins
  .text {
  margin: 0;
  padding: 0 !important;
}

@media (max-width: 760px) {
  body.fm-exchange-page-template .fm-exchange-page__warning-slot {
    width: 100%;
    padding-inline: 20px;
    box-sizing: border-box;
  }

  body.fm-exchange-page-template
    .fm-exchange-page__warning-slot
    .warning_message,
  body.fm-exchange-page-template
    .fm-exchange-page__warning-slot
    .fm-exchange-warning-card {
    margin-top: 50px !important;
    margin-bottom: 50px !important;
  }
}

/* Exchange-only services geometry and reviews CTA. */
body.fm-exchange-page-template .fm-exchange-page__services .fm-service-card {
  min-height: 246px !important;
  height: 246px !important;
  max-height: 246px !important;
}

body.fm-exchange-page-template
  .fm-exchange-page__reviews
  .fm-reviews-section__cta {
  background: var(--fm-primary-500) !important;
}

body.fm-exchange-page-template
  .fm-exchange-page__reviews
  .fm-reviews-section__cta:hover,
body.fm-exchange-page-template
  .fm-exchange-page__reviews
  .fm-reviews-section__cta:focus-visible {
  background: var(--fm-primary-400) !important;
}

@media (max-width: 767px) {
  body.fm-exchange-page-template .fm-exchange-page__services .fm-service-card {
    min-height: 216px !important;
    height: 216px !important;
    max-height: 216px !important;
  }
}

/* Prevent a transient duplicate while PremiumBox content is moved to the page-bottom slot. */
.fm-exchange-page .warning_message_title_ins > span::after {
  display: none !important;
}

.fm-exchange-page .fm-exchange-warning-icon {
  display: inline-block;
  width: 38px;
  height: 38px;
  margin-inline: 12px 0;
  vertical-align: middle;
  background: url('../images/icons/exfmpro-icon-span-insert-3.svg') center /
    contain no-repeat;
}

/* Keep the exchange warning card aligned to the calculator width. */
body.fm-exchange-page-template .fm-exchange-page__warning-slot,
body.fm-exchange-page-template .fm-exchange-page__warning-slot .warning_message,
body.fm-exchange-page-template
  .fm-exchange-page__warning-slot
  .fm-exchange-warning-card {
  width: 100%;
  max-width: 960px !important;
  margin-inline: auto;
}

/* Mobile exchange carousels. */
.fm-exchange-mobile-pagination {
  display: none;
}

@media (max-width: 767px) {
  .fm-exchange-page__trust {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 0;
    overflow-x: auto !important;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
  }

  .fm-exchange-page__trust::-webkit-scrollbar,
  .fm-exchange-page__services .fm-services-grid::-webkit-scrollbar {
    display: none;
  }

  .fm-exchange-page__trust-card {
    flex: 0 0 100%;
    min-width: 100%;
    box-sizing: border-box;
    border-right: 0 !important;
    border-bottom: 0 !important;
    scroll-snap-align: start;
    padding: 12px;
    height: 60px;
  }

  .fm-exchange-page__services .fm-services-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
  }

  .fm-exchange-page__services .fm-service-card {
    flex: 0 0 100%;
    min-width: 100%;
    box-sizing: border-box;
    scroll-snap-align: start;
  }

  .fm-exchange-mobile-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
  }

  .fm-exchange-mobile-pagination__dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--fm-neutral-500);
    opacity: 0.4;
    cursor: pointer;
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .fm-exchange-mobile-pagination__dot.is-active {
    opacity: 1;
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fm-exchange-page__trust,
  .fm-exchange-page__services .fm-services-grid {
    scroll-behavior: auto;
  }

  .fm-exchange-mobile-pagination__dot {
    transition: none;
  }
}

/* Mobile header clearance for the exchange trust carousel. */
@media (max-width: 767px) {
  body.fm-exchange-page-template .fm-exchange-page__inner {
    padding-top: clamp(80px, 33.333vw, 145px) !important;
  }
  .mobile-header {
    top: 60px;
  }
}
/* Exchange submit card: guest prompt, validation controls, submit action and captcha. */
.fm-exchange-page .fm-exchange-submit-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fm-exchange-page .fm-exchange-submit-card > .fm-exchange-account-prompt,
.fm-exchange-page .fm-exchange-personal-card > .fm-exchange-account-prompt {
  order: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  margin: 0 0 24px;
  padding: 16px;
  border-radius: 20px;
  background: var(--fm-neutral-0, #fff);
  box-sizing: border-box;
}

.fm-exchange-page .fm-exchange-account-prompt__icon {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 12px;
  background: var(--fm-neutral-50, #f3f7fa);
}

.fm-exchange-page .fm-exchange-account-prompt__icon-image {
  display: block;
  width: 24px;
  height: 24px;
}

.fm-exchange-page .fm-exchange-account-prompt__copy {
  margin: 0;
  color: var(--fm-neutral-900, #070a0f);
  font: var(--fm-type-body-s-regular, 400 14px/20px var(--fm-font, 'Golos Text', sans-serif));
  letter-spacing: var(--fm-type-body-s-regular-letter-spacing, normal);
}

.fm-exchange-page .fm-exchange-account-prompt__link {
  color: var(--fm-primary-500);
  text-decoration: none;
}

.fm-exchange-page .fm-exchange-submit-card > .exchange_checkpersdata,
.fm-exchange-page .fm-exchange-submit-card > .xchange_checkdata_div {
  order: 1;
  margin: 0 0 16px !important;
}

.fm-exchange-page .fm-exchange-submit-card > .xchange_submit_div {
  position: relative;
  order: 2;
  margin: 0 0 20px !important;
}

.fm-exchange-page .fm-exchange-submit-card > .captcha_div {
  order: 3;
  margin: 0 !important;
}

.fm-exchange-page .fm-exchange-submit-card > .ajax_post_bids_res {
  order: 4;
}

.fm-exchange-page .fm-exchange-submit-card .exchange_checkpersdata,
.fm-exchange-page .fm-exchange-submit-card .xchange_checkdata_div {
  color: var(--fm-neutral-900, #070a0f);
}

.fm-exchange-page .fm-exchange-submit-card .exchange_checkpersdata label,
.fm-exchange-page .fm-exchange-submit-card .xchange_checkdata_div label,
.fm-exchange-page .fm-exchange-submit-card .exchange_checkpersdata .checkbox label,
.fm-exchange-page .fm-exchange-submit-card .xchange_checkdata_div .checkbox label {
  position: relative;
  display: block;
  min-height: 26px;
  margin: 0 !important;
  padding: 1px 0 1px 36px !important;
  color: var(--fm-neutral-900, #070a0f);
  cursor: pointer;
  font: var(--fm-type-caption-regular);
  letter-spacing: var(--fm-type-caption-regular-letter-spacing);
  text-align: left;
  box-sizing: border-box;
}

.fm-exchange-page .fm-exchange-submit-card .exchange_checkpersdata label::before,
.fm-exchange-page .fm-exchange-submit-card .xchange_checkdata_div label::before,
.fm-exchange-page .fm-exchange-submit-card .exchange_checkpersdata .checkbox label::before,
.fm-exchange-page .fm-exchange-submit-card .xchange_checkdata_div .checkbox label::before {
  position: absolute;
  top: -2px;
  left: 0;
  display: block;
  width: 26px;
  height: 26px;
  border: 1px solid #cbd0de;
  border-radius: 5px;
  background: var(--fm-neutral-0, #fff);
  content: '';
  box-sizing: border-box;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.fm-exchange-page .fm-exchange-submit-card .exchange_checkpersdata .checkbox.checked label::before,
.fm-exchange-page .fm-exchange-submit-card .xchange_checkdata_div .checkbox.checked label::before,
.fm-exchange-page .fm-exchange-submit-card .exchange_checkpersdata label:has(input:checked)::before,
.fm-exchange-page .fm-exchange-submit-card .xchange_checkdata_div label:has(input:checked)::before {
  border-color: #cbd0de;
  background-color: #fff;
  background-image: url('../images/icons/exfmpro-input-checkbox.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px 8px;
}

.fm-exchange-page .fm-exchange-submit-card .exchange_checkpersdata label a,
.fm-exchange-page .fm-exchange-submit-card .xchange_checkdata_div label a {
  color: var(--fm-primary-500);
  text-decoration: none;
}

.fm-exchange-page .fm-exchange-submit-card .xchange_submit_div::after {
  position: absolute;
  top: 50%;
  right: 22px;
  width: 24px;
  height: 24px;
  background: url('../images/icons/exfmpro-arrow-right-white.svg') center / contain no-repeat;
  content: '';
  pointer-events: none;
  transform: translateY(-50%);
}

.fm-exchange-page .fm-exchange-submit-card input.xchange_submit.fm-feedback-page__button,
.fm-exchange-page .fm-exchange-submit-card input.xchange_submit.fm-feedback-page__button--wide {
  display: block;
  width: 100% !important;
  min-height: 60px;
  height: 60px;
  margin: 0 !important;
  padding: 7px 56px 7px 24px !important;
  border: 1px solid transparent;
  border-radius:  var(--fm-button-cta-icon-l-radius) !important;
  background: var(--fm-primary-500) !important;
  color: var(--fm-neutral-0) !important;
  font: var(--fm-type-body-s-regular) !important;
  font-weight: 500 !important;
  text-align: left;
  box-sizing: border-box;
}

.fm-exchange-page .fm-exchange-submit-card .captcha_div {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .fm-exchange-page .fm-exchange-submit-card > .fm-exchange-account-prompt {
    min-height: 84px;
    margin-bottom: 20px;
    border-radius: 18px;
  }

  .fm-exchange-page .fm-exchange-account-prompt__copy {
    font: var(--fm-type-caption-regular);
    letter-spacing: var(--fm-type-caption-regular-letter-spacing);
  }
}
/* Exchange services final cascade override: one manager action and centered full-card artwork. */
body.fm-exchange-page-template .fm-exchange-page__services .fm-service-card__image {
  right: 0 !important;
  bottom: -15px !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

body.fm-exchange-page-template .fm-exchange-page__services .fm-service-card__actions {
  top: auto !important;
  right: auto !important;
  bottom: 30px !important;
  left: 32px !important;
  display: flex !important;
  grid-template-columns: none !important;
  width: min(256px, calc(100% - 64px)) !important;
  gap: 0 !important;
}

body.fm-exchange-page-template .fm-exchange-page__services .fm-service-card__button {
  width: 100% !important;
  min-height: 48px !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  background: var(--fm-neutral-900) !important;
  color: var(--fm-neutral-0) !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
}

body.fm-exchange-page-template .fm-exchange-page__services .fm-service-card__button:hover,
body.fm-exchange-page-template .fm-exchange-page__services .fm-service-card__button:focus-visible {
  background: var(--fm-neutral-800) !important;
  color: var(--fm-neutral-0) !important;
}

@media (max-width: 767px) {
  body.fm-exchange-page-template .fm-exchange-page__services .fm-service-card__actions {
    right: auto !important;
    bottom: 24px !important;
    left: 24px !important;
    width: min(256px, calc(100% - 48px)) !important;
  }

  body.fm-exchange-page-template .fm-exchange-page__services .fm-service-card__button {
    min-height: 48px !important;
    font-size: 15px !important;
  }
}
/* Exchange services artwork bottom offsets. */
@media (min-width: 768px) {
  body.fm-exchange-page-template .fm-exchange-page__services .fm-service-card__image {
    bottom: -15px !important;
  }
}

@media (max-width: 767px) {
  body.fm-exchange-page-template .fm-exchange-page__services .fm-service-card:nth-child(1) .fm-service-card__image {
    bottom: 0 !important;
  }

  body.fm-exchange-page-template .fm-exchange-page__services .fm-service-card:nth-child(2) .fm-service-card__image,
  body.fm-exchange-page-template .fm-exchange-page__services .fm-service-card:nth-child(3) .fm-service-card__image {
    bottom: -15px !important;
  }
}
@media (min-width: 768px) {
  /* Desktop: only the middle card is shifted down. */
  body.fm-exchange-page-template .fm-exchange-page__services .fm-service-card:nth-child(1) .fm-service-card__image,
  body.fm-exchange-page-template .fm-exchange-page__services .fm-service-card:nth-child(3) .fm-service-card__image {
    bottom: 0 !important;
  }

  body.fm-exchange-page-template .fm-exchange-page__services .fm-service-card:nth-child(2) .fm-service-card__image {
    bottom: -15px !important;
  }
}
/* Exchange mobile section spacing overrides. */
@media (max-width: 767px) {
  body.fm-exchange-page-template .fm-services-section.fm-exchange-page__services {
    padding: 64px 0 0 !important;
  }

  body.fm-exchange-page-template .fm-services-section.fm-exchange-page__services .fm-services-section__title {
    margin-bottom: 24px !important;
  }

  body.fm-exchange-page-template .fm-reviews-section.fm-exchange-page__reviews {
    padding: 44px 0 44px 0 !important;
  }
}
@media (max-width: 767px) {
  /* Exchange mobile cards use a 22px internal inset. */
  body.fm-exchange-page-template .fm-services-section.fm-exchange-page__services .fm-service-card {
    padding: 22px !important;
  }
}

/* Exchange checkbox interaction states: keep parity with auth modals. */
.fm-exchange-page .fm-exchange-submit-card .exchange_checkpersdata label::before,
.fm-exchange-page .fm-exchange-submit-card .xchange_checkdata_div label::before,
.fm-exchange-page .fm-exchange-submit-card .exchange_checkpersdata .checkbox label::before,
.fm-exchange-page .fm-exchange-submit-card .xchange_checkdata_div .checkbox label::before {
  transition:
    border-color 160ms ease,
    border-radius 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.fm-exchange-page .fm-exchange-submit-card .exchange_checkpersdata label:hover::before,
.fm-exchange-page .fm-exchange-submit-card .xchange_checkdata_div label:hover::before,
.fm-exchange-page .fm-exchange-submit-card .exchange_checkpersdata .checkbox label:hover::before,
.fm-exchange-page .fm-exchange-submit-card .xchange_checkdata_div .checkbox label:hover::before,
.fm-exchange-page .fm-exchange-submit-card .exchange_checkpersdata label:active::before,
.fm-exchange-page .fm-exchange-submit-card .xchange_checkdata_div label:active::before,
.fm-exchange-page .fm-exchange-submit-card .exchange_checkpersdata .checkbox label:active::before,
.fm-exchange-page .fm-exchange-submit-card .xchange_checkdata_div .checkbox label:active::before,
.fm-exchange-page .fm-exchange-submit-card .exchange_checkpersdata label:focus-within::before,
.fm-exchange-page .fm-exchange-submit-card .xchange_checkdata_div label:focus-within::before,
.fm-exchange-page .fm-exchange-submit-card .exchange_checkpersdata .checkbox label:focus-within::before,
.fm-exchange-page .fm-exchange-submit-card .xchange_checkdata_div .checkbox label:focus-within::before {
  border-color: var(--fm-input-border-hover);
  border-radius: 5px;
}

.fm-exchange-page .fm-exchange-submit-card .exchange_checkpersdata label:has(input:focus-visible)::before,
.fm-exchange-page .fm-exchange-submit-card .xchange_checkdata_div label:has(input:focus-visible)::before,
.fm-exchange-page .fm-exchange-submit-card .exchange_checkpersdata .checkbox label:has(input:focus-visible)::before,
.fm-exchange-page .fm-exchange-submit-card .xchange_checkdata_div .checkbox label:has(input:focus-visible)::before {
  border-color: var(--fm-input-border-focus);
  border-radius: 5px;
  box-shadow: var(--fm-input-focus-shadow);
  outline: none;
}

/* PremiumBox re-renders this warning inside #exch_html; the page-bottom slot is the only visible destination. */
body.fm-exchange-page-template .fm-exchange-page #exch_html .warning_message {
  display: none !important;
}

@media (max-width: 767px) {
  body.fm-exchange-page-template .fm-service-card__description {
    font: var(--fm-type-body-s-regular);
  }
}
