.pay-dot-loading {
  display: inline-block;
}
.pay-button {
  display: inline-block;
  padding: 7px 12px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #eee;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  position: relative;
  text-align: center;
}
.pay-button-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pay-button-block {
  display: block;
  width: 100%;
}
.pay-button-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pay-button-loading {
  cursor: wait;
}
.pay-button-loading-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pay-button-primary {
  background: #1677ff;
  border-color: #1677ff;
  color: #fff;
}
.pay-button-primary:hover {
  background: #409eff;
}
.pay-button-success {
  background: #00b578;
  border-color: #00b578;
  color: #fff;
}
.pay-button-danger {
  background: #ff3141;
  border-color: #ff3141;
  color: #fff;
}
.pay-button-warning {
  background: #ff8f1f;
  border-color: #ff8f1f;
  color: #fff;
}
.pay-button-default {
  background: #fff;
  border-color: #eee;
  color: #333;
}
.pay-button-fill-outline {
  background: transparent;
  color: inherit;
}
.pay-button-fill-none {
  background: transparent;
  border: none;
  color: inherit;
}
.pay-button-mini {
  font-size: 12px;
  padding: 2px 8px;
}
.pay-button-small {
  font-size: 14px;
  padding: 4px 10px;
}
.pay-button-large {
  font-size: 18px;
  padding: 10px 18px;
}
.pay-button-shape-rounded {
  border-radius: 1000px;
}
.pay-button-shape-rectangular {
  border-radius: 0;
}
.pay-mask {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pay-mask-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 88px;
}
.pay-mask-close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: none;
  border: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  z-index: 1;
}
.pay-mask-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 28px;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px #000;
}
.pay-mask-title > .pay-icon-paypal-white {
  width: 36px;
  height: 36px;
}
.pay-mask-desc {
  color: #fff;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
  white-space: pre-line;
}
.pay-mask-continue {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  text-align: center;
  font-size: 18px;
}
.pay-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pay-modal__mask {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}
.pay-modal__content {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  padding: 42px 20px 20px 20px;
  min-width: 280px;
  max-width: 80vw;
  box-shadow: 0 4px 24px #0001;
  text-align: center;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
}
.pay-modal__close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  text-align: left;
}
.pay-modal__icon {
  margin-bottom: 8px;
  font-size: 40px;
}
.pay-modal__title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
}
.pay-modal__desc {
  color: #222;
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.7;
  text-align: left;
}
.pay-modal__content-wrapper {
  position: relative;
  z-index: 1;
  text-align: center;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.pay-modal__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}
.pay-modal__btn {
  min-width: 96px;
  padding: 8px 0;
  border-radius: 24px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.pay-modal__btn--retry {
  background: #fff;
  color: #f25a5a;
  border: 1.5px solid #f25a5a;
}
.pay-modal__btn--finish {
  background: #f25a5a;
  color: #fff;
  border: none;
}
