/* USDT payment drawer — shared by home.html, login.html, register.html */
body.ccp-with-payment-page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 100vh;
  overflow-x: hidden;
}
body.ccp-with-payment-page .ccp-page-with-payment {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  min-width: 0;
  position: relative;
}
body.ccp-with-payment-page .ccp-page-main {
  width: 100%;
  box-sizing: border-box;
  padding: 24px 16px 48px;
  padding-right: calc(min(400px, 42vw) + 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-overflow-scrolling: touch;
}
body.payment-collapsed.ccp-with-payment-page .ccp-page-main {
  padding-right: calc(40px * 1.25 + 20px);
}
body.ccp-with-payment-page .payment-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  max-height: 100vh;
  width: min(400px, 42vw);
  min-width: min(400px, 42vw);
  border-left: 2px solid #1e3a55;
  background: #0a0c12;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  transition: width 0.22s ease, min-width 0.22s ease, border-color 0.2s ease;
  overflow: hidden;
  z-index: 100;
  box-sizing: border-box;
}
body.payment-collapsed.ccp-with-payment-page .payment-drawer {
  width: calc(40px * 1.25);
  min-width: calc(40px * 1.25);
}
body.ccp-with-payment-page #paymentDrawer.drawer-collapsed {
  width: calc(40px * 1.25) !important;
  min-width: calc(40px * 1.25) !important;
}
#paymentDrawer.drawer-collapsed .payment-drawer-inner {
  display: none !important;
}
#paymentDrawer.drawer-collapsed .payment-strip-btn {
  display: flex !important;
}
.payment-strip-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(6px * 1.25);
  width: 100%;
  flex: 1;
  min-height: 120px;
  font-family: inherit;
  font-size: calc(10px * 1.25);
  font-weight: bold;
  cursor: pointer;
  border: 1px solid #2a4a6a;
  border-right: none;
  background: #122030;
  color: #4dd0e1;
  padding: calc(8px * 1.25) calc(4px * 1.25);
  line-height: 1.2;
}
.payment-strip-btn:hover {
  background: #00529b;
  color: #fff;
  border-color: #00aeef;
}
.payment-strip-chevron {
  font-size: calc(16px * 1.25);
  color: #00bcd4;
  line-height: 1;
}
.payment-strip-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: calc(9px * 1.25);
}
body.payment-collapsed .payment-strip-btn {
  display: flex;
}
.payment-drawer-inner {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.payment-collapsed .payment-drawer-inner {
  display: none;
}
.payment-hide-btn {
  flex-shrink: 0;
  width: 100%;
  padding: calc(8px * 1.25);
  font-family: inherit;
  font-size: calc(9px * 1.25);
  font-weight: bold;
  cursor: pointer;
  border: none;
  border-bottom: 1px solid #1e3a55;
  background: #122030;
  color: #4dd0e1;
  text-align: center;
}
.payment-hide-btn:hover {
  background: #00529b;
  color: #fff;
}
.payment-drawer-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: calc(10px * 1.25);
}

.payment-card {
  border: 2px solid #1e3a55;
  border-radius: 4px;
  background: #0a1018;
  padding: calc(14px * 1.25);
  margin-top: 0;
}
.payment-card h2 {
  color: #ffd54f;
  font-size: calc(12px * 1.25);
  margin-bottom: calc(10px * 1.25);
  text-align: center;
}
.pay-row { margin-bottom: calc(10px * 1.25); }
.pay-row label {
  display: block;
  font-size: calc(10px * 1.25);
  color: #607d8b;
  margin-bottom: 4px;
  text-align: left;
}
.pay-row input {
  width: 100%;
  font-family: inherit;
  font-size: calc(11px * 1.25);
  padding: calc(8px * 1.25);
  background: #050810;
  border: 1px solid #243548;
  color: #e0e0e0;
  border-radius: 2px;
  box-sizing: border-box;
}
.pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: calc(10px * 1.25);
  justify-content: center;
}
.pay-actions button {
  font-family: inherit;
  font-size: calc(11px * 1.25);
  font-weight: bold;
  padding: calc(8px * 1.25) calc(14px * 1.25);
  border: 1px solid #2a4a6a;
  cursor: pointer;
  background: #122030;
  color: #4dd0e1;
}
.pay-actions button.primary {
  background: #1a3a1a;
  border-color: #2e6b3a;
  color: #a5d6a7;
}
.pay-actions button:disabled { opacity: 0.45; cursor: not-allowed; }
.pay-msg {
  font-size: calc(10px * 1.25);
  margin-top: 10px;
  min-height: 1.3em;
  color: #78909c;
  text-align: center;
}
.pay-msg.ok { color: #81c784; }
.pay-msg.err { color: #e57373; }
.treasury-line {
  word-break: break-all;
  font-size: calc(10px * 1.25);
  color: #00FF88;
  background: #0d1810;
  padding: 8px;
  border: 1px dashed #2a5a3a;
  text-align: left;
}
