
.customer-modal {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 10000;
  display: none;
}
.customer-modal .mask {
  background: #000000;
  opacity: 0.4;
  position: absolute;
  width: 100%;
  height: 100%;
}
.customer-modal .customer-modal-content {
  max-width: 500px;
  width: 85%;

  background: #FFFFFF;
  -webkit-box-shadow: 0px 2px 20px 0px rgba(0,0,0,0.07);
          box-shadow: 0px 2px 20px 0px rgba(0,0,0,0.07);
  border-radius: 18px;
  z-index: 1000;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;

  font-family: Inter-Medium, Inter;
  font-weight: 500;
  font-size: 12px;
  color: #757575;
  line-height: 14px;

}

.customer-modal .customer-modal-content .main {
  margin: 22px 20px 28px;
}

.customer-modal .customer-modal-content .modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
}

.customer-modal .customer-modal-content .modal-close img {
  width: 12px;
  height: 12px;
}

.customer-modal .customer-modal-content .main .top h4 {
  font-family: Inter-SemiBold, Inter;
  font-weight: 600;
  font-size: 15px;
  color: #000000;
  line-height: 20px;
  margin-bottom: 4px;
}

.customer-modal .customer-modal-content .main .top a {
  background: #1A2F5E;
  border-radius: 41px;
  font-size: 13px;
  font-family: Inter-SemiBold, Inter;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 13px;
  padding: 14px 20px;
  display: inline-block;
  margin: 24px auto 13px;
  text-decoration: none;
  cursor: pointer;
}
.customer-modal .customer-modal-content .main .top a img{ 
  height: 10px;
  margin: -1px 0 0 4px;
}

.customer-modal .customer-modal-content .main .detail {
  overflow: hidden;
}
/* Referral input styles */
.referral-input-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0 12px;
  margin-top: 15px;
  margin-bottom: 15px;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  background: #FFFFFF;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.referral-input {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0; /* 防止flex项目溢出 */
  height: 45px;
  border: none;
  font-size: 16px;
  font-family: Inter-Medium, Inter;
  font-weight: 500;
  color: #212121;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  background: transparent;
}

.referral-input::-webkit-input-placeholder {
  color: #BDBDBD;
}

.referral-input::-moz-placeholder {
  color: #BDBDBD;
}

.referral-input:-ms-input-placeholder {
  color: #BDBDBD;
}

.referral-input::-ms-input-placeholder {
  color: #BDBDBD;
}

.referral-input::placeholder {
  color: #BDBDBD;
}

.referral-input:focus {
  outline: none;
  border-color: none;
}

.paste-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  height: 26px;
  padding: 0 8px;
  background: #EEF3FF;
  border: 1px solid #EEF3FF;
  border-radius: 8px;
  font-size: 12px;
  color: #547EFF;
  line-height: 11px;
  font-family: Inter-Medium, Inter;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  -ms-flex-negative: 0;
      flex-shrink: 0; /* 防止按钮被压缩 */
}

/* Submit button disabled state */
.customer-modal .customer-modal-content .btn-group button.primary:disabled {
  background: #E0E0E0;
  border-color: #E0E0E0;
  color: #9E9E9E;
  cursor: not-allowed;
}

.customer-modal .customer-modal-content .btn-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 12px;
  padding: 20px 0 0 ;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
}

.customer-modal .customer-modal-content .btn-group button {
  height: 45px;
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #E0E0E0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 16px;
  font-family: Inter-Medium, Inter;
  font-weight: 500;
  color: #212121;
  cursor: pointer;
  min-height: 45px;
  line-height: 1;
  margin: 0;
  padding: 0;
}
.customer-modal .customer-modal-content .btn-group button.left {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.customer-modal .customer-modal-content .btn-group button.right {
  -webkit-box-flex: 2;
      -ms-flex: 2;
          flex: 2;
}

.customer-modal .customer-modal-content .btn-group button.primary {
  background: #FFD600;
  border: 1px solid #FFD600;
  height: 45px;
  min-height: 45px;
}


.agreement-modal .customer-modal-content {
  width: 100%;
  top: auto;
  bottom: 0;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  border-radius: 18px 18px 0 0;
}

.customer-modal.agreement-modal .customer-modal-content .modal-close img {
  width: 24px;
  height: 24px;
}

.agreement-modal .customer-modal-content .main {
  height: 100%;
  margin: 0;
}

.agreement-modal .customer-modal-content .main .top {
  border-bottom: 1px solid #eee;
}

.agreement-modal .customer-modal-content .main .top h4 {
  margin: 15px auto 15px;
  font-weight: normal;
  font-family: Inter-Medium, Inter;
}

.agreement-modal .customer-modal-content .main .detail {
  position: relative;
  width: 100%; /* 或者你需要的宽度 */
  height: auto; /* 初始高度设为0 */
  background: #FAFAFA;
  margin-top: 0;
  /* padding-top: 81%; */ /* 这个比例可以根据iframe内容的宽高比调整，例如100:60是60% */
}

.agreement-modal .customer-modal-content .main .detail >div {
  height: 38px;
  line-height: 38px;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  color: #547EFF;
  padding: 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agreement-modal .customer-modal-content .main iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* 这样iframe会填满容器 */
  border: 0; /* 可选，去除iframe边框 */
}
.agreement-modal .customer-modal-content .main .btn-group {
  padding: 10px 0 10px;
}
.agreement-modal .customer-modal-content .main button.large {
  flex: 1;
  margin: 0 10px;
  font-size: 18px;
  font-family: Inter-SemiBold, Inter;
}

.copy-link-to-login-modal .customer-modal-content .main .copied-info {
  color: #00C852;
  background: #eafaeb;
  margin: 5px auto 10px;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
}

.copy-link-to-login-modal .customer-modal-content .main .copied-info img {
  height: 14px;
  vertical-align: bottom;
  margin-right: 2px;
}

.copy-link-to-login-modal .customer-modal-content .main {
  margin: 15px;
}

.copy-link-to-login-modal .customer-modal-content .main h6 {
  margin: 0 auto;
}


/* openApp-modal bottom sheet — Figma 12342:613 */
.openApp-modal {
  overflow: visible;
}

/* 12342:613 弹窗：底贴屏幕、pt32、顶圆角24、全幅渐变；底部 safe-area 白色填充 */
.openApp-modal .customer-modal-content.openApp-modal-sheet {
  position: absolute;
  z-index: 1;
  top: auto !important;
  right: auto;
  bottom: 0;
  left: 50%;
  margin: 0;
  padding: 32px 0 constant(safe-area-inset-bottom);
  padding: 32px 0 env(safe-area-inset-bottom, 0px);
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  border-radius: 24px 24px 0 0;
  background-color: #FFFFFF;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#FFF8E0), color-stop(9.534%, #FFFFFF), to(#FFFFFF));
  background-image: linear-gradient(180deg, #FFF8E0 0%, #FFFFFF 9.534%, #FFFFFF 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  text-align: center;
  overflow: visible;
  -webkit-box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.07);
          box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.07);
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.openApp-modal .openApp-modal-sheet .main.openApp-modal-inner {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
}

/* 12342:621 头部区 gap24 pb32 */
.openApp-modal-header {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 24px;
  padding: 0 12px 32px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

/* bg_welcome 261×132，水平居中，top -22px */
.openApp-modal-deco {
  position: absolute;
  left: 50%;
  top: calc(-32px - 22pt);
  z-index: 2;
  width: 261px;
  height: 132px;
  margin-left: -130.5px;
  pointer-events: none;
  line-height: 0;
}

.openApp-modal-deco img {
  display: block;
  width: 261px;
  height: 132px;
  -o-object-fit: contain;
     object-fit: contain;
  object-position: center;
}

/* 12136:713 Logo 60×60 + 右下角系统商店角标 */
.openApp-modal-logo-wrap {
  position: relative;
  z-index: 3;
  width: 60px;
  height: 60px;
  margin: 0;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.openApp-logo-card {
  position: relative;
  width: 60px;
  height: 60px;
  background: #FFFFFF;
  border: 1.25px solid #EEEEEE;
  border-radius: 10px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  overflow: visible;
}

.openApp-mocasa-icon {
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  -o-object-fit: cover;
     object-fit: cover;
}

.openApp-store-badge {
  position: absolute;
  right: -14px;
  bottom: -2pt;
  z-index: 1;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-shadow: none;
          box-shadow: none;
}

.openApp-store-badge .openApp-store-icon {
  display: none;
  width: 28px;
  height: 28px;
  -o-object-fit: contain;
     object-fit: contain;
}

.openApp-modal-logo-wrap.is-ios .openApp-store-icon--ios,
.openApp-modal-logo-wrap.is-android .openApp-store-icon--android {
  display: block;
}

.openApp-modal-logo-wrap .openApp-coupon-card {
  display: none;
}

.openApp-modal-logo-wrap.is-coupon .openApp-logo-card {
  display: none;
}

.openApp-modal-logo-wrap.is-coupon .openApp-coupon-card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.openApp-coupon-card {
  width: 60px;
  height: 60px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.openApp-coupon-icon {
  width: 60px;
  height: 60px;
  display: block;
  -o-object-fit: contain;
     object-fit: contain;
}

/* 12136:679 关闭：距弹窗顶、右各 16px，24×24 */
.openApp-modal .openApp-modal-sheet .modal-close {
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 24px;
  height: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.openApp-modal .openApp-modal-sheet .modal-close img {
  width: 24px;
  height: 24px;
  display: block;
}

/* 12342:665 — title/desc gap 8px, desc max 327px */
.openApp-modal-copy {
  width: 100%;
  padding: 0;
}

.openApp-modal-copy h4 {
  font-family: Inter-SemiBold, Inter, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  color: #212121;
  margin: 0 0 8px;
}

.openApp-modal-copy .desc {
  font-family: Inter-Medium, Inter, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #757575;
  width: 100%;
  max-width: 327px;
  margin: 0 auto;
}

.openApp-modal-actions {
  position: relative;
  z-index: 3;
  padding: 6px 12px 12pt;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.openApp-modal-actions .openApp-modal-btn {
  width: 100%;
  height: 45px;
  margin: 0;
  border: none;
  border-radius: 8px;
  background: #FFD600;
  font-family: Inter-SemiBold, Inter, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 15px;
  color: #212121;
  cursor: pointer;
}

/* iOS Lazada WebView：弹窗底与屏幕底之间的间隙用白色铺满 */
.openApp-modal::after {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  height: constant(safe-area-inset-bottom);
  height: env(safe-area-inset-bottom, 0px);
  background: #FFFFFF;
  pointer-events: none;
}

@media screen and (max-width: 991px) {
}