
:root {
  --link-color-background-gray: rgb(246, 246, 246);
  --link-color-background-white: rgb(255, 255, 255);
  --link-color-gray: rgb(112, 112, 112);

  --bs-font-sans-serif:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif,
    'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}
* {
  user-select: none;
}
body {
  background-color: var(--link-color-background-gray);
}

#liveAlertPlaceholder {
  position: fixed;
  top: 20px;
  z-index: 1000;
}

.icon {
  width: 12px;
}
h3 {
  margin-top: 14px;
  margin-bottom: 0px;
}

.flex-between {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#screenLoading {
  position: fixed;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  z-index: 999;
  opacity: 1;
}
#screenLoading.opacity {
  opacity: 0.75 !important;
}
#screenLoading.active {
  display: flex;
}
#screenLoading.auto-submit {
  display: flex !important;
}

/* extra step  */

.dialog-wrapper {
  position: fixed;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  z-index: 888;
  display: none;
  text-align: center;
}
.dialog-wrapper.active {
  display: flex;
}
img.payment-method-img {
  max-height: 32px;
  margin-top: 18px;
}
#extraStep .tip,
#qrCodeWrapper .tip {
  margin-bottom: 2em;
}
#extraStep .extra-content {
  width: 400px;
  max-width: 100%;
  background-color: var(--link-color-background-gray);
  padding: 16px;
  border: 1px solid #dedede;
  border-radius: 4px;
}

#extraStep #extra > div {
  padding: 0;
  padding-top: 4px;
}
#extraStep .table-total-price {
  border-top: none;
}

#extraStep button {
  width: 100%;
  margin: 18px 0;
}
#extraStep button:last-child {
  margin-top: 0;
}

/* language modal */
#languageModal.only-country .screen-modal-title-language,
#languageModal.only-country #payment-country-warning {
  display: none !important;
}

.screen-modal {
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  position: fixed;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 0.2s ease-in-out;
  opacity: 0;
  display: none;
  z-index: 99;
}
.screen-modal-content {
  height: 85%;
  bottom: 0;
  position: absolute;
  width: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.screen-modal-header {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  font-size: var(--bs-body-font-size);
  padding-bottom: 0;
}
.screen-modal-title {
  font-weight: 600;
  border-bottom: 1px solid #dedede;
  display: flex;
}
.screen-modal-close {
  padding-bottom: 16px;
  cursor: pointer;
}
.screen-modal-title div {
  padding-bottom: 16px;
  cursor: pointer;
}
.screen-modal-title-language {
  margin-left: 16px;
}
.screen-modal-title div.active {
  color: var(--bs-primary);
  border-bottom: 2px solid var(--bs-primary);
}
.screen-modal-body {
  padding: 16px;
  display: none;
  flex-direction: column;
  flex: 1;
  overflow-y: hidden;
}
#countryOptions,
#languageOptions {
  flex: 1;
  overflow: auto;
  margin-top: 16px;
}
.screen-modal-body.active {
  display: flex;
}
.screen-modal-body .form-check {
  margin-bottom: 16px;
}
.screen-modal-body .form-check label {
  cursor: pointer;
}
/* click to show  modal */
.screen-modal-click {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.screen-modal-click > span {
  font-size: var(--bs-body-font-size);
  margin: 0 4px;
}
/* country search */
.screen-modal-body .search::placeholder {
  font-size: var(--bs-body-font-size);
  line-height: var(--bs-body-font-size);
}
/* country warning */
.bi {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentcolor;
  margin-top: 0.25em;
}
/* country flag */
.fi {
  display: inline-block;
  font-size: 28px;
  width: 1em;
  height: 1em;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid #eeeeee;
}
.circle {
  border-radius: 50%;
}
.form-check.flag {
  display: flex;
  align-items: center;
}
.form-check.flag > * {
  margin-right: 0.5em;
}
/* content */
.content {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.left {
  background-color: var(--link-color-background-white);
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  min-height: 100vh;
}
.left > form {
  max-width: 580px;
  padding: 4px 21px;
  width: 100%;
}

/* products list */
.right {
  background-color: var(--link-color-background-gray);
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.right > .product {
  width: 100%;
  max-width: 580px;
  padding: 16px 21px;
}

.table-body .table-tr {
  font-size: 14px;
  margin: 8px 0;
  word-break: break-word;
}
/* 名称部分：自动换行并占剩余宽度 */
.table-td-name {
  flex: 1; /* 关键：占据剩余空间 */
  min-width: 0; /* 修复内容溢出问题[5,7](@ref) */
  word-break: break-all; /* 强制任意字符换行（包含连续英文/数字）[1,3](@ref) */
  overflow-wrap: break-word; /* 备用换行方案（兼容性更好）[4](@ref) */
}
/* 价格部分：禁止换行 */
.table-td-price {
  flex-shrink: 0; /* 禁止收缩，保持内容宽度[6,7](@ref) */
  white-space: nowrap; /* 强制内容不换行[2,4](@ref) */
  margin-left: 10px; /* 可选：添加间距 */
}
.table-total-price {
  font-weight: 500;
  border-top: 1px solid #dedede;
  padding: 16px 0;
  font-size: 18px;
}
.table-total-price [data-amount] {
  font-size: 21px;
}

.summary {
  cursor: pointer;
  padding: 21px 0;
  border-bottom: 1px solid #dedede;
}
.if-not-summary {
  display: none;
}
#productTable {
  height: 0;
  overflow: hidden;
  transition: height 0.5s;
  -webkit-transition: height 0.5s; /* Safari */
}

/* left form  info */
/* .star {
  display: block;
  position: absolute;
  margin-top: 10px;
  margin-left: 4px;
} */
.star::before {
  display: block;
  position: absolute;
  margin-top: 10px;
  margin-left: 4px;
  /* content: '*';
  color: red; */
}
#shipping-title {
  cursor: pointer;
}
#shipping-title .edit {
  font-size: 14px;
  /* font-weight: normal; */
  color: var(--bs-primary);
}
#shipping-title-icon {
  width: 16px;
}
#shipping-title-icon.rotate {
  transform: rotate(180deg);
}
#fullnameAddress {
  cursor: pointer;
  font-family: var(--bs-body-font-family);
  font-size: var(--bs-body-font-size);
  font-weight: var(--bs-body-font-weight);
  line-height: var(--bs-body-line-height);
  color: var(--bs-body-color);

  width: 100%; /* 必须设置宽度 */
  white-space: nowrap; /* 禁止换行 */
  overflow: hidden; /* 隐藏溢出 */
  text-overflow: ellipsis; /* 显示省略号 */
}
.billing-address-content {
  width: 100%;
}
#shipping {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  /* min-height: 360px; */
}
#shipping-box {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  /* min-height: 360px; */
  height: 0;
  overflow: hidden;
  transition: height 0.5s;
  -webkit-transition: height 0.5s;
}
#billing > div,
#shipping > div,
#extra > div,
#shippingEmail,
#cardNumber {
  width: 100%;
  margin-bottom: 6px;
}
#shipping > .shippingFirstName,
#shipping > .shippingLastName,
#billing > .billingFirstName,
#billing > .billingLastName {
  width: calc(50% - 8px);
}
#shipping > .shippingLastName,
#billing > .billingLastName {
  margin-left: 16px;
}
#shipping > div,
#billing > div,
#extra > div {
  position: relative;
  padding: 4px;
  padding-bottom: 0;
}
#shipping > .shippingCountry .icon,
#billing > .billingCountry .icon {
  position: absolute;
  margin-top: -28px;
  right: 12px;
}
#shipping > .shippingCity,
#shipping > .shippingState,
#shipping > .shippingZip,
#billing > .billingCity,
#billing > .billingState,
#billing > .billingZip {
  width: calc(33.33% - 10px);
}
.shipping-zip_state_city,
.billing-zip_state_city {
  width: 100%;
  display: flex;
  gap: 15px;
}
.shipping-zip_state_city > div,
.billing-zip_state_city > div {
  flex: 1;
}
#shipping > .shippingState,
#shipping > .shippingZip,
#billing > .billingState,
#billing > .billingZip {
  margin-left: 15px;
}

#extra {
  width: 100%;
}

#payments {
  border: 1px solid #dedede;
  border-bottom: none;
}
#payment p.tip {
  color: var(--link-color-gray);
  font-size: 14px;
}
.content p {
  margin-bottom: 6px;
  margin-top: 6px;
}

.payment-item-radio {
  /* height: 56px;
  line-height: 56px; */
  background-color: var(--link-color-background-white);
  padding: 16px;

  display: flex;
  justify-content: flex-start;
  align-items: center;

  border-bottom: 1px solid #dedede;
  cursor: pointer;
}

.payment-item-radio .form-check-label {
  width: 100%;
  margin-left: 16px;
  cursor: pointer;
}
.payment-item-radio img {
  max-height: 26px;
}
/** payment content 默认高度为 0 ，不可见 */
.payment-item-content,
#waring-not-support {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* padding: 16px; */
  height: 0;
  overflow: hidden;
  box-sizing: content-box;
  background-color: var(--link-color-background-white);
  transition: height 0.4s;
  -webkit-transition: height 0.4s; /* Safari */
  box-sizing: border-box;
  position: relative;
}

.payment-item-content .star {
  display: none;
}

.payment-item-content img.wallet {
  width: 160px;
  height: 82px;
  display: flex;
}

.payment-item.active .payment-item-radio {
  border: 1px solid #999;
  border-bottom: 1px solid #999;
  background-color: var(--link-color-background-gray);
  margin-left: -1px;
  margin-right: -1px;
}
/** payment content 可见时，高度为 auto */
.payment-item.active .payment-item-content,
#waring-not-support {
  border-bottom: 1px solid #dedede;
  background-color: var(--link-color-background-gray);
  padding: 16px;
}
.payment-item.active > .payment-item-content .billing-title {
  width: 100%;
  text-align: left;
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 16px;
}
.payment-item > .payment-item-content .billing-title.hidden-title {
  display: none;
}
.payment-item.active > .payment-item-content.is-virtual #billing {
  padding: 16px 0;
  padding-top: 0;
}
/* is-virtual end */
.payment-item.active[data-mode='HPF'] > .payment-item-content .star {
  display: inline;
}
.payment-item-content .cardNumber,
.payment-item-content .card-expire {
  width: 100%;
}
.payment-item-content .card-expire {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.payment-item-content .card-expire > *:not(span) {
  width: 32%;
}
.payment-item-content .form-check {
  width: 100%;
  text-align: left;
}

#waring-not-support {
  display: none;
}
#waring-not-support.visible {
  display: flex;
  height: auto;
}

.billing-title {
  margin: 1rem 0;
}
.billing-check {
  margin: 0.5rem 0;
}

#billing {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  background-color: var(--link-color-background-gray);
  height: 0;
  overflow: hidden;
  transition: height 0.4s;
  -webkit-transition: height 0.4s; /* Safari */
  overflow: hidden;
  position: relative;
}
#billing.active {
  height: 276px;
  padding: 16px;
}

#submitBtn {
  width: 100%;
  margin: 18px 0;
}

[data-payment] {
  /* 双行 108px */
  --epp-height: 108px;
}
[data-payment='CardEmbedWinTo'],
[data-payment='CardEmbedded'] {
  --epp-height: 388px;
}

#EPPCard {
  padding: 0;
  background-color: transparent;
  border: none;
}
#EPPCard .epp-loading {
  line-height: 108px;
  min-height: var(--epp-height);
  background-image: linear-gradient(
    90deg,
    rgb(240, 242, 245) 25%,
    rgb(230, 232, 235) 37%,
    rgb(240, 242, 245) 63%
  );
  background-size: 400% 100%;
  animation: 1.4s ease 0s infinite normal none running el-skeleton-loading;
}

@keyframes el-skeleton-loading {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}
/* 大屏时 */
@media screen and (min-width: 768px) {
  body {
    display: flex;
    justify-content: center;
  }
  .content {
    flex-direction: row-reverse;
  }
  .left,
  .right {
    width: 50%;
  }
  .left {
    justify-content: flex-end;
  }
  .right {
    justify-content: flex-start;
  }
  .summary {
    display: none;
  }
  .if-not-summary {
    display: block;
  }
  #productTable {
    height: auto;
  }
  .left > form .product-bottom {
    display: none;
  }
  .screen-modal-content {
    height: 100%;
    width: 70vw;
    max-width: 600px;
    right: 0;
  }
}
.input-label {
  display: none;
  white-space: nowrap;
}
.input-label.has-value {
  display: block;
  position: absolute;
  margin-left: 12px;
  margin-top: 2px;
  font-size: 12px;
  padding-top: 0;
  color: var(--link-color-gray);
}
.payment-item.active .input-label.has-value {
  position: absolute;
}
.form-control {
  padding-top: 9px;
  padding-bottom: 9px;
}

.form-control.has-value {
  padding-top: 14px;
  padding-bottom: 4px;
}

.content.page-img {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background-color: #fff;
  flex-direction: column;
  height: 100vh;
}

.content.page-img img {
  max-width: 500px;
  width: 100%;
}
.content.page-img h1 {
  font-size: 154px;
}
.content.page-img h2 {
  font-size: 36px;
}

/* 呼吸动画 */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}
.pulse {
  animation: pulse 2s ease-in-out infinite;
}
.hand-pointer {
  width: 30px;
  position: absolute;
  top: 17px;
  left: 10px;
  display: none;
}
.hand-pointer.visible {
  display: inline-block;
}

/* dialog-container */
.dialog-container {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  position: absolute;
  background: linear-gradient(135deg, #f0f5ff 0%, #e6f0ff 100%);
  /* background-color: #f8f9fa; */

  width: 100%;
  max-width: 400px;
  /* height: 720px; */
  max-height: calc(100vh - 20px);
  background: white;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  flex-direction: column;
  align-items: center;
}

.dialog-footer {
  padding: 16px;
  text-align: center;
}

.dialog-container .logo-img {
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.dialog-container .dialog-section {
  width: 100%;
  padding: 32px 24px;
  text-align: center;
  border-bottom: 1px solid #e9ecef;
}

.dialog-container .dialog-content {
  /* padding: 32px 24px; */
  text-align: center;
  border-bottom: 1px solid #e9ecef;
}

.dialog-container .notification {
  padding: 20px;
  text-align: center;
  line-height: 1.6;
}

.dialog-container .notification-text {
  font-size: 18px;
  color: #212529;
}

.dialog-container .highlight {
  color: rgb(13, 110, 253);
  font-weight: 600;
}

.dialog-container .label {
  font-size: 18px;
  color: #495057;
  margin-bottom: 12px;
  font-weight: 500;
}

.dialog-container .dialog-logo {
  border-bottom: 1px solid #e9ecef;
  width: 100%;
  text-align: center;
  padding: 16px;
}

