﻿.recharge-style-panel {
  background: #fff;
  padding: 10px 12px 14px;
  border-bottom: 10px solid #f4f5f8;
}

.recharge-style-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  min-height: 42px;
  margin: -10px -12px 10px;
  padding: 0 4px;
  border-bottom: 1px solid #eef0f5;
  background: #fff;
  color: #1f2d3d;
  text-align: center;
}

.recharge-style-panel .recharge-style-head {
  display: grid !important;
  visibility: visible !important;
  min-height: 42px !important;
}

.recharge-style-head strong {
  font-size: 16px;
  font-weight: 500;
}

.recharge-style-back {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #526173;
  font-size: 30px;
  font-weight: 300;
  line-height: 32px;
  cursor: pointer;
}

.recharge-style-title {
  margin: 8px 0 10px;
  color: #1f2d3d;
  font-size: 13px;
  font-weight: 600;
}

.recharge-style-account-types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.recharge-style-account {
  position: relative;
  min-height: 58px;
  padding: 8px;
  border: 1px solid #dfe5f1;
  border-radius: 6px;
  background: #fff;
  color: #263440;
  text-align: left;
}

.recharge-style-account strong,
.recharge-style-account span {
  display: block;
}

.recharge-style-account strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.recharge-style-account span {
  color: #8b98a8;
  font-size: 11px;
}

.recharge-style-account.active {
  border-color: #7b35ff;
  background: #f8f5ff;
  color: #4f1bd6;
  box-shadow: 0 0 0 1px rgba(123, 53, 255, .06);
}

.recharge-style-paytypes,
.recharge-style-channels,
.recharge-style-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 10px;
}

.recharge-style-paytype {
  position: relative;
  min-height: 62px;
  padding: 7px 4px 6px;
  border: 1px solid #e1e6f0;
  border-radius: 5px;
  background: #fff;
  text-align: center;
  color: #263440;
  box-sizing: border-box;
}

.recharge-style-paytype::before {
  content: "线上";
  position: absolute;
  left: 0;
  top: 0;
  padding: 1px 5px;
  border-radius: 4px 0 4px 0;
  background: #8dbdff;
  color: #fff;
  font-size: 10px;
  line-height: 14px;
}

.recharge-style-paytype.active,
.recharge-style-channel.active,
.recharge-style-amount.active {
  border-color: #7b35ff;
  color: #4f1bd6;
  box-shadow: 0 0 0 1px rgba(123, 53, 255, .05);
}

.recharge-style-paytype.active::after,
.recharge-style-channel.active::after,
.recharge-style-amount.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 14px 14px;
  border-color: transparent transparent #7b35ff transparent;
}

.recharge-style-icon {
  width: 28px;
  height: 28px;
  margin: 5px auto 4px;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
}

.recharge-style-icon-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.recharge-style-label {
  font-size: 12px;
  line-height: 18px;
}

.recharge-style-channel,
.recharge-style-amount {
  position: relative;
  min-height: 42px;
  padding: 5px 2px;
  border: 1px solid #dfe5f1;
  border-radius: 3px;
  background: #fff;
  color: #1f2d3d;
  text-align: center;
  box-sizing: border-box;
}

.recharge-style-channel-name {
  display: block;
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
}

.recharge-style-channel-range {
  display: block;
  margin-top: 1px;
  color: #2959d8;
  font-size: 12px;
  line-height: 15px;
}

.recharge-style-amount {
  min-height: 34px;
  line-height: 23px;
  font-size: 14px;
}

.recharge-style-custom {
  display: flex;
  align-items: center;
  height: 46px;
  margin-bottom: 12px;
  padding: 0 12px;
  border-radius: 5px;
  background: #f1f2f6;
  box-sizing: border-box;
}

.recharge-style-currency {
  margin-right: 8px;
  color: #1f2d3d;
  font-size: 16px;
}

.recharge-style-custom-input {
  flex: 1;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1f2d3d;
  font-size: 14px;
}

.recharge-style-custom-input::placeholder {
  color: #bcc4d2;
}

.recharge-style-tip {
  margin-top: 8px;
  color: #98a5b3;
  font-size: 12px;
  text-align: center;
}

.recharge-style-submit {
  display: block;
  width: 100%;
  height: 44px;
  margin: 14px 0 0;
  border: 0;
  border-radius: 4px;
  background: #1e8df5;
  color: #fff;
  font-size: 15px;
  line-height: 44px;
  text-align: center;
}

.recharge-style-submit:disabled {
  background: #9dc9f8;
}

.recharge-style-empty {
  grid-column: 1 / -1;
  padding: 14px 0;
  border: 1px dashed #dfe5f1;
  border-radius: 4px;
  color: #98a5b3;
  text-align: center;
}

.recharge-style-panel + .recharge-style-panel {
  display: none;
}

[data-recharge-style-hidden="1"] {
  display: none !important;
  visibility: hidden !important;
}

/* Keep backend-provided lottery names visible on uploaded-image cards. */
.hallPage .longbtn .longbtn-text,
.hallPage .longbtn .longbtn-name,
.hallPage .longbtn .longbtn-category {
  display: block !important;
  visibility: visible !important;
}
.lottery-room-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  background: rgba(32, 35, 48, .45) !important;
}

.lottery-room-overlay .lottery-room-panel {
  width: calc(100% - 20px) !important;
  max-width: 420px !important;
  max-height: 360px !important;
  margin: 0 10px !important;
  overflow: hidden !important;
  border-radius: 18px 18px 0 0 !important;
  background: #fff !important;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .18) !important;
}

.lottery-room-overlay .lottery-room-row {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 5px 12px !important;
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) auto 18px !important;
  align-items: center !important;
  gap: 8px !important;
  border: 0 !important;
  border-bottom: 1px solid #e7eaf1 !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

.lottery-room-overlay .lottery-room-icon {
  width: 30px !important;
  height: 30px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: linear-gradient(180deg, #d39aff, #9149df) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

.lottery-room-overlay .lottery-room-title {
  min-width: 0 !important;
  overflow: hidden !important;
  color: #27304a !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.lottery-room-overlay .lottery-room-count {
  color: #4b5263 !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

.lottery-room-overlay .lottery-room-count span {
  color: #f04455 !important;
  font-weight: 700 !important;
}

.lottery-room-overlay .lottery-room-arrow {
  color: #a7b0c2 !important;
  font-size: 20px !important;
}
