/* 防止水平滚动条的全局样式 */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* 确保 Bootstrap 栅格系统不会导致水平滚动 */
.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.col-md-6, .col-12 {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #F5F5F5 !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
  min-height: 100vh;
  overflow-x: hidden; /* 防止水平滚动条 */
}

.maincontent {
  min-height: calc(100vh - 2rem);
}

.header {
  height: 166px;
  background-color: #007bff;
}

.header .content {
  padding: 25px 15px;
  display: grid;
  gap: 0.5rem;
}

.header .content span {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  font-family: Space Grotesk;
}

.header .info {
  display: flex;
  margin-top: 5px;
  justify-content: space-between;
  font-size: 24px;
  color: #fff;
  font-style: normal;
}

.header .countdown {
  font-weight: 600;
  color: #ff9e9e;
  font-family: Space Grotesk;
  width: 70px;
}

.indiasvg {
  width: 24px;
  height: 24px;
}

.container {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
  max-width: 100% !important; /* 确保容器不会超出视口宽度 */
  box-sizing: border-box; /* 确保 padding 包含在宽度内 */
}

.maincontent > .content {
  position: relative;
  top: -50px;
  background-color: #fff;
  padding-bottom: 5px;
}

.upi-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px;
  border-radius: 8px;
  background-color: #fff;
}

.copybtn {
  color: #007bff !important;
  border-color: #007bff !important;
  margin-left: 10px;
}

.utrback .card {
  padding: 5px;
}

.utrback .col-12 {
  padding-right: 0px !important;
  padding-left: 0px !important;
}

.form-control::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #707070;
  font-style: normal;
  font-size: 0.8rem !important;
}
.form-control::-moz-placeholder { /* Firefox 19+ */
  color: #707070;
  font-style: normal;
  font-size: 0.8rem !important;
}
.form-control:-ms-input-placeholder { /* IE 10+ */
  color: #707070;
  font-style: normal;
  font-size: 0.8rem !important;
}
.form-control:-moz-placeholder { /* Firefox 18- */
  color: #707070;
  font-style: normal;
  font-size: 0.8rem !important;
}
.form-control::placeholder {
  color: #707070;
  font-style: normal;
  font-size: 0.8rem !important;
}

.info .amount {
  display: flex;
  align-items: center;
}

.amount-info {
  display: flex;
  align-items: center;
}

.footerStyle {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  width: 100%;
}

.accordion .card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
}

.accordion .card .card-body {
  padding: 1.1rem;
}

.accordion .card .card-header > .title {
  color: #0080FF;
}

.accordion .card .method-icon {
  height: 1.6rem;
}

.accordion .card .step {
  margin-bottom: 1.2rem;
}

.accordion .card .step .step-header {
  background-color: #F1F7FF;
  font-family: Space Grotesk;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px 8px 0px 0px;
}

.accordion .card .step .step-content {
  padding: 5px;
  box-shadow: 0px 10px 40px 0px rgba(153, 153, 153, 0.1);
}

.qrcode {
  display: flex;
  justify-content: center;
}
.qrcode img {
  border: 1px solid #bec4ca;
  border-radius: 5px;
  padding: 0.5rem;
}
.title {
  color: #000;
  font-size: 1.25rem;
  font-weight: 600;
  font-family: Space Grotesk;
}
.toptext {
  color: #5a5a5a;
  font-size: 0.7rem;
  font-family: normal;
}
.text-red {
  color: #ff0000;
  font-family: Space Grotesk;
  font-size: 0.9rem;
  font-weight: 500;
}
.d-flex {
  padding: 0.25rem;
}

.not-border-top {
  border-top: none;
}

.toast_box {
  position: absolute;
  bottom: 50%;
  left: 50%;
  z-index: 10;
  transform: translate(-50%, -50%);
  display: none;
}

.toast_box p {
  box-sizing: border-box;
  padding: 10px 20px;
  width: max-content;
  background: #000;
  color: #fff;
  font-size: 16px;
  text-align: center;
  border-radius: 6px;
  opacity: 0.7;
}

.loadingico {
  background-repeat: no-repeat;
  height: 8rem;
  width: 8rem;
  background-image: url("../image/UPI.svg");
  background-size: 8rem 8rem;
  margin-left: 1rem;
  margin-top: 1rem;
}

.loading {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box; /* 确保宽度计算包含 padding 和 border */
}

.image-container {
  position: relative;
  width: 10rem;
  height: 10rem;
  margin: 0 auto;
  overflow: hidden;
}

.progress-bar {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 5px solid transparent;
  border-top-color: #2b82e0;
  background-color: unset !important;
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.icon-gpay,
.icon-paytm,
.icon-phonepe,
.icon-upi {
  background-size: 5rem 3rem;
  background-repeat: no-repeat;
  height: 3rem;
  width: 5rem;
  flex-shrink: 0; /* 防止图标缩小 */
  margin-right: 0.5rem; /* 添加右边距 */
}

.icon-gpay {
  background-image: url("../image/wakup_gpay.svg");
  background-size: 4rem 3rem;
}

.icon-paytm {
  background-image: url("../image/Paytm_Logo.svg");
}

.icon-phonepe {
  background-image: url("../image/wakup_phonepe.svg");
}

.icon-upi {
  background-image: url("../image/UPI.svg");
  background-size: 4rem 3rem;
}

.payitem {
  display: flex;
  padding: 0.2rem 0.5rem;
  border-bottom: 1px solid #b2acac;
  align-items: center; /* 确保垂直居中对齐 */
  justify-content: space-between; /* 确保两端对齐 */
  min-height: 3rem; /* 确保最小高度 */
  flex-wrap: nowrap; /* 防止换行 */
}

Button[type="submit"] {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

.submitUtr {
  height: 2.4rem !important;
  width: 7rem !important;
  border-radius: 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff !important;
  background-color: #007bff !important;
  border: 2px solid #007bff !important;
}

.submitUtr.active {
  font-size: 0 !important;
  border-radius: 1.5rem !important;
  width: 2.4rem !important;
  background: transparent !important;
}

Button[type="submit"] {
  height: 2rem;
  width: 7rem; /* 增加宽度以容纳文本 */
  background: transparent;
  border-radius: 1.5rem;
  will-change: transform;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  border: 2px solid #ff5126;
  cursor: pointer;
  color: #ffffff;
  font-size: 0.9rem; /* 稍微减小字体大小 */
  color: #ff5126;
  outline: none;
  text-align: center;
  white-space: nowrap; /* 防止文本换行 */
  overflow: hidden; /* 隐藏溢出内容 */
  text-overflow: ellipsis; /* 文本溢出时显示省略号 */
  min-width: 7rem; /* 设置最小宽度 */
  max-width: 8rem; /* 设置最大宽度 */
  padding: 0 0.5rem; /* 添加内边距 */
  line-height: 1.2; /* 调整行高 */
  font-weight: 500; /* 设置字体粗细 */
}

Button[type="submit"].active {
  font-size: 0;
  border-radius: 1.5rem;
  width: 2rem;
  background: transparent;
}
Button[type="submit"].loader {
  border-right: 2px solid #ffffff !important;
  -webkit-animation: loader 0.6s linear infinite;
  animation: loader 0.6s linear infinite;
}
Button[type="submit"].success {
  background: #3bb873 !important;
  border-color: #3bb873 !important;
  font-size: 1rem;
  color: #ffffff;
}
@-webkit-keyframes loader {
  0% {
    -webkit-transform: rotateZ(0);
    transform: rotateZ(0);
  }
  100% {
    -webkit-transform: rotateZ(360deg);
    transform: rotateZ(360deg);
  }
}
@keyframes loader {
  0% {
    -webkit-transform: rotateZ(0);
    transform: rotateZ(0);
  }
  100% {
    -webkit-transform: rotateZ(360deg);
    transform: rotateZ(360deg);
  }
}

/* 响应式按钮样式 */
@media (max-width: 576px) {
  Button[type="submit"] {
    width: 6.5rem;
    font-size: 0.8rem;
    min-width: 6rem;
    max-width: 7rem;
  }
  
  .payitem {
    padding: 0.3rem 0.2rem;
    min-height: 2.5rem;
  }
}

@media (max-width: 480px) {
  Button[type="submit"] {
    width: 6rem;
    font-size: 0.75rem;
    min-width: 5.5rem;
    max-width: 6.5rem;
  }
}
