.payment-container {
  display: flex;
  flex-direction: column;
}
.bd-dashed {
  border-bottom: 1px dashed #4f6d54;;
}

.page-title::before {
  position: absolute;
  content: '';
  width: 4px;
  height: 16px;
  background: #e5e5e5;
  border-radius: 2px;
  display: inline-block;
  position: relative;
  top: 2px;
}

.pay-container {
  gap: 24px;
}
.pay-left {
  background: #142a18;
  flex: 1;
  border-radius: 16px;
  padding: 2rem;
}
.pay-item {
  height: 64px;
  background: rgba(48,147,63,0.10);
  border: 1px solid rgba(48,147,63,0.30);
  border-radius: 16px;
  padding-left: 1rem;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.pay-item:hover,.pay-item.active {
  background: rgba(48,147,63,0.50);
}

/* 充值说明 */
.gameDesc {
  margin: 20px 0px;
}
.gameDesc .content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gameDesc .content .left {
  flex: 1;
  background: rgba(48,147,63,0.10);
  border-radius: 16px;
  padding: 10px;
  margin-right: 50px;
}
.gameDesc .content .left p {
  color: #fff;
  font-size: 14px;
}
.gameDesc .content .left .p{
  margin-top: -10px;
}

.gameDesc .content .right {
  width: 320px;
}

@media  screen and (max-width: 992px) {
  .gameDesc {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

  }
  .gameDesc .content {
    margin: 0px 30px ;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: -20px;
  }
  .gameDesc .content .left {
    width: 100%;
  }
}

.pay-right {
  padding: 1.5rem;
  width: 320px;
  background: #2b4a30;
  border-radius: 16px;
  max-height: 504px;
}
.product-text {
  color: #e5e5e5;
  opacity: 0.5;
  font-size: 14px;
}
.product-header img{
  border-radius: 6px;
}
.role-input {
  height: 40px;
  background: #1f4526;
  border-radius: 16px;
  padding: 0 16px;
}
.role-input input {
  background: transparent;
  border: 0;
  color: #e5e5e5;
  flex: 1;
  font: inherit;
  font-size: 1em;
  height: 100%;
  outline: none;
  padding: 0 0 0 8px;
  width: 80%;
}
.product-role__id {
  background: #1f4526;
  border-radius: 16px;
  height: 40px;
  padding-left: 10px;
  display: flex;
  align-items: center;
}
.pay-money {
  color: #EF5350;
  font-weight: 700;
}
.product-pay-btn {
  height: 40px;
  background: linear-gradient(180deg,#4ed462, #30933f);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-width: 120px;
}

#payModal.modal {
  --bs-modal-width: 300px !important;
}

#payModal .modal-dialog {
  max-width: 300px;
  margin: 0 auto;
}

@media screen and (max-width: 992px) {
  .pay-left {
    padding: 1rem;
  }
  .gy-4  {
    --bs-gutter-y: 1rem;
  }
  .role-info {
    height: 48px;
    background: #142a18;
    border-radius: 16px;
    padding: 0 1rem;
    font-size: 14px;
  }
  .product-info-header {
    padding: 1rem;
    background: #142a18;
    border-radius: 16px;
  }
  .product-info-header img {
    border-radius: 6px;
  }
  .pay-left::-webkit-scrollbar {
    display: none;
  }
  .pay-item {
    height: 44px;
  }
  .pay-item img {
    width: 45px;
    height: 30px;
  }
  .payment-footer {
    height: 68px;
  }
  .payment-footer_item {
    height: 68px;
    background: #2b4a30;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 1rem;
  }
  .role-input {
    background: none;
    width:100%;
  }
}

/* 礼包样式 */
.gift {
  width: 100%;
  max-width: 1356px;
  margin: 20px auto;
}
.gift .gift-header {
  font-size: 20px;
  margin-bottom: 20px;
}
.gift .gift-content {
  display: grid;
  grid-template-columns: repeat(3,minmax(0, 1fr));
  gap: 20px;
}
.gift .gift-content .gift-card {
  position: relative;
  height: 130px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 16px;
  padding: 0px 20px;
  box-shadow: 1px 1px 3.33px 0px rgba(48,147,63,0.10);
}
.gift .gift-content .gift-card img {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  margin-right: 10px;
}
.gift .gift-content .gift-card .right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}
.gift .gift-content .gift-card .right .title {
  width: 100%;
  font-size: 16px;
  color: #e5e5e5;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.gift .gift-content .gift-card .right .content {
  width: 100%;
  font-size: 12px;
  color: #e5e5e5;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin: 7px 0px;
}
/* .gift .gift-content .gift-card .right .btn {
  width: 100px;
  height: 40px;
  background: linear-gradient(180deg, #4ed462, #4dd160, #30933f);
  font-size: 14px;
  border-radius: 16px;
  color: #fff;
  line-height: 20px;
} */
/* 弹框样式 */
.gift-popup {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 10px 15px 0 15px;
  background-color: #1e3a24;
  border: 1px solid #2d5a38;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: none;
  color: #e5e5e5;
  font-size: 12px;
  cursor: pointer;
}
.gift-card:hover .gift-popup {
    display: block;
} 
p {
  width: 100%;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
}
.btn button {
  width: 90px;
  height: 35px;
  background: linear-gradient(180deg, #4ed462, #4dd160, #30933f);
  color: white;
  border: none;
  border-radius: 16px;
  margin-top: -10px;
}

.btn:hover {
    opacity: 0.9;
}
/* 禁用样式 */
.disbaled-end {
  cursor: not-allowed;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 10px 15px 0 15px;
  background: rgba(224, 224, 224, 0.2);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(224, 224, 224, 0.2);
  z-index: 100;
  display: none;
}

/* 礼包状态的样式 */
.gift-status {
  position: absolute;
  right: 0;
  top: 0;
  padding: 3px 5px;
  height: 30px;
  background-color: #363636;
  border-radius: 0 16px 0 16px;
  color: #ffec8d;
}

/* 礼包弹框样式 */
.gift-model {
  width: 500px;
  height: 150px;
  background:#142a18;
  margin: 0 auto;
  border-radius: 16px;
  padding: 10px 20px;
  display: none;
}
.gift-model .gift-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gift-model .gift-header .left {
  font-size: 20px;
}
.gift-model .gift-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.gift-model .gift-content span {
  width: 100%;
  font-size: 18px;
  color: #e5e5e5;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin: 15px 0;
}
.gift-model .gift-content button {
  font-size: 16px;
  border-radius: 16px;
  height: 30px;
  border: none;
  background: linear-gradient(180deg, #4ed462, #4dd160, #30933f);
  
}

@media screen and (max-width: 992px) {
  .gift {
    width: 100%;
    padding: 0 20px;
  } 
  .gift .gift-content {
    display: grid;
    grid-template-columns: repeat(1,minmax(0, 1fr));
  }
  .gift .gift-content .gift-card {
    position: relative;
  }
  .gift-popup {
    opacity: 0;
  }
  .gift-model {
    width: 100%;
    height: 150px;
  }
}


