.footer-promotion {
  background-color: var(--section-background_color);
}

.footer-promotion-title {
  text-align: center;
  white-space: break-spaces;
}

.footer-promotion-block {
  width: var(--block-pc_content_width);
  margin: 0 auto;
}

.footer-promotion-wrapper {
  margin-top: 20px;
  display: flex;
  flex-direction: var(--block-pc_img_position);
  align-items: center;
}

.footer-promotion-img-pc {
  display: block;
  border: none;
  width: var(--block-pc_img_width);
  height: auto;
  flex-shrink: 0;
}

.footer-promotion-img-mb {
  display: none;
}

.footer-promotion-content-wrapper {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 10px 0 10px 60px;
}

.footer-promotion-btn-wrapper {
  margin-top: 20px;
  display: flex;
}

.fp-btn {
  display: inline-flex;
  line-height: 21px;
  letter-spacing: 0;
  text-align: center;
  color: var(--block-btn_text_color) !important;
}

.fp-btn-primary {
  background-color: var(--block-btg_background_color);
  border: none;
  padding: 10px 20px;
}

.fp-btn-ghost {
  border: 1px solid var(--block-btn_border_color);
  padding: 8px 18px;
}

.fp-btn-link {
  text-decoration: underline !important;
}

.fp-btn-link_arrow {
  position: relative;
  align-items: center;
  gap: 4px;
}

.fp-btn-link_arrow .fp-arrow {
  transform: rotate(-90deg);
}

.pc_align_left .footer-promotion-btn-wrapper {
  justify-content: flex-start;
}

.pc_align_center .footer-promotion-btn-wrapper {
  justify-content: center;
}

.pc_align_right .footer-promotion-btn-wrapper {
  justify-content: flex-end;
}

.pc_align_left .footer-promotion-content {
  text-align: left;
}

.pc_align_center .footer-promotion-content {
  text-align: center;
}

.pc_align_right .footer-promotion-content {
  text-align: right;
}

/* Mobile styles */

@media screen and (max-width: 959px) {
  .footer-promotion {
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
  }
  .footer-promotion-img-pc {
    display: none;
  }

  .footer-promotion-img-mb {
    display: block;
    border: none;
    width: 100%;
  }

  .footer-promotion-block {
    width: 100%;
  }

  .footer-promotion-wrapper {
    flex-direction: column-reverse;
    margin-top: 10px;
  }

  .footer-promotion-content-wrapper {
    width: 100%;
    padding: 10px 0 0;
  }

  .footer-promotion-btn-wrapper {
    justify-content: var(--block-mb_align);
  }

  .mb_align_left .footer-promotion-btn-wrapper {
    justify-content: flex-start;
  }
  .mb_align_center .footer-promotion-btn-wrapper {
    justify-content: center;
  }
  .mb_align_right .footer-promotion-btn-wrapper {
    justify-content: flex-end;
  }

  .mb_align_left .footer-promotion-content {
    text-align: left;
  }
  .mb_align_center .footer-promotion-content {
    text-align: center;
  }
  .mb_align_right .footer-promotion-content {
    text-align: right;
  }
}

/* The ipad end responds to the mobile end in vertical screen */

/* @custom-media --tablet (max-width: 959px); */

/* @custom-media --gt-mobile (min-width: 751px); */

/* detectingScreen need to consider the configuration of the tablet */
