/* 移动端布局调整 - 将form-section和order-section垂直排列 */
@media screen and (max-width: 767px) {
  .form-section,
  .order-section {
    width: 100% !important;
    float: none !important;
    display: block !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
    min-height: auto !important;
  }
  
  /* 确保两个元素之间有足够的间距 */
  .form-section + .order-section {
    margin-top: 30px !important;
  }
  
  /* 确保元素撑满屏幕高度 */
  .form-section,
  .order-section {
    height: auto !important;
    min-height: 50vh !important; /* 至少占据视口高度的50% */
  }
  
  /* 调整内部元素以适应新的宽度 */
  .form-section input,
  .form-section select,
  .form-section textarea,
  .order-section .order-item {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

#OrderCheckout {
  bottom: 0;
  width: 100%;
}



#OrderCheckout .order-checkout__content{
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;

}

#OrderCheckout .ordder-checkout__price { 
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

#OrderCheckout .order-checkout__btn{
  width: 100%;
  height: 56px;
  /*background: #D83F1B;*/
  color: #fff;
  font-family: Avenir;
  font-size: 16px;
  font-weight: 800;
  line-height: 56px;
  text-align: center;
  border-radius: 4px;
}

/* .legalisering-modal {
  padding-bottom: 100px;
} */

@media only screen and (min-width : 744px) and (max-width : 1024px) {

  #OrderCheckout .order-checkout__content {
    padding: 16px 16px 32px 16px;
  }
  
  #OrderCheckout .total-price-box, 
  #OrderCheckout .ordder-checkout__select {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-items: flex-end;
  }

  #OrderCheckout .ordder-checkout__select {
    align-items: flex-start;
  }
}


@media screen and (max-width: 479px) {
  #OrderCheckout .order-checkout__content{
    width: 100vw;
    padding: 16px 16px 32px 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  #OrderCheckout .total-price-box {
    margin-right: 0;
  }
  #OrderCheckout .total-price-box, 
  #OrderCheckout .ordder-checkout__select {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  #OrderCheckout .ordder-checkout__select {
    align-items: flex-start;
  }
  #OrderCheckout .order-checkout__btn {
    margin-top: 40px;
  }
}

/* 手机横屏适配 */
@media screen and (max-height: 480px) and (orientation: landscape) {
  #OrderCheckout .order-checkout__content{
    width: 100vw;
    padding: 16px 16px 32px 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  #OrderCheckout .total-price-box {
    margin-right: 0;
  }
  #OrderCheckout .total-price-box, 
  #OrderCheckout .ordder-checkout__select {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  #OrderCheckout .ordder-checkout__select {
    align-items: flex-start;
  }
  #OrderCheckout .order-checkout__btn {
    margin-top: 40px;
  }
}