/* static/billing/billing.css - v811 BILLING & PAYMENTS, the one page (#billing-view). It sits on the Your account page's own pieces
   (.acs-page, .acs-sec, .acs-card, .acs-row) and adds only what billing needs. Buttons are light with black ink (the owner's rule). */
#billing-view .bp-mut { color: #6B7280; }
#billing-view .bp-err { color: #B42318; }
#billing-view .bp-one { grid-template-columns: 1fr; }
#billing-view .bp-btn, #bp-inv .bp-btn { min-height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid #D1D5DB; background: #fff; color: #111827;
                        font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
#billing-view .bp-btn:hover { background: #F3F4F6; }
#billing-view .bp-btn.pri, #bp-inv .bp-btn.pri { background: #9BCCF2; border-color: #9BCCF2; color: #111827; }
#billing-view .bp-btn.pri:hover { background: #86BFEA; }
#billing-view .bp-btn:disabled { opacity: .6; cursor: default; }
#billing-view .bp-btn:focus-visible, #billing-view .bp-pill:focus-visible, #billing-view .bp-input:focus-visible { outline: 2px solid #2F6FE4; outline-offset: 2px; }
#billing-view .bp-bar { display: block; height: 5px; border-radius: 999px; background: #E5E7EB; overflow: hidden; margin-top: 6px; }
#billing-view .bp-bar b { display: block; height: 100%; background: #1F4E9C; }
#billing-view .bp-bar.near b { background: #C9A040; }
#billing-view .bp-near { margin: 8px 0 0; padding: 9px 12px; border-radius: 8px; background: #FBF3E4; color: #7A5A12; font-size: 13.5px; line-height: 1.5; }
#billing-view .bp-sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; width: 100%; }
#billing-view .bp-size { display: grid; gap: 3px; align-content: start; min-width: 0; padding: 10px 12px; border: 1px solid #E5E7EB; border-radius: 10px; background: #fff; }
#billing-view .bp-size.cur { border: 2px solid #1F4E9C; }
#billing-view .bp-size .bp-tag { justify-self: start; padding: 2px 8px; border-radius: 999px; background: #E7F0FB; color: #0F2A4A; font-size: 11.5px; font-weight: 600; }
#billing-view .bp-size .bp-price { font-weight: 700; font-variant-numeric: tabular-nums; }
#billing-view .bp-size .bp-price small { font-weight: 500; color: #6B7280; }
/* v814 - the higher price, struck through, before the plan's own; the saving as a small green tag on the plan cards */
#billing-view .bp-was { font-weight: 500; color: #6B7280; text-decoration-thickness: 1.5px; }
#billing-view .bp-size .bp-price .bp-off { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: #DCFCE7; color: #14532D; font-size: 11px; font-weight: 600; vertical-align: 1px; }
#billing-view .bp-size .bp-btn { justify-self: start; margin-top: 4px; }
#billing-view .bp-due { color: #B42318; }
#billing-view .bp-input { height: 38px; width: 100%; max-width: 320px; border: 1px solid #D4D4D8; border-radius: 8px; padding: 0 12px; font: inherit;
                          background: #fff; color: inherit; }
#billing-view #bp-gstin { text-transform: uppercase; }   /* v815 - only the GSTIN is capitals; a name and an address stay as typed */
#billing-view .bp-list { padding: 14px 0 6px; }
#billing-view .bp-pills { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 0 14px; }
#billing-view .bp-pill { min-height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid #E5E7EB; background: #fff; color: #111827;
                         font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
#billing-view .bp-pill.on { background: #9BCCF2; border-color: #9BCCF2; }
#billing-view .bp-csv { margin-left: auto; border: 0; background: none; padding: 0; font: inherit; font-size: 13.5px; font-weight: 600; color: #1F4E9C;
                        text-decoration: underline; cursor: pointer; }
#billing-view .bp-facts { display: flex; gap: 22px; flex-wrap: wrap; padding: 12px 14px; }
#billing-view .bp-facts span { display: grid; gap: 1px; }
#billing-view .bp-facts small { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: #6B7280; }
#billing-view .bp-facts b { font-variant-numeric: tabular-nums; }
#billing-view .bp-table { overflow-x: auto; }
#billing-view .bp-tr { display: grid; grid-template-columns: 96px 110px minmax(0, 1fr) 110px; gap: 10px; align-items: center; min-width: 480px;
                       min-height: 38px; padding: 0 14px; border-top: 1px solid #E5E7EB; font-size: 13.5px; }
#billing-view .bp-tr > span:nth-child(3) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#billing-view .bp-th { min-height: 30px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #6B7280; }
#billing-view .bp-rcpt { margin-top: 12px; padding: 14px 18px; display: grid; gap: 6px; font-size: 14px; }
#billing-view .bp-rcpt .r { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
#billing-view .bp-rcpt .r.t { border-top: 1px solid #E5E7EB; padding-top: 6px; font-weight: 700; }
/* v994 - plan, then details, then pay: the three steps, the plan picked, who the invoice is for, and the two buttons */
#billing-view .bp-steps { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; padding: 0; }
#billing-view .bp-steps li { padding: 3px 12px; border-radius: 999px; border: 1px solid #E5E7EB; background: #fff; color: #6B7280; font-size: 13px; font-weight: 600; }
#billing-view .bp-steps li.on { border-color: #1F4E9C; color: #111827; }
#billing-view .bp-steps li.done { color: #14532D; }
#billing-view .bp-picked { margin-bottom: 14px; }
#billing-view .bp-picked small { font-weight: 500; color: #6B7280; }
#billing-view .bp-up { text-transform: uppercase; }
#billing-view .acs-row[hidden] { display: none; }   /* v995 - Outside India hides the PIN and GSTIN rows */
#billing-view .bp-pk-acts { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 560px) {
  #billing-view .acs-row { grid-template-columns: 1fr; gap: 6px; }
  #billing-view .acs-line { flex-wrap: wrap; }
  #billing-view .bp-input { max-width: none; }
  #billing-view .bp-pk-acts { flex-direction: column-reverse; }
  #billing-view .bp-pk-acts .bp-btn { width: 100%; min-height: 44px; }
}
/* v815 (5A) - the tax invoice, over the page: the invoice in a frame, Print and Close above it */
#bp-inv { position: fixed; inset: 0; z-index: 10070; background: rgba(15, 23, 42, .45); display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
#bp-inv .bp-inv-bar { width: min(820px, 100%); display: flex; justify-content: flex-end; gap: 8px; }
#bp-inv iframe { flex: 1; width: min(820px, 100%); border: 0; border-radius: 8px; background: #E9EBEF; }
#billing-view select.bp-input { background: #fff; }
