/* iTrade plan selector - light product subscription modal. */
.itrade-ps-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.42);
  display: flex; align-items: center; justify-content: center; z-index: 99990; padding: 20px;
}
.itrade-ps-card {
  background: #fff; border-radius: 24px; max-width: 960px; width: 100%;
  padding: 26px; box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24); font-family: inherit;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.itrade-ps-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.itrade-ps-kicker { font-size: 11px; color: #d11; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 4px; font-weight: 800; }
.itrade-ps-head h2 { margin: 0; font-size: 26px; color: #111827; letter-spacing: -0.04em; }
.itrade-ps-close {
  width: 34px; height: 34px; border: 1px solid #e5e7eb; border-radius: 999px;
  background: #fff; color: #667085; font-size: 20px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.itrade-ps-close:hover { color: #d11; border-color: rgba(221, 17, 17, 0.3); }
.itrade-ps-sub { font-size: 13px; color: #667085; line-height: 1.6; margin: 8px 0 18px; max-width: 780px; }
.itrade-ps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.itrade-ps-product { border: 1px solid #e5e7eb; border-radius: 20px; background: #fbfcff; padding: 16px; }
.itrade-ps-product.is-selected { border-color: rgba(221, 17, 17, 0.28); background: #fffafa; }
.itrade-ps-product-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.itrade-ps-product-label { display: block; color: #111827; font-weight: 900; font-size: 16px; }
.itrade-ps-product-head p { margin: 5px 0 0; color: #667085; font-size: 12px; line-height: 1.5; }
.itrade-ps-product-toggle { display: inline-flex; align-items: center; gap: 7px; color: #344054; font-size: 12px; font-weight: 800; white-space: nowrap; }
.itrade-ps-product-toggle input { width: auto; }
.itrade-ps-options { display: grid; gap: 10px; }
.itrade-ps-option {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center;
  width: 100%; padding: 13px 14px; text-align: left; border: 1px solid #e5e7eb;
  border-radius: 14px; cursor: pointer; transition: 0.12s; background: #fff; color: #111827;
}
.itrade-ps-option:hover { border-color: rgba(221, 17, 17, 0.28); background: #fffafa; }
.itrade-ps-option:has(input:focus-visible) { outline: 0; box-shadow: 0 0 0 3px rgba(221, 17, 17, 0.12); border-color: #d11; }
.itrade-ps-option.is-on { border-color: #d11; background: #fff6f6; box-shadow: 0 8px 22px rgba(221, 17, 17, 0.08); }
.itrade-ps-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.itrade-ps-radio { width: 18px; height: 18px; border: 2px solid #cfd4df; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.itrade-ps-option.is-on .itrade-ps-radio { border-color: #d11; }
.itrade-ps-option.is-on .itrade-ps-radio::after { content: ''; width: 8px; height: 8px; border-radius: 999px; background: #d11; }
.itrade-ps-option-copy { min-width: 0; }
.itrade-ps-tier { display: block; font-weight: 800; font-size: 14px; color: #111827; }
.itrade-ps-price { font-weight: 900; font-size: 15px; display: block; color: #111827; justify-self: end; }
.itrade-ps-price small { color: #98a2b3; font-size: 10px; font-weight: 700; margin-left: 2px; }
.itrade-ps-tabs { display: block; margin-top: 3px; font-size: 11px; color: #667085; line-height: 1.35; }
.itrade-ps-ip {
  margin-top: 12px; padding: 12px; border: 1px solid rgba(221, 17, 17, 0.16); border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fffafa); color: #555; display: grid;
  grid-template-columns: 1fr; gap: 9px; align-items: stretch;
}
.itrade-ps-ip-copy strong { display: block; color: #111827; font-size: 12px; }
.itrade-ps-ip-copy span { display: block; margin-top: 3px; color: #667085; font-size: 11px; line-height: 1.4; }
.itrade-ps-ip-fields { display: grid; grid-template-columns: repeat(2, minmax(76px, 1fr)); gap: 8px; }
.itrade-ps-ip-fields label { color: #344054; font-size: 11px; font-weight: 800; }
.itrade-ps-ip-fields label span { display: block; margin: 0 0 4px; color: #344054; font-size: 11px; line-height: 1.2; }
.itrade-ps-ipn {
  width: 100%;
  min-height: var(--itrade-control-height, 40px);
  padding: var(--itrade-control-pad-y, 9px) var(--itrade-control-pad-x, 12px);
  border: 1px solid var(--itrade-border, #e5e7eb);
  border-radius: var(--itrade-control-radius, 10px);
  font: inherit;
  font-size: var(--itrade-control-font-size, 14px);
  line-height: var(--itrade-control-line-height, 1.35);
  background: #fff;
  color: #111827;
  box-sizing: border-box;
}
.itrade-ps-ipn:focus {
  outline: 0;
  border-color: var(--itrade-red, #d11);
  box-shadow: var(--itrade-control-focus-ring, 0 0 0 3px rgba(221, 17, 17, 0.12));
}
.itrade-ps-ip-cap { align-self: center; justify-self: start; font-size: 12px; font-weight: 900; white-space: nowrap; color: #111827; }
.itrade-ps-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; gap: 12px; padding-top: 16px; border-top: 1px solid #eef0f4; }
.itrade-ps-total { font-size: 14px; color: #1a1a2e; }
.itrade-ps-msg { margin-top: 10px; font-size: 12px; min-height: 16px; line-height: 1.5; }
.itrade-ps-msg.is-ok { color: #0a7; }
.itrade-ps-msg.is-err { color: #c12; }
.itrade-ps-msg .itrade-btn { margin: 0 4px; vertical-align: middle; }
.itrade-ps-gate-blocker { position: fixed; inset: 0; z-index: 99990; background: transparent; }

@media (max-width: 860px) {
  .itrade-ps-card { padding: 20px; max-height: calc(100vh - 32px); overflow: auto; }
  .itrade-ps-grid { grid-template-columns: 1fr; }
  .itrade-ps-ip { grid-template-columns: 1fr; align-items: stretch; }
  .itrade-ps-ip-cap { align-self: auto; justify-self: start; }
  .itrade-ps-foot { align-items: stretch; flex-direction: column; }
  .itrade-ps-pay { width: 100%; }
}
