/* Readability fixes for standalone payment pages only. */
:root {
  --read-panel: rgba(8, 19, 33, .96);
  --read-text: #f4fbff;
  --read-accent: #22f7c8;
}

/* Cashier page */
body.ui-readable-cashier {
  min-height: 100vh;
  color: var(--read-text);
  background:
    radial-gradient(circle at 18% 12%, rgba(34, 247, 200, .14), transparent 28%),
    radial-gradient(circle at 82% 6%, rgba(78, 180, 255, .14), transparent 30%),
    #07111d !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

body.ui-readable-cashier .navBD12,
body.ui-readable-cashier .order-amount12,
body.ui-readable-cashier .PayMethod12,
body.ui-readable-cashier .immediate-pay12,
body.ui-readable-cashier .footer12 {
  width: min(1080px, calc(100% - 32px));
  color: var(--read-text);
  background: rgba(8, 19, 33, .94) !important;
  border: 1px solid rgba(102, 232, 255, .24);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

body.ui-readable-cashier .navBD12 {
  width: 100%;
  border-width: 0 0 1px;
  border-radius: 0;
}

body.ui-readable-cashier .nav12-right,
body.ui-readable-cashier .PayMethod12 h2,
body.ui-readable-cashier .order-amount12 span,
body.ui-readable-cashier .order-amount12 li,
body.ui-readable-cashier .immediate-pay12 span,
body.ui-readable-cashier .footer12,
body.ui-readable-cashier .footer12 p {
  color: var(--read-text) !important;
}

body.ui-readable-cashier .order-amount12-right strong,
body.ui-readable-cashier .immediate-pay12-right span strong {
  color: #ffdc7a !important;
  font-weight: 850;
}

body.ui-readable-cashier .PayMethod12 ul li {
  color: var(--read-text);
  background: rgba(6, 18, 31, .90);
  border-color: rgba(102, 232, 255, .26);
  border-radius: 8px;
}

body.ui-readable-cashier .PayMethod12 ul li span {
  color: var(--read-text) !important;
  font-weight: 700;
}

body.ui-readable-cashier .PayMethod12 ul li.active {
  border-color: var(--read-accent);
  box-shadow: 0 0 0 2px rgba(34, 247, 200, .18), 0 0 22px rgba(34, 247, 200, .18);
}

body.ui-readable-cashier .immediate_pay,
body.ui-readable-cashier .immediate_button {
  color: #03101a !important;
  font-weight: 850;
  background: linear-gradient(135deg, #22f7c8, #4eb4ff) !important;
  border-radius: 8px;
}

body.ui-readable-cashier .mt_agree,
body.ui-readable-cashier .pay_sure12 {
  background: rgba(0, 0, 0, .66) !important;
}

body.ui-readable-cashier .mt_agree .mt_agree_main,
body.ui-readable-cashier .pay_sure12 .pay_sure12-main {
  color: var(--read-text) !important;
  background: rgba(6, 18, 31, .98) !important;
  border: 1px solid rgba(102, 232, 255, .32);
  border-radius: 8px;
}

body.ui-readable-cashier .mt_agree h2,
body.ui-readable-cashier .mt_agree p,
body.ui-readable-cashier .pay_sure12-main h2,
body.ui-readable-cashier .pay_sure12-main h3,
body.ui-readable-cashier .pay_sure12-main p,
body.ui-readable-cashier .pay_sure12-main .h3-01 {
  color: var(--read-text) !important;
}

/* Mobile pay page */
body.ui-readable-paypage {
  color: var(--read-text);
  background:
    radial-gradient(circle at 15% 8%, rgba(34, 247, 200, .14), transparent 34%),
    #07111d !important;
}

body.ui-readable-paypage .content,
body.ui-readable-paypage .set_amount,
body.ui-readable-paypage .bg_wt,
body.ui-readable-paypage .discount-box,
body.ui-readable-paypage .pop_remark,
body.ui-readable-paypage .pop_cont {
  color: var(--read-text) !important;
  background: var(--read-panel) !important;
  border: 1px solid rgba(102, 232, 255, .24);
  border-radius: 8px;
}

body.ui-readable-paypage .selTitle,
body.ui-readable-paypage .amount_title,
body.ui-readable-paypage .set_amount .amount_hd,
body.ui-readable-paypage .money,
body.ui-readable-paypage .payMoney,
body.ui-readable-paypage .remark2,
body.ui-readable-paypage .pay_suc1,
body.ui-readable-paypage .pay_suc2,
body.ui-readable-paypage .pay_suc3,
body.ui-readable-paypage .discount-box .t1,
body.ui-readable-paypage .discount-box .t2,
body.ui-readable-paypage .discount-box .t3,
body.ui-readable-paypage .have_been_set > span {
  color: var(--read-text) !important;
}

body.ui-readable-paypage .i_money,
body.ui-readable-paypage .set_amount .amount_bd .input_simu,
body.ui-readable-paypage .set_amount .amount_bd .int_place {
  color: #ffdc7a !important;
}

body.ui-readable-paypage input,
body.ui-readable-paypage textarea,
body.ui-readable-paypage .pop_remark .input_wrap input {
  color: var(--read-text) !important;
  background: rgba(3, 12, 23, .92) !important;
  border: 1px solid rgba(102, 232, 255, .30) !important;
}

body.ui-readable-paypage input::placeholder,
body.ui-readable-paypage textarea::placeholder {
  color: #b5c8da !important;
}

body.ui-readable-paypage .keyboard,
body.ui-readable-paypage .key_table td {
  color: var(--read-text) !important;
  background: rgba(8, 19, 33, .98) !important;
  border-color: rgba(102, 232, 255, .16) !important;
}

body.ui-readable-paypage .keyboard .key,
body.ui-readable-paypage .btn_white,
body.ui-readable-paypage .pop_tip {
  color: var(--read-text) !important;
}

body.ui-readable-paypage .btn_blue,
body.ui-readable-paypage .keyboard .pay_btn,
body.ui-readable-paypage .discount-box .btn {
  color: #03101a !important;
  font-weight: 850;
  background: linear-gradient(135deg, #22f7c8, #4eb4ff) !important;
}

/* WeUI result and confirmation pages */
body.ui-readable-weui {
  min-height: 100vh;
  color: var(--read-text) !important;
  background:
    radial-gradient(circle at 18% 10%, rgba(34, 247, 200, .14), transparent 34%),
    radial-gradient(circle at 84% 8%, rgba(78, 180, 255, .13), transparent 30%),
    #07111d !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

body.ui-readable-weui .page,
body.ui-readable-weui .weui-msg,
body.ui-readable-weui .weui-cells,
body.ui-readable-weui .weui-cell {
  color: var(--read-text) !important;
  background: transparent !important;
}

body.ui-readable-weui .weui-msg {
  width: min(520px, calc(100% - 28px));
  margin: 28px auto;
  padding: 34px 18px 24px;
  background: var(--read-panel) !important;
  border: 1px solid rgba(102, 232, 255, .26);
  border-radius: 8px;
  box-shadow: 0 22px 56px rgba(0, 0, 0, .34);
}

body.ui-readable-weui .weui-msg__title,
body.ui-readable-weui .weui-cell__bd,
body.ui-readable-weui .weui-cell__ft,
body.ui-readable-weui .weui-footer,
body.ui-readable-weui .weui-footer__text,
body.ui-readable-weui .weui-footer__link {
  color: var(--read-text) !important;
}

body.ui-readable-weui .weui-cell:before,
body.ui-readable-weui .weui-cells:before,
body.ui-readable-weui .weui-cells:after {
  border-color: rgba(102, 232, 255, .18) !important;
}

body.ui-readable-weui .weui-icon-success.weui-icon_msg {
  color: #22f7c8;
  font-size: 58px;
  opacity: .82;
  filter: drop-shadow(0 0 14px rgba(34, 247, 200, .18));
}

body.ui-readable-weui .weui-btn_default,
body.ui-readable-weui .weui-btn_primary {
  color: #03101a !important;
  font-weight: 850;
  background: linear-gradient(135deg, #22f7c8, #4eb4ff) !important;
  border: 0 !important;
}

@media (max-width: 768px) {
  body.ui-readable-cashier .order-amount12,
  body.ui-readable-cashier .PayMethod12,
  body.ui-readable-cashier .immediate-pay12,
  body.ui-readable-cashier .footer12 {
    width: calc(100% - 24px);
  }

  body.ui-readable-cashier .PayMethod12 ul li {
    width: calc(100% - 2px);
    box-sizing: border-box;
  }
}
