.br-commerce{--ink:#163634;--muted:#526b64;--border:#d7e0d6;--accent:#0d5f56;--paper:#fffefa;}
.br-commerce *{box-sizing:border-box}.br-commerce body{margin:0}.br-commerce a{color:var(--accent);text-underline-offset:.2em}.br-commerce button, .br-commerce input, .br-commerce select{font:inherit}.br-commerce button:focus-visible, .br-commerce a:focus-visible, .br-commerce input:focus-visible, .br-commerce select:focus-visible, .br-commerce summary:focus-visible{outline:3px solid #168574;outline-offset:3px}
.br-commerce .bar{border-bottom:1px solid var(--border);padding:12px max(20px,calc((100% - 1100px)/2));display:flex;justify-content:space-between;align-items:center;gap:16px;background:var(--paper)}
.br-commerce .brand{display:flex;align-items:center;gap:10px;color:var(--ink);font-weight:750;text-decoration:none}.br-commerce .brand img{width:32px;height:32px;border-radius:8px}
.br-commerce main{max-width:1144px;margin:auto;padding:36px 22px 64px}.br-commerce .heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:23px}.br-commerce h1, .br-commerce h2, .br-commerce h3, .br-commerce p{margin:0}.br-commerce h1{font-family:Georgia,serif;font-size:clamp(2rem,4vw,3.35rem);line-height:1.18}.br-commerce h2{font-size:1.2rem}.br-commerce h3{font-size:1.05rem}.br-commerce p, .br-commerce small{color:var(--muted)}.br-commerce .heading p{margin-top:8px}
.br-commerce .panel, .br-commerce .product, .br-commerce .notice{background:var(--paper);border:1px solid var(--border);border-radius:16px;padding:18px;margin-bottom:16px}.br-commerce .notice{background:#e7f2ed;color:#174f43;overflow-wrap:anywhere}.br-commerce .notice.error{background:#fff1e4;color:#763916}.br-commerce .overview, .br-commerce .offers{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:12px;margin-top:12px}.br-commerce .overview .panel{margin-bottom:0}.br-commerce .overview strong{display:block;font-size:1.27rem;overflow-wrap:anywhere}.br-commerce .product{margin:0;display:grid;gap:10px;align-content:start}.br-commerce .product .choices, .br-commerce .actions, .br-commerce .subnav, .br-commerce .filters{margin-top:10px;display:flex;align-items:center;flex-wrap:wrap;gap:8px}.br-commerce .subnav{margin:0 0 16px}.br-commerce .subnav a[aria-current]{background:#e7f2ed}
.br-commerce main section+section{margin-top:22px}.br-commerce button, .br-commerce .button{border-radius:9px;border:1px solid var(--accent);padding:8px 13px;min-height:42px;background:var(--accent);color:white;cursor:pointer;font-weight:650;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;text-align:center}.br-commerce .secondary{background:var(--paper);color:var(--accent);border-color:#aec8c0}.br-commerce button:disabled{opacity:.55;cursor:wait}.br-commerce .table{overflow-x:auto;margin-top:10px}.br-commerce table{border-collapse:collapse;width:100%;text-align:left}.br-commerce th, .br-commerce td{padding:9px 10px;border-bottom:1px solid var(--border);vertical-align:middle}.br-commerce th{font-size:.85rem;color:var(--muted);white-space:nowrap}.br-commerce td{font-size:.92rem}.br-commerce td small{display:block;overflow-wrap:anywhere}.br-commerce td:last-child{text-align:right}.br-commerce tbody tr:last-child td{border-bottom:0}.br-commerce .amount{white-space:nowrap;font-variant-numeric:tabular-nums}.br-commerce .empty{padding:17px 0 0}
.br-commerce label, .br-commerce .fields{display:grid;gap:5px}.br-commerce label{font-size:.9rem;font-weight:600}.br-commerce input, .br-commerce select{padding:8px 10px;min-height:42px;border:1px solid #adc2b9;color:var(--ink);background:white;border-radius:8px;max-width:100%;min-width:0}.br-commerce label.check{display:flex;align-items:center;gap:8px;font-size:1rem}.br-commerce label.check input{min-height:auto;width:18px;height:18px}.br-commerce .fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.br-commerce .filters{align-items:end;margin:8px 0}.br-commerce .filters label:first-child{flex:1;min-width:170px}
.br-commerce details summary{cursor:pointer;font-weight:650}.br-commerce details[open] summary{margin-bottom:5px}.br-commerce dialog{max-width:min(92vw,460px);width:100%;max-height:88vh;border:1px solid var(--border);border-radius:16px;padding:20px;color:var(--ink);background:var(--paper)}.br-commerce dialog::backdrop{background:#17363365}.br-commerce dialog form{margin-top:12px}.br-commerce dialog dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:7px 14px}.br-commerce dialog dd{margin:0;overflow-wrap:anywhere}.br-commerce dialog img{width:min(230px,100%);display:block;margin:0 auto 14px}
@media(max-width:600px){.br-commerce main{padding:24px 14px}.br-commerce .bar{padding:10px 14px}.br-commerce .panel, .br-commerce .product{padding:14px}.br-commerce .fields{grid-template-columns:1fr}.br-commerce .heading{align-items:flex-start}.br-commerce .heading button{flex:none}.br-commerce th, .br-commerce td{padding:8px 7px}}

.br-commerce .state-chip{display:inline-block;white-space:nowrap;padding:3px 8px;border:1px solid var(--border);border-radius:999px;font-size:.82rem;font-weight:650;color:var(--muted);background:#f4f6f0}
.br-commerce .state-chip[data-state=paid], .br-commerce .state-chip[data-state=succeeded]{color:#175842;border-color:#c4e0d1;background:#e7f3ec}
.br-commerce .state-chip[data-state=review], .br-commerce .state-chip[data-state=pending], .br-commerce .state-chip[data-state=partial_refund]{color:#754a16;border-color:#ead8b0;background:#fff4df}
.br-commerce .state-chip[data-state=failed], .br-commerce .state-chip[data-state=expired]{color:#80453d;border-color:#edd2cb;background:#fff0e9}
.br-commerce .subnav a[aria-current=page]{background:#e7f2ed;border-color:var(--accent)}
.br-commerce .billing-overview{display:grid;grid-template-columns:1.15fr 1fr;gap:14px;margin-bottom:16px}.br-commerce .billing-overview>section{margin:0}.br-commerce .billing-overview strong{display:block;font-size:1.4rem}.br-commerce .billing-overview small{display:block}
.br-commerce .offer-prices{display:grid;gap:6px}.br-commerce .price-line, .br-commerce .continue-order, .br-commerce .section-line, .br-commerce .order-heading, .br-commerce .order-fact{display:flex;align-items:center;justify-content:space-between;gap:10px}.br-commerce .price-line strong, .br-commerce .record-amount{font-variant-numeric:tabular-nums;white-space:nowrap}.br-commerce .offer-card h3{overflow-wrap:anywhere}.br-commerce .continue-order{padding:10px 0;border-top:1px solid var(--border)}.br-commerce .continue-order:first-of-type{margin-top:12px}.br-commerce .continue-order small{display:block}.br-commerce .continue-order button{flex:none}
.br-commerce .record-list, .br-commerce .plan-list{margin-top:12px}.br-commerce .record-head, .br-commerce .record-row, .br-commerce .plan-head, .br-commerce .plan-row{display:grid;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--border)}
.br-commerce .record-head, .br-commerce .plan-head{color:var(--muted);font-size:.82rem;font-weight:650}.br-commerce .record-head, .br-commerce .record-row{grid-template-columns:minmax(110px,1.5fr) minmax(70px,.62fr) minmax(84px,.75fr) minmax(110px,1fr) minmax(86px,.78fr) minmax(76px,auto)}
.br-commerce .admin-records :is(.record-head,.record-row){grid-template-columns:minmax(105px,1.2fr) minmax(90px,1fr) minmax(68px,.6fr) minmax(84px,.7fr) minmax(106px,.68fr) minmax(74px,.64fr) minmax(76px,auto)}
.br-commerce .record-title, .br-commerce .record-member, .br-commerce .record-time{overflow-wrap:anywhere}.br-commerce .record-title small, .br-commerce .record-member small, .br-commerce .plan-prices small{display:block}.br-commerce .record-time, .br-commerce .record-gateway, .br-commerce .record-member{font-size:.88rem}.br-commerce .record-action{justify-self:end}.br-commerce .record-row:last-child, .br-commerce .plan-row:last-child{border-bottom:0}
.br-commerce .plan-head, .br-commerce .plan-row{grid-template-columns:minmax(112px,1fr) minmax(62px,.5fr) minmax(130px,1fr) minmax(70px,.55fr) minmax(85px,.62fr) minmax(160px,auto)}
.br-commerce .plan-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.br-commerce .plan-actions>*{padding-inline:8px}
.br-commerce .report-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:8px;margin-top:14px}.br-commerce .report-cell{padding:12px;background:#f0f6f1;border-radius:10px}.br-commerce .report-cell strong, .br-commerce .report-cell small{display:block}
.br-commerce .br-payment-dialog{width:min(94vw,640px);max-width:640px}.br-commerce .dialog-content{display:grid;gap:10px}.br-commerce .dialog-content form{margin:0}.br-commerce .order-heading{padding-bottom:6px;border-bottom:1px solid var(--border)}.br-commerce .order-heading>strong{font-size:1.25rem}.br-commerce .order-fact{padding:5px 0;min-width:0}.br-commerce .order-fact strong, .br-commerce .order-fact small{display:block;overflow-wrap:anywhere}.br-commerce .order-fact button{min-height:34px;padding:3px 8px;flex:none}
.br-commerce .qr-panel{display:grid;grid-template-columns:minmax(145px,.9fr) minmax(0,1fr);gap:12px;align-items:center;background:#f3f7f0;border-radius:12px;padding:10px}.br-commerce .qr-panel img{width:min(100%,200px);aspect-ratio:1;object-fit:contain;margin:0 auto}.br-commerce .payment-countdown{font-variant-numeric:tabular-nums;font-weight:750;color:var(--accent);margin-bottom:3px}
.br-commerce .rail-choice{border:0;padding:0;margin:0;min-width:0}.br-commerce .rail-choice legend{font-weight:700;margin-bottom:8px}.br-commerce .rail-option{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;border:1px solid var(--border);border-radius:8px;margin-bottom:7px;cursor:pointer}.br-commerce .rail-option input{min-height:auto;accent-color:var(--accent)}.br-commerce .rail-option:has(input:checked){border-color:var(--accent);background:#eef5ef}.br-commerce .rail-option small{display:block}
.br-commerce .event-section{border-top:1px solid var(--border);padding-top:10px}.br-commerce .event-list{display:grid;gap:10px;list-style:none;margin:8px 0 1px;padding:0}.br-commerce .event-list li{position:relative;margin-inline-start:4px;padding:0 0 0 12px;border-inline-start:2px solid #b9d3c8;overflow-wrap:anywhere}.br-commerce .event-list p, .br-commerce .event-list small{display:block}.br-commerce .plan-preview{margin:12px 0}.br-commerce .plan-preview h3{margin-bottom:5px}.br-commerce .plan-preview .product h3{margin:0}
@media(max-width:860px){
 .br-commerce .record-head, .br-commerce .plan-head{display:none}
 .br-commerce .record-row, .br-commerce .admin-records .record-row, .br-commerce .plan-row{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;border:1px solid var(--border);border-radius:10px;margin-top:8px}
 .br-commerce .record-title{grid-column:1}.br-commerce .record-amount{grid-column:2;grid-row:1;justify-self:end}.br-commerce .record-state{grid-column:2;grid-row:2;justify-self:end}
 .br-commerce .record-member, .br-commerce .record-gateway, .br-commerce .record-time{grid-column:1}.br-commerce .record-time{white-space:normal}.br-commerce .record-action{grid-column:2;grid-row:3/span 2;align-self:end}.br-commerce .record-action button{width:100%;font-size:.9rem;padding-inline:6px}
 .br-commerce .plan-row .record-title{grid-column:1/-1}.br-commerce .plan-actions{grid-column:1/-1;justify-content:flex-start}.br-commerce .plan-row .state-chip{justify-self:start}
}
@media(max-width:600px){
 .br-commerce .billing-overview{grid-template-columns:1fr;gap:8px}.br-commerce .billing-overview>.panel{padding:12px}.br-commerce .qr-panel{grid-template-columns:1fr}.br-commerce .section-line{align-items:flex-start;flex-wrap:wrap}
 .br-commerce .continue-order{flex-wrap:wrap}.br-commerce .rail-option{gap:6px}.br-commerce .qr-panel img{width:min(100%,175px)}.br-commerce .record-title strong{word-break:normal}
}

.br-commerce #ai-workspace > .subnav{margin-top:0}
.br-commerce .ai-tabs button[aria-pressed="true"]{background:#e7f2ed;border-color:#0d5f56}
.br-commerce .ai-provider-list{display:grid;gap:0;margin-top:8px}
.br-commerce .ai-provider{display:grid;grid-template-columns:minmax(100px, .38fr) minmax(0,1fr);align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid var(--border)}
.br-commerce .ai-provider:last-child{border-bottom:0}
.br-commerce .ai-provider small{overflow-wrap:anywhere}
.br-commerce .ai-pill{display:inline-block;border:1px solid var(--border);border-radius:999px;padding:3px 8px;font-size:.83rem;line-height:1.35;white-space:nowrap;color:var(--muted)}
.br-commerce .ai-pill[data-state="succeeded"]{background:#e7f2ed;color:#1a5f49;border-color:#cde1d4}
.br-commerce .ai-pill[data-state="failed"]{background:#fff0e6;color:#784323;border-color:#f0ddcb}
.br-commerce .ai-route + .ai-route{border-top:1px solid var(--border);margin-top:12px;padding-top:12px}
.br-commerce .ai-rate-fields{padding:12px 0 0}
.br-commerce .ai-rate-fields legend, .br-commerce .ai-plan-group legend{font-weight:650}
.br-commerce .ai-rate-fields, .br-commerce .ai-plan-group{border:0;padding-inline:0;margin-inline:0;min-inline-size:0}
.br-commerce .ai-plan-group{margin-top:12px;border-top:1px solid var(--border);padding-top:8px}
.br-commerce .ai-mini{margin-top:5px}
.br-commerce .ai-textarea{width:100%;min-height:120px;resize:vertical;border:1px solid #adc2b9;border-radius:9px;padding:10px;background:#fff;color:var(--ink);font:inherit}
.br-commerce .ai-wide{grid-column:1/-1}
.br-commerce .ai-sample{padding:9px 12px;border-inline-start:3px solid var(--accent);background:#edf5ef;margin:8px 0;overflow-wrap:anywhere}
.br-commerce .ai-log-list{list-style:none;padding:0;margin:10px 0 0}
.br-commerce .ai-log-item{border-top:1px solid var(--border);padding:12px 0}
.br-commerce .ai-log-item summary{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px}
.br-commerce .ai-log-item summary::-webkit-details-marker{display:none}
.br-commerce .ai-log-item summary::after{content:"▾";color:var(--accent)}
.br-commerce .ai-log-item details[open] summary::after{content:"▴"}
.br-commerce .ai-log-item summary strong, .br-commerce .ai-log-item summary small{display:block;overflow-wrap:anywhere}
.br-commerce .ai-log-item summary .amount{white-space:nowrap;margin-inline-end:5px}
.br-commerce .ai-log-item summary .ai-log-meta{display:flex;align-items:center;flex-wrap:wrap;justify-content:end;gap:6px}
.br-commerce .ai-log-id, .br-commerce .ai-call small{overflow-wrap:anywhere}
.br-commerce .ai-call{border:1px solid var(--border);border-radius:12px;padding:10px 12px;margin-top:8px}
.br-commerce .ai-call-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px}
.br-commerce .ai-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:8px;margin:8px 0 0}
.br-commerce .ai-metrics dt{color:var(--muted);font-size:.82rem}
.br-commerce .ai-metrics dd{margin:0;font-weight:650;font-variant-numeric:tabular-nums}
@media (max-width:600px){
 .br-commerce .ai-provider{grid-template-columns:1fr;gap:3px}
 .br-commerce .ai-log-item summary{grid-template-columns:minmax(0,1fr) auto;gap:5px}
 .br-commerce .ai-log-item summary .ai-log-meta{justify-content:start;grid-column:1/2;grid-row:2}
 .br-commerce .ai-log-item summary::after{grid-column:2;grid-row:1}
}

.br-commerce .ai-section-line, .br-commerce .ai-current-prompt{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.br-commerce .ai-current-prompt{justify-content:flex-start;margin:12px 0}
.br-commerce .ai-summary-stacks, .br-commerce .ai-log-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}.br-commerce .ai-summary-stacks>.panel, .br-commerce .ai-log-totals>.panel{margin:0}.br-commerce .ai-summary-stacks h3, .br-commerce .ai-route-summary small{overflow-wrap:anywhere}
.br-commerce .ai-log-totals{grid-template-columns:1.4fr repeat(3,minmax(0,1fr))}.br-commerce .ai-log-totals .panel strong, .br-commerce .ai-summary-stacks small{display:block}
.br-commerce .ai-log-totals .panel:first-child strong{font-size:1.5rem;color:var(--accent)}
.br-commerce .ai-route-summary{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:9px;align-items:center;padding:6px 0}.br-commerce .ai-route-summary small{display:block}.br-commerce .ai-route-summary>span:last-child{color:var(--accent)}
.br-commerce .ai-test-result:empty{display:none}.br-commerce .ai-test-result{margin-top:12px;padding:10px;border:1px solid var(--border);border-radius:10px}.br-commerce .ai-prompt-preview:not([hidden]){margin-top:12px}.br-commerce .ai-prompt-preview p{white-space:pre-wrap;overflow-wrap:anywhere}
.br-commerce .ai-plan-group [hidden]{display:none!important}
.br-commerce .ai-log-grid, .br-commerce .ai-log-item .ai-log-grid{display:grid;grid-template-columns:minmax(94px,.8fr) minmax(130px,1.5fr) minmax(96px,.8fr) minmax(55px,.7fr) 18px;gap:10px;align-items:center}
.br-commerce .ai-admin-grid, .br-commerce .ai-log-item .ai-admin-grid{grid-template-columns:minmax(90px,.8fr) minmax(100px,1fr) minmax(128px,1.24fr) minmax(86px,.72fr) minmax(62px,.55fr) 18px}
.br-commerce .ai-grid-head{margin-top:14px;font-size:.85rem;font-weight:650;color:var(--muted)}
.br-commerce .ai-log-item summary::after, .br-commerce .ai-log-item details[open] summary::after{content:none}.br-commerce .ai-expand{color:var(--accent)}.br-commerce .ai-log-item details[open] .ai-expand{transform:rotate(180deg)}
.br-commerce .ai-cell-feature, .br-commerce .ai-cell-member, .br-commerce .ai-cell-time{overflow-wrap:anywhere}.br-commerce .ai-cell-time, .br-commerce .ai-cell-member{font-size:.88rem}
@media(max-width:880px){.br-commerce .ai-log-totals{grid-template-columns:repeat(3,minmax(0,1fr))}.br-commerce .ai-log-totals .panel:first-child{grid-column:1/-1}}
@media(max-width:720px){
 .br-commerce .ai-grid-head{display:none}.br-commerce .ai-log-item .ai-log-grid{grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:4px 0}
 .br-commerce .ai-cell-feature{grid-row:1;grid-column:1}.br-commerce .ai-cell-tokens{grid-row:1;grid-column:2;text-align:right}
 .br-commerce .ai-cell-status{grid-row:2;grid-column:2;justify-self:end}.br-commerce .ai-cell-time{grid-row:2;grid-column:1}
 .br-commerce .ai-cell-member{grid-row:3;grid-column:1}.br-commerce .ai-expand{grid-row:3;grid-column:2;justify-self:end}
}
@media(max-width:600px){
 .br-commerce .ai-summary-stacks{grid-template-columns:1fr;gap:7px}.br-commerce .ai-summary-stacks .panel{padding:11px}.br-commerce .ai-summary-stacks .panel h3{font-size:1rem}
 .br-commerce .ai-log-totals{gap:5px}.br-commerce .ai-log-totals .panel{padding:8px}.br-commerce .ai-log-totals .panel:first-child{padding:12px}
 .br-commerce .ai-route-summary{grid-template-columns:minmax(0,1fr) auto}.br-commerce .ai-route-summary>span:last-child{grid-column:1/-1;justify-self:start;font-size:.83rem}
}

.br-commerce{min-width:0;color:var(--ink);container-type:inline-size}
.br-commerce [data-commerce-content]{min-width:0}
.br-commerce :where(.panel,.product,.offer-card){min-width:0}
.br-commerce :where(.notice)[hidden]{display:none}
.br-commerce :where(.workspace-section-heading,.heading){max-width:100%}
.br-commerce .br-payment-dialog{width:min(94vw,640px);max-width:640px;min-width:0}
#admin-body>.br-commerce .panel{margin-bottom:16px}
.profile-workspace .br-commerce .billing-overview>.panel{margin-bottom:0}
@container (max-width:725px){
 .br-commerce :is(.record-head,.plan-head,.ai-grid-head){display:none}
 .br-commerce .record-row,.br-commerce .admin-records .record-row,.br-commerce .plan-row{
  grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;border:1px solid var(--border);border-radius:10px;margin-top:8px
 }
 .br-commerce .record-title{grid-column:1}
 .br-commerce .record-amount{grid-column:2;grid-row:1;justify-self:end}
 .br-commerce .record-state{grid-column:2;grid-row:2;justify-self:end}
 .br-commerce :is(.record-member,.record-gateway,.record-time){grid-column:1}
 .br-commerce .record-action{grid-column:2;grid-row:3/span 2;align-self:end}
 .br-commerce .plan-row .record-title,.br-commerce .plan-actions{grid-column:1/-1}
 .br-commerce .plan-actions{justify-content:flex-start}
 .br-commerce .ai-log-item .ai-log-grid{grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:4px 0}
 .br-commerce .ai-cell-feature{grid-row:1;grid-column:1}
 .br-commerce .ai-cell-tokens{grid-row:1;grid-column:2;text-align:right}
 .br-commerce .ai-cell-status{grid-row:2;grid-column:2;justify-self:end}
 .br-commerce .ai-cell-time{grid-row:2;grid-column:1}
 .br-commerce .ai-cell-member{grid-row:3;grid-column:1}
 .br-commerce .ai-expand{grid-row:3;grid-column:2;justify-self:end}
}
@container (max-width:480px){
 .br-commerce .fields,.br-commerce .billing-overview,.br-commerce .ai-summary-stacks{grid-template-columns:1fr}
 .br-commerce .ai-log-totals{grid-template-columns:repeat(3,minmax(0,1fr))}
 .br-commerce .ai-log-totals .panel:first-child{grid-column:1/-1}
}

.br-book-credit { margin-block-start: 24px; }
.br-book-credit-state { display: inline-block; padding: 4px 12px; border-radius: 20px; background: #ebf3ee; color: #175c50; font-weight: 700; }
.br-book-credit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); gap: 10px; margin-block: 12px; }
.br-book-credit-stat { display: grid; gap: 4px; min-inline-size: 0; padding: 10px 12px; background: #f1f6f2; border-radius: 9px; overflow-wrap: anywhere; }
.br-book-credit-stat span { font-size: .875rem; }
.br-book-credit-stat strong { font-variant-numeric: tabular-nums; }
.br-book-credit-group { display: grid; gap: 12px; margin-block-start: 24px; padding-block-start: 18px; border-top: 1px solid #d8e2db; }
.br-book-credit-group h3, .br-book-credit-group p, .br-book-credit-card p { margin: 0; }
.br-book-credit-card { display: grid; gap: 8px; padding: 14px; border: 1px solid #d8e2db; border-radius: 10px; overflow-wrap: anywhere; }
.br-book-credit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-start: 12px; }
.br-book-credit-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 10px; align-items: end; }
.br-book-credit-fields label { display: grid; min-inline-size: 0; gap: 5px; }
.br-book-credit-fields :is(input, select) { inline-size: 100%; min-inline-size: 0; }
.br-book-credit-offer { margin-block: 12px; padding: 12px; background: #f1f6f2; border-radius: 10px; }
.br-book-credit-offer summary { cursor: pointer; font-weight: 700; }
.br-payment-dialog.br-book-credit-dialog { box-sizing: border-box; inline-size: min(540px, calc(100% - 24px)); max-block-size: calc(100dvh - 32px); padding: 16px; overflow-y: auto; border: 1px solid #c5d9cf; border-radius: 16px; color: #163a3b; background: #fffefa; }
.br-book-credit-dialog::backdrop { background: rgb(11 38 37 / 52%); }
.br-book-credit-dialog .br-book-credit-actions { justify-content: end; }
.br-book-credit-feedback { padding: 10px; background: #f1f6f2; border-radius: 8px; }

.br-commerce .billing-destination { scroll-margin-block-start: 110px; }
.br-commerce .billing-destination:focus { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Member billing workspace */
.member-billing [data-commerce-content] {
 --billing-line:#cddfd7;--billing-tint:#eaf4ee;--billing-quiet:#eff5f1;
 display:grid;gap:18px;
}
.member-billing .record-actions,.member-billing .actions { gap:8px; }
.member-billing .billing-block {
 display:grid;gap:14px;margin:0;padding:clamp(14px,3cqi,24px);
}
.member-billing .billing-block > h2 { margin:0;font-size:1.25rem; }
.member-billing .billing-block > p { color:var(--muted); }
.member-billing .billing-dashboard { display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px;min-width:0; }
.member-billing .billing-current,.member-billing .billing-balance {
 display:grid;align-content:start;gap:9px;min-width:0;
 padding:clamp(15px,3cqi,26px);border:1px solid var(--billing-line);border-radius:16px;
}
.member-billing .billing-current { background:linear-gradient(135deg,#e3f1e8,#f4f8f2); }
.member-billing .billing-balance { background:#fffefa; }
.member-billing .billing-dashboard h2 { margin:0;color:var(--muted);font-size:.91rem;line-height:1.3; }
.member-billing .billing-dashboard strong { font-size:clamp(1.4rem,4cqi,2rem);line-height:1.2;overflow-wrap:anywhere; }
.member-billing .billing-balance dl { display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0; }
.member-billing .billing-balance dt { color:var(--muted);font-size:.85rem; }
.member-billing .billing-balance dd { margin:0;font-weight:750;font-variant-numeric:tabular-nums; }
.member-billing .billing-balance dl > div + div { border-inline-start:1px solid var(--billing-line);padding-inline-start:12px; }

.member-billing .billing-pending-order,.member-billing .billing-order-row {
 display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px 16px;
 padding:12px;border:1px solid var(--billing-line);border-radius:12px;background:#fffefa;
}
.member-billing .billing-pending-order { grid-template-columns:minmax(0,1fr) auto;background:#fcf7eb;border-color:#e7dbc2; }
.member-billing .billing-pending-detail,.member-billing .billing-order-identity { display:grid;gap:3px;min-width:0;overflow-wrap:anywhere; }
.member-billing .billing-pending-detail small,.member-billing .billing-order-identity small,.member-billing .billing-price-label small { color:var(--muted); }
.member-billing .billing-pending-action,.member-billing .billing-order-total { display:grid;justify-items:end;gap:7px; }
.member-billing .billing-pending-action strong,.member-billing .billing-order-total strong { font-variant-numeric:tabular-nums; }
.member-billing .billing-pending-action button,.member-billing .billing-order-row button { min-width:0;white-space:normal;text-align:center; }

.member-billing .billing-jumps { display:flex;gap:8px;flex-wrap:wrap; }
.member-billing .billing-jumps button { font-size:.9rem;min-height:40px; }
.member-billing .billing-offer-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:12px; }
.member-billing .billing-offer {
 display:grid;grid-template-rows:auto 1fr auto auto;gap:12px;min-width:0;
 padding:15px;border:1px solid var(--billing-line);border-radius:12px;background:#fff;
}
.member-billing .billing-offer-title { display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:8px; }
.member-billing .billing-offer-title h3 { margin:0;font-size:1.06rem;overflow-wrap:anywhere; }
.member-billing .billing-offer-title small { color:var(--muted); }
.member-billing .billing-price-list,.member-billing .billing-order-list { display:grid;gap:8px;list-style:none;padding:0;margin:0; }
.member-billing .billing-price-list li {
 display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:7px 10px;
 padding:9px 10px;border-radius:9px;background:var(--billing-quiet);
}
.member-billing .billing-price-list strong { font-size:1.14rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere; }
.member-billing .billing-price-label { display:grid;gap:2px; }
.member-billing .billing-offer-actions,.member-billing .billing-history-tools { display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px; }
.member-billing .billing-offer-actions button { min-height:42px; }
.member-billing .billing-history-tools { justify-content:space-between; }
.member-billing .billing-result-count { color:var(--muted); }
.member-billing .billing-order-list[hidden] { display:none; }

.billing-benefits {
 container:billing-benefits / inline-size;
 color:#173b36;background:#fffefa;
 border:1px solid #cddfd7;border-radius:16px;
}
.member-billing .billing-benefits,.billing-benefits { padding:clamp(14px,2.5cqi,24px); }
.billing-benefits h2 { margin:0 0 14px;font-size:1.25rem; }
.billing-benefit-table { width:100%;table-layout:fixed;border-collapse:collapse;text-align:left; }
.billing-benefit-table :is(th,td) {
 padding:11px 10px;
 border-block-end:1px solid #dbe7e0;
 font-size:.92rem;
 vertical-align:top;
 overflow-wrap:anywhere;
}
.billing-benefit-table thead th { color:#15574a;background:#edf5ef; }
.billing-benefit-table thead th:first-child { width:27%; }
.billing-benefit-table thead th[data-current-plan] { background:#deeee3; }
.billing-benefit-table tbody tr:last-child>* { border-block-end:0; }
.billing-benefit-table .billing-current-label { display:block;font-size:.72rem;font-weight:600;color:#416456; }
.billing-benefit-table .billing-benefit-mobile-label { display:none; }

.billing-guest-header { margin-bottom:16px; }
.billing-guest-header h1 { margin-top:0; }
.billing-guest-header p { margin-bottom:16px; }
.member-billing .br-payment-dialog { padding:clamp(16px,4vw,26px); }
.member-billing .billing-checkout-summary { padding:12px;border-radius:10px;background:#edf5ef;color:#23574d; }
.member-billing .rail-option:has(input:checked) { border-color:var(--accent);background:#f0f7f1; }

@container (max-width:580px) {
 .member-billing .billing-dashboard { grid-template-columns:1fr; }
 .member-billing .billing-order-row,.member-billing .billing-pending-order { grid-template-columns:minmax(0,1fr) auto; }
 .member-billing .billing-order-row button { grid-column:1/-1;justify-self:start; }
 .member-billing .billing-pending-action { text-align:end; }
}
@container (max-width:340px) {
 .member-billing .billing-pending-order { grid-template-columns:minmax(0,1fr); }
 .member-billing .billing-pending-action { justify-items:start;text-align:start; }
 .member-billing .billing-order-row { grid-template-columns:minmax(0,1fr); }
 .member-billing .billing-order-total { justify-items:start; }
}
@container billing-benefits (max-width:540px) {
 .billing-benefit-table thead { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
 .billing-benefit-table tbody tr { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-block-end:1px solid #dbe7e0; }
 .billing-benefit-table tbody tr:last-child { border-block-end:0; }
 .billing-benefit-table tbody th { grid-column:1/-1;padding-bottom:0; }
 .billing-benefit-table tbody :is(th,td) { border-block-end:0; }
 .billing-benefit-table .billing-benefit-mobile-label { display:block;color:#42685a;font-weight:700; }
}
