.margin_trade_inprogress {
  padding: 16px 24px;
  width: 384px;
  max-height: 700px;
  overflow: auto;
  background: var(--color-card-2);
  border-radius: 4px;
}

.margin_trade_progress_title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-1);
  line-height: 28px;
  text-align: center;
  margin-bottom: 16px;
}

.margin_tr_text {
  color: var(--color-text-2);
  line-height: 1.5;
  font-size: 14px;
}

.failed_circle {
  animation: unset;
  margin-bottom: 8px;
}

.first_open_margin_trade {
  padding: 40px;
  width: 840px;
  max-width: 100%;
  max-height: 100%;
  overflow-y: auto;
  background: var(--color-card-2);
  border-radius: 8px;
}
.first_open_margin_overlay .mantine-Modal-inner{
  background-color: rgba(0, 0, 0, .65);
}

.margin-strengths-title {
  align-items: center;
  display: flex;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  color: var(--color-text-1);
}
.first_open_margin_trade .mantine-Modal-header, .margin_trade_inprogress .mantine-Modal-header {
  display: none;
}

.loading-page-wrapper {
  position: relative;
  height: 100%;
  font-size: 0;
}

.loading-page-wrapper-bounce {
  position: absolute;
  transform: translate(-50%,-50%);
  left: 50%;
  top: 45%;
}

.loading-contents {
  margin: 0px auto 8px;
  height: 40px;
}

.trade_modal_header {
  display: flex;
  justify-content:space-between;
  align-items: start;
  position: relative;
}
.failed_modal {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.unified_upgrade_modal_close {
  color: var(--color-text-4);
  margin-right: -24px;
  cursor: pointer;
  overflow: visible;
  position: absolute;
  right: 0;
  top: -24px;
  width: 16px;
  height: 16px;
}
.unified_upgrade_modal_close.failed_mode {
  height: 16px;
  width: 16px;
  top: 0;
  right: 8px;
}
.unified_upgrade_modal_close svg path {
  fill: #70798C;
}
.switch_margin_mode_fail .unified_upgrade_modal_close {
	top: -10px;
}
.margin_trade_inprogress .trade_modal_close {
  width: 16px;
  height: 16px;
}
.first_open_margin_trade .trade_modal_close {
  margin-top: -16px;
}

.modal_confirm_btn {
  margin-top: 24px;
  height: 40px;
  background: var(--color-brand-1);
  border-radius: 99px;
  text-align: center;
  line-height: 40px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.margin-strengths-content{
  display: flex;
  flex-direction: column;
  color: var(--color-text-3);
  line-height: normal;
  font-size: 16px;
  margin-bottom: 16px;
}
.left-contents .margin-strengths-content:last-child {
  margin-bottom: 0;
}

.margin-risks-content {
  margin-left: 20px;
  color: var(--color-text-3);
  line-height: 1.5;
  font-size: 16px;
  margin-bottom: 48px;
  margin-top: 7px;
  max-width: 50%;
}
.first_open_margin_modal_container .trade_modal_body{
  margin: 32px 0 32px;
  position: relative;
}
.margin-strengths-content >span {
  margin-top: 4px;
}
.mt-8, .margin-strengths-content >span.mt-8 {
  margin-top: 8px;
}

img.first_open_margin_right_img {
  position: absolute;
  right: 32px;
  z-index: -1;
  top: 50%;
  transform: translate(0, -50%);
  width: 436px;
  border-radius: 8px;
}
.video-right-contents {
  position: absolute;
  right: 32px;
  width: 436px;
  height: 274px;
  top: 50%;
  transform: translate(0, -50%);
  border-radius: 8px;
  overflow: hidden;
}
.video-right-contents > video {
  width: 100%;
}
@media screen and (max-width: 990px) {
  .video-right-contents, .right-contents {
    display: none;
  }
}

.margin-square{
  width: 8px;
  height: 8px;
  background: #17E6A1;
  transform: matrix(-1, 0, 0, 1, 0, 0);
  margin-right: 8px;
}
.first_open_margin_modal_container{position: relative;}

.first_open_margin_modal_title{
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-1);
  line-height: 1.2;
}
.first_open_margin_modal_title.failed_modal_title {
  font-weight: 600;
  line-height: 28px;
}
.margin_failed_text {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}
.margin_failed_text > svg {
  margin-right: 12px;
}

.first_open_margin_tips {
  color: var(--color-text-2);
  line-height: 1.5;
  margin-bottom: 40px;
}

.first_open_margin_trade .user_agreement {
  display: flex;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text-2);
  margin-bottom: 16px;
}
.first_open_margin_trade .user_agreement input[type='checkbox'] {
  background: var(--color-card-2);
}
.first_open_margin_trade .user_agreement a {
  color: var(--color-text-5);
}
.first_open_margin_trade .mantine-Checkbox-root {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

.first_open_margin_trade .trading_checkbox_icon {
  color: var(--color-brand-1)!important;
  fill: var(--color-brand-1)!important;
  font-size: 16px;
}

.first_open_margin_trade .bottom_btn_cls {
  display: flex;
}

.first_open_margin_trade .confirm_disabled {
  background: var(--color-neutral-3);
  color: var(--color-text-4);
  cursor: not-allowed;
}
.uni_upgrade_footer button {
  border-radius: 99px;
  height: 40px !important;
  font-size: 16px !important;
  font-weight: 600;
}

.uni_upgrade_footer .uni_upgrade_next_btn {
  min-width: 268px;
}
.first_open_margin_trade .uni_upgrade_cancel_btn {
  background: var(--color-neutral-1);
  border: 0px;
  margin-right: 16px;
}
.unified-account-swiper {
  overflow: hidden;
  position: relative;
}
.unified-account-swiper .swiper-wrapper {
  height: unset;
}
.unified-account-swiper .swiper-slide {
  align-self: center;
}
.margin_swiper_button_prev, .margin_swiper_button_next {
  position: absolute;
  width: 72px;
  height: 72px;
  top: 50%;
  transform: translate(0, -50%);
  z-index: 99;
  cursor: pointer;
}
.margin_swiper_button_prev > svg circle ,
.margin_swiper_button_next > svg circle {
  fill: var(--color-card-2);
}
.margin_swiper_button_prev {
  left: -40px;
  transform: translate(0, -50%) rotateY(180deg);
}
.margin_swiper_button_next {
  right: -40px;
}
.unified-account-swiper .left-contents {
  width: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
  margin-left: 32px;
}

.margin-strengths-content >span {
  display: flex;
  align-items: center;
}
.margin-strengths-content .text-dot {
  display: inline-block;
  height: 4px;
  width: 4px;
  background: var(--color-text-3);
  border-radius: 4px;
  align-self: flex-start;
  margin: 9px 10px 0 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.margin-strengths-content .dot_empty {
  background: unset;
}
.margin-strengths-content.ml-16 {
  margin-left: 16px;
}

.trade_modal_body_bottom_tip {
  font-size: 14px;
  color: var(--color-text-3);
  font-weight: 500;
  line-height: normal;
  margin-bottom: 8px;
}
.coin_tips_wrapper {
  margin-top: 4px;
  color: var(--color-text-2);
}
.coin_tips_wrapper > div:first-child {
  margin-bottom: 8px;
  color: var(--color-text-3);
  margin-top: 8px;
  line-height: 16px;
}
.coin_tips_contents {
  padding: 12px 9px;
  background-color: var(--color-neutral-2);
  color: var(--color-text-3);
  max-height: 87px;
  overflow-y: auto;
  box-sizing: border-box;
  margin-bottom: 8px;
  border-radius: 4px;
}

.multi-margin-mode-future input:checked + * > .mantine-Switch-thumb {
  left: calc((100% - 10px) - 2px);
}
.multi-margin-mode-future > div:nth-child(2) {
  cursor: pointer;
}

.margin_modal_bottom_btn {
  height: 40px;
  line-height: 40px;
  background: var(--color-brand-1);
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  margin-top: 40px;
  cursor: pointer;
  border-radius: 99px;
}
.margin_single_po_wrapper .margin_modal_bottom_btn {
  margin-top: 32px;
}
.margin_single_po_wrapper .margin_modal_bottom_btn.cancel_btn {
  margin-top: 16px;
  background: transparent;
  color: var(--color-brand-1);
  border: 1px solid var(--color-brand-1);
  box-sizing: border-box;
}

.upgrade_sub_title .title_steps {
  margin-right: 8px;
}
.upgrade_sub_title .title_steps > span {
  color: var(--color-text-3);
}
.upgrade_sub_title {
  color: var(--color-text-1);
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  margin-bottom: 24px;
}

.step_img {
  height: 96px;
  width: 96px;
  margin-right: 24px;
  background-size: 100% 100%;
  flex-shrink: 0;
}
.first_step_img {
  background-image: url('/images/pro_trade/unifiedUpgrade/first_step_1.png');
}
.second_step_img {
  background-image: url('/images/pro_trade/unifiedUpgrade/first_step_2.png');
}
.third_step_img {
  background-image: url('/images/pro_trade/unifiedUpgrade/first_step_3.png');
}

.first_step_wrapper {
  color: var(--color-text-3);
  display: flex;
  margin-bottom: 24px;
}
.first_step_wrapper:last-child {
  margin-bottom: 0;
}

.first_step_text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.first_step_wrapper .sec_title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-1);
  margin-bottom: 8px;
}

.body_wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 570px;
}

.step_2_wrapper {
  padding: 0.1px 24px;
  background: var(--color-card-1);
  border-radius: 8px;
}

.unified_third_title {
  font-size: 16px;
  color: var(--color-text-1);
  margin-bottom: 16px;
  line-height: 20px;
  display: flex;
  margin-top: 24px;
  font-weight: 600;
}
.step_3_text .unified_third_title:not(:first-child) {
  margin-top: 32px;
}
.unified_third_title .third_title_icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  background-size: 100% 100%;
}

.unified_third_text {
  color: var(--color-text-3);
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 17px;
  display: flex;
}
.step_5_wrapper .unified_third_text {
  margin-bottom: 24px;
}
.unified_third_text .green_square {
  height: 6px;
  width: 6px;
  margin: 5px 8px;
  background-color: var(--color-funct-1);
  flex-shrink: 0;
  align-items: flex-start;
}
.unified_third_text .risk_square {
  background-color: var(--color-funct-4);
}
.unified_third_text.unified_risk_contents {
  color: var(--color-funct-4);
  margin-bottom: 24px;
}
.unified_gray_line {
  height: 1px;
  margin: 24px 0;
}

.unified_gray_line {
  height: 1px;
  margin: 24px 0;
  background-color: var(--color-divider-2);
}

.step_3_wrapper {
  width: 53%;
}

.step_3_right_video, .step_4_right_contents {
  position: absolute;
  top: 0px;
  right: 0;
  width: 320px;
  height: 220px;
}
.step_4_right_contents {
  height: 220px;
  background-image: url('/images/pro_trade/unifiedUpgrade/upgrade_4.png');
  background-size: 100% 100%;
}

.risk_wan_wrapper {
  margin-top: 32px;
  padding: 14px;
  background: var( --color-cmpt-3);
}

.risk_wan_wrapper {color: var(--color-text-1);}
.risk_wan_title {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 600;
}
.risk_wan_title  svg path {
  fill: #F2B80C;
}
.risk_wan_title  svg {
  margin-right: 8px;
}

.risk_wan_text {
  margin-left: 20px;
}

.uni_upgrade_footer .unified_video_icon {
  margin: 0;
}
.uni_upgrade_footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.uni_upgrade_footer button:active {
  transform: unset;
}

.step_3_swiper_wrapper .swiper-slide,
  .step_3_swiper_wrapper .swiper-slide video{
  width: 320px;
  height: 220px;
}

.step_3_swiper_wrapper {
  overflow: hidden;
}

.step_3_right_video .swiper-pagination-bullets{
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: -10px !important;
}

.step_3_right_video .swiper-pagination-bullets li{
  height: 8px;
  width: 8px;
  margin-right: 8px;
  background: var(--color-text-4);
  cursor: pointer;
}

.step_3_right_video .swiper-pagination-bullets li.on {
  background: var(--color-brand-1);
}

.unified_2_1 {
  background-image: url('/images/pro_trade/unifiedUpgrade/upgrade-2-1.png');
}

/* 暗黑模式 */
.classic-dark .first_open_margin_trade .uni_upgrade_cancel_btn {
  color: #fff;
}
.classic-dark .step_4_right_contents {
  background-image: url('/images/pro_trade/unifiedUpgrade/upgrade_4_dark.png');
}
.classic-dark .first_step_img {
  background-image: url('/images/pro_trade/unifiedUpgrade/first_step_1_dark.png');
}
.classic-dark .second_step_img {
  background-image: url('/images/pro_trade/unifiedUpgrade/first_step_2_dark.png');
}
.classic-dark .third_step_img {
  background-image: url('/images/pro_trade/unifiedUpgrade/first_step_3_dark.png');
}
/* 暗黑模式 end */

/* 俄语修复 */
html[lang='ru'] .uni_upgrade_cancel_btn {
  margin-bottom: 8px;
}
/* 阿语修复 start */
html[lang='ar'] .risk_wan_text {
  margin-right: 20px;
  margin-left: 0;
}
html[lang='ar'] .risk_wan_title  svg {
  margin-left: 8px;
  margin-right: 0;
}
html[lang='ar'] .unified_third_title .third_title_icon {
  margin-left: 8px;
  margin-right: 0;
}
html[lang='ar'] .step_img {
  margin-right: 0;
  margin-left: 24px;
}
html[lang='ar'] .upgrade_sub_title .title_steps {
  margin-left: 8px;
  margin-right: 0;
}
html[lang='ar'] .multi-margin-mode-future input:checked + * > .gui-mantine-rtl-Switch-thumb {
  right: calc((100% - 10px) - 2px);
}
html[lang='ar'] .multi-margin-mode-future .gui-mantine-rtl-Switch-thumb {
  width: 10px;
  height: 10px;
}
html[lang='ar'] .multi-margin-mode-future .gui-mantine-rtl-Switch-track {
  min-width: unset;
  width: 28px;
  height: 14px;
}
html[lang='ar'] .first_open_margin_trade .gui-mantine-rtl-Modal-header,
html[lang='ar'] .margin_trade_inprogress .gui-mantine-rtl-Modal-header {
  display: none;
}
html[lang='ar'] .unified_upgrade_modal_close {
  right: unset;
  left: -16px;
}
html[lang='ar'] span.margin-square {
  margin-right: 0;
  margin-left: 8px;
}

html[lang='ar'] img.first_open_margin_right_img {
  left: 32px;
  right: unset;
  transform: rotateY(180deg) translate(0, -50%);;
}
html[lang='ar'] .video-right-contents {
  right: unset;
  left: 32px;
}
html[lang='ar'] .margin_swiper_button_prev {
  left: unset;
  right: -40px;
  transform: translate(0, -50%);
}
html[lang='ar'] .margin_swiper_button_next {
  left: -40px;
  right: unset;
  transform: translate(0, -50%) rotateY(180deg);
}
html[lang='ar'] .margin-strengths-content .text-dot {
  margin: 9px 2px 0 10px;;
}
html[lang='ar'] .margin-strengths-content.ml-16 {
  margin-left: 0;
  margin-right: 16px;
}
html[lang='ar'] .unified-account-swiper .left-contents {
  margin-left: 0;
  margin-right: 32px;
}
html[lang='ar'] .first_open_margin_trade .mantine-Checkbox-root {
  margin-right: 0;
  margin-left: 8px;
}
html[lang='ar'] .first_open_margin_trade .uni_upgrade_cancel_btn {
  margin-left: 16px;
  margin-right: 0;
}
html[lang='ar'] .margin_failed_text > svg {
  margin-left: 12px;
  margin-right: unset;
}
/* 阿语修复 end */
