/* Seller pricing and compact administration. Scoped to the commercial module. */
.seller-pricing-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.seller-pricing-heading h2{margin:6px 0}.seller-pricing-heading p,.tier-explanation p{color:var(--muted)}
.tier-table{border:1px solid var(--border);border-radius:16px;overflow:hidden}.tier-table-head,.tier-table-row{display:grid;grid-template-columns:1fr 1fr .8fr 1fr;gap:16px;padding:16px;align-items:center}.tier-table-head{background:var(--surface2);font-size:.75rem;color:var(--muted)}.tier-table-row+.tier-table-row{border-top:1px solid var(--border)}.tier-table-row small{display:none}.tier-table-row strong{color:var(--accent)}.tier-discount{display:inline-block;width:fit-content;font-style:normal;font-size:.82rem;font-weight:700;color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent);border-radius:8px;padding:4px 8px}.tier-simulator{display:grid;grid-template-columns:1fr 220px 1fr;gap:24px;align-items:center}.tier-simulator h3{margin:8px 0}.tier-simulator p{color:var(--muted);font-size:.85rem}#tier-sim-result{display:grid;gap:6px}#tier-sim-result strong{font-size:1.8rem}#tier-sim-result small,#tier-sim-result span{font-size:.8rem;color:var(--muted)}.tier-explanation{display:grid;grid-template-columns:1fr 1fr;gap:16px}.tier-explanation>div{padding:18px;display:grid;gap:8px;border:1px solid var(--border);border-radius:16px}.tier-explanation svg{color:var(--accent)}.tier-explanation p{margin:0;font-size:.85rem}.tier-empty{display:grid;justify-items:start;gap:12px}.tier-empty h3,.tier-empty p{margin:0}.tier-editor-modal{width:min(960px,96vw);max-width:960px}.tier-edit-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;border:1px solid var(--border);border-radius:14px;padding:16px;margin-bottom:12px}.tier-edit-label{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between}.tier-edit-row input{min-width:0;width:100%}.tier-publish-review{padding:16px;border:1px solid var(--accent);border-radius:16px;display:grid;gap:14px}.tier-notice-preview{padding:16px;background:var(--surface2);border-radius:12px}.tier-notice-preview p{white-space:normal;line-height:1.6}.tier-publish-review input[type=checkbox]{flex-shrink:0;width:20px!important;height:20px}.tier-publish-review label{align-items:flex-start}
.seller-history-toolbar{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;align-items:end}.seller-history-toolbar .field{margin:0;min-width:0}.seller-history-toolbar input,.seller-history-toolbar select{width:100%;min-width:0}.seller-history-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:.8rem}.seller-history-pagination>div{display:flex;align-items:center;gap:12px}.seller-orders-compact{border:1px solid var(--border);border-radius:16px;overflow:hidden}.seller-orders-compact>article{display:grid;grid-template-columns:minmax(130px,1fr) minmax(160px,1fr) minmax(110px,.7fr) auto;align-items:center;gap:16px;padding:14px 18px;background:var(--surface)}.seller-orders-compact>article+article{border-top:1px solid var(--border)}.seller-orders-compact>article>div{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}.seller-orders-compact small{font-size:.75rem;color:var(--muted)}.seller-orders-compact .pill{width:fit-content;font-size:.7rem}.seller-orders-compact>article>.seller-order-actions,.seller-order-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:flex-end}.seller-order-actions .btn{font-size:.78rem;min-height:36px}.seller-payment-groups{display:grid;gap:12px}.seller-payment-group{border:1px solid var(--border);border-radius:16px;overflow:hidden;background:var(--surface)}.seller-payment-group-head{width:100%;display:grid;grid-template-columns:44px 1fr auto 24px;gap:16px;align-items:center;text-align:left;padding:18px;color:var(--text);border:0;background:transparent;cursor:pointer}.seller-payment-group-head>span:not(.seller-admin-avatar){display:grid;gap:4px}.seller-payment-group-head small{font-size:.78rem;color:var(--muted)}.seller-payment-group-head[aria-expanded=true]{background:var(--surface2)}.seller-payment-group-body{padding:0 18px 18px}.seller-payment-group-body>.row{padding-top:12px}.seller-payment-line{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--border);padding:14px 0;margin-bottom:8px}.seller-payment-line>div:first-child{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}.seller-payment-line small{color:var(--muted);font-size:.78rem}.seller-payment-line p{margin:0;font-size:.82rem}.seller-payment-line .pill{width:fit-content;font-size:.7rem}.seller-profile-summary{padding:18px;border:1px solid var(--border);border-radius:16px;background:var(--surface2)}.seller-profile-summary>div{display:flex;align-items:center;gap:14px}.seller-profile-summary h3,.seller-profile-summary p{margin:4px 0;overflow-wrap:anywhere}.seller-profile-summary dl{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:22px 0}.seller-profile-summary dt{font-size:.78rem;color:var(--muted)}.seller-profile-summary dd{margin:5px 0 0;font-weight:650;overflow-wrap:anywhere}.seller-profile-summary details{font-size:.8rem;overflow-wrap:anywhere}
.seller-tier-buy form{display:grid;gap:16px}.seller-tier-buy input{font-size:1.3rem}#seller-tier-quote{display:grid;gap:8px;padding:20px;border-radius:16px;background:var(--surface2)}#seller-tier-quote strong{font-size:2rem}#seller-tier-quote p{margin:0}#seller-tier-quote small{color:var(--muted)}.seller-tier-options{display:grid;gap:10px}.seller-tier-option{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px;border:1px solid var(--border);border-radius:16px;background:var(--surface);color:var(--text);text-align:left}.seller-tier-option.active{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--surface))}.seller-tier-option>span{display:grid;gap:6px}.seller-tier-option>span:last-child{text-align:right}.seller-tier-option small,.seller-tier-option del{font-size:.8rem;color:var(--muted)}.seller-tier-option strong{font-size:1.15rem}
@media(max-width:1050px){.seller-orders-compact>article{grid-template-columns:1fr 1fr 1fr}.seller-orders-compact>article>.seller-order-actions{grid-column:1/-1;justify-content:flex-start}.tier-simulator{grid-template-columns:1fr 1fr}.tier-simulator>div:first-child{grid-column:1/-1}}
@media(max-width:640px){.seller-pricing-heading{align-items:stretch;flex-direction:column;gap:12px}.tier-table-head{display:none}.tier-table-row{grid-template-columns:1fr 1fr;gap:12px;padding:14px}.tier-table-row>b{grid-column:1/-1}.tier-table-row small{display:block;color:var(--muted);font-size:.7rem;margin-bottom:4px}.tier-table-row>strong{grid-column:1/-1}.tier-explanation{grid-template-columns:1fr}.tier-simulator{grid-template-columns:1fr;gap:14px}.tier-edit-row{grid-template-columns:1fr 1fr;gap:10px;padding:12px}.tier-edit-row .field{font-size:.78rem}.tier-editor-modal{width:96vw;padding:16px}.tier-editor-modal h2{font-size:1.1rem}.tier-publish-review{padding:12px}.seller-history-toolbar{grid-template-columns:1fr 1fr}.seller-history-toolbar>.field:first-child{grid-column:1/-1}.seller-history-pagination{flex-wrap:wrap;justify-content:center}.seller-history-pagination>small{width:100%;text-align:center}.seller-history-pagination>div{justify-content:center;gap:8px}.seller-orders-compact>article{grid-template-columns:1fr 1fr;gap:12px;padding:14px}.seller-orders-compact .seller-order-who{grid-column:1/-1}.seller-order-actions .btn{flex:1 1 auto}.seller-payment-group-head{grid-template-columns:36px 1fr 18px;padding:14px;gap:10px}.seller-payment-group-head>.seller-admin-avatar{width:36px;height:36px}.seller-payment-group-head>span:nth-child(3){grid-column:2;grid-row:2}.seller-payment-group-head>span:last-child{grid-column:3;grid-row:1/3}.seller-payment-line{align-items:stretch;flex-direction:column}.seller-payment-group-body{padding:0 14px 14px}.seller-payment-line .seller-order-actions{justify-content:flex-start}.seller-profile-summary{padding:14px}.seller-profile-summary dl{gap:14px}.seller-tier-option{padding:14px}}
.modal.tier-editor-modal{box-sizing:border-box;width:100%;max-width:960px;max-height:calc(100dvh - 32px);min-width:0}.tier-editor-modal>[data-body]{overflow-y:auto;min-height:0;padding-right:4px}.tier-editor-modal>[data-actions],.tier-editor-modal>.row:first-child{flex-shrink:0}.tier-editor-modal>[data-actions]{padding-top:12px;border-top:1px solid var(--border)}
@media(max-width:640px){.modal-bg:has(.tier-editor-modal){padding:12px}.modal.tier-editor-modal{max-width:100%;max-height:calc(100dvh - 24px)}.tier-editor-modal>[data-actions]>.btn{flex:1 1 110px}}
.modal.seller-profile-modal,.modal.seller-account-modal{box-sizing:border-box;width:100%;max-width:800px;max-height:calc(100dvh - 32px);min-width:0}.seller-profile-modal>[data-body],.seller-account-modal>[data-body]{overflow-y:auto;min-height:0;padding-right:4px}.seller-profile-modal>[data-actions],.seller-account-modal>[data-actions],.seller-profile-modal>.row:first-child,.seller-account-modal>.row:first-child{flex-shrink:0}.seller-profile-modal>[data-actions],.seller-account-modal>[data-actions]{padding-top:12px;border-top:1px solid var(--border)}.seller-profile-modal .seller-profile-summary dl{grid-template-columns:repeat(4,minmax(0,1fr))}.seller-profile-modal [data-actions] .btn{font-size:.8rem}.seller-profile-modal .seller-profile-summary dd{font-size:.92rem}
@media(max-width:640px){.modal-bg:has(.seller-profile-modal),.modal-bg:has(.seller-account-modal){padding:12px}.modal.seller-profile-modal,.modal.seller-account-modal{max-height:calc(100dvh - 24px);padding:16px}.seller-profile-modal .seller-profile-summary dl{grid-template-columns:1fr 1fr}.seller-profile-modal h2{font-size:1.1rem}.seller-profile-modal>[data-actions]>.btn{flex:1 1 120px}}
.seller-payment-group-head{grid-template-columns:44px minmax(0,1fr) auto 24px}.seller-payment-group-head>span,.tier-table-row>span,.tier-table-row>strong{min-width:0;overflow-wrap:anywhere}.seller-profile-summary>div>div{min-width:0}.seller-profile-modal .grid.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media(max-width:640px){.seller-payment-group-head{grid-template-columns:36px minmax(0,1fr) 18px}.seller-profile-modal .grid.two{grid-template-columns:1fr}}
