/* Compact merchant profile, and one trial counter in the top strip. */
body:not(.catalogMode) .businessProfile{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding:24px 16px;width:100%;min-height:0;height:auto}
.businessProfile>div{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;max-width:100%}
.businessProfile b{font-size:18px;line-height:1.5;overflow-wrap:anywhere}
.businessProfile .avatar{width:68px;height:68px;flex:none;border-radius:20px;display:grid;place-items:center;overflow:hidden}
.businessProfile .avatar img{width:100%;height:100%;object-fit:contain}
.businessProfile .merchantPlanBadge{margin:0;line-height:1.5;white-space:normal}
body:not(.catalogMode) .trialStatus.trialUrgent{background:#45191b;border:1px solid #e56c70;color:#ffe4e4}
body:not(.catalogMode) .trialStatus.trialUrgent button{color:#fff;background:#a12d36;border-radius:12px;padding:9px 16px}
.catalogPayments{padding:35px 0 15px;margin:30px 0 0;border-top:1px solid color-mix(in srgb,var(--ink) 15%,transparent);text-align:center}
.catalogPayments h2{font-size:18px;font-weight:500;margin:0 0 22px;color:var(--ink)}
.paymentBadgeGrid{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.paymentBadge{width:154px;min-height:76px;padding:14px 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-direction:column;background:#fff;color:#202020;border:1px solid #ddd;border-radius:14px;box-sizing:border-box;overflow:hidden;font-size:13px;font-family:Arial,Tahoma,sans-serif}
.paymentBadge img{width:108px;height:36px;object-fit:contain;display:block}
.paymentBadge svg{width:25px;height:25px}
.paymentBadge span{max-width:100%;overflow-wrap:anywhere;text-align:center;line-height:1.5}
.preset-tamara{background:#5820b0;border-color:#5820b0}
.paymentSettings h2{margin:18px 0}.paymentPresetGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:14px;margin:22px 0 30px}
.paymentPreset{display:flex;align-items:center;flex-direction:column;gap:10px;border:1px solid var(--platform-line,#444);border-radius:18px;padding:16px;cursor:pointer}.paymentPreset:has(input:checked){border-color:var(--platform-accent,#2ebcf0);background:color-mix(in srgb,var(--platform-accent,#2ebcf0) 8%,transparent)}.paymentPreset input{width:20px;height:20px;accent-color:var(--platform-accent,#2ebcf0)}
.customPaymentEditor{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:18px 0;border-top:1px solid var(--platform-line,#444)}.customPaymentEditor label:has(input:not([hidden])){flex:1;min-width:180px}.customPaymentPreview{width:120px;height:70px;border-radius:12px;background:#fff;display:grid;place-items:center;padding:10px}.customPaymentPreview img{max-width:100%;max-height:50px;object-fit:contain}.customPaymentPreview svg{color:#444;width:30px}.paymentUpload{cursor:pointer}.invoiceList{display:grid;gap:14px}.invoiceCard{border:1px solid var(--platform-line,#444);border-radius:16px;padding:18px}.invoiceCard h3{margin:0 0 10px}.invoiceCard p{margin:7px 0}.invoiceLinks{display:flex;flex-wrap:wrap;gap:16px;margin-top:12px}.invoiceLinks a{color:var(--platform-accent,#2ebcf0)}
@media(max-width:660px){body:not(.catalogMode) .businessProfile{padding:15px 12px;gap:9px}.businessProfile .avatar{width:48px;height:48px;border-radius:14px}.businessProfile b{font-size:15px}.paymentBadge{width:138px;min-height:70px}.customPaymentEditor{align-items:stretch}.customPaymentEditor label:has(input:not([hidden])){min-width:100%}}
/* Prevent a constrained sidebar from shrinking the merchant card over its contents. */
body:not(.catalogMode) .sidebar{overflow-y:auto;overscroll-behavior:contain}
body:not(.catalogMode) .sidebar>.brand,body:not(.catalogMode) .sidebar>.businessProfile,body:not(.catalogMode) .sidebar>.nav,body:not(.catalogMode) .sidebar>.sidefoot{flex-shrink:0}
body:not(.catalogMode) .sidebar>.businessProfile{height:auto;min-height:max-content;overflow:hidden}
body:not(.catalogMode) .businessProfile .avatar{border-radius:50%;background:transparent}
body:not(.catalogMode) .businessProfile .avatar img,.profileLogoEditor img{object-fit:cover;padding:0;background:transparent;display:block}
.profileLogoEditor #profileLogoPreview{border-radius:50%;background:transparent}
.referenceCatalog .catalogbar .merchantIdentity>img{width:96px;height:96px;max-width:96px;aspect-ratio:1;object-fit:cover;border-radius:0;padding:0;background:transparent}
.logoCrop{padding:16px;border:1px solid var(--platform-line,#444);border-radius:16px;margin-bottom:20px;display:grid;gap:14px}
.logoCrop h3,.logoCrop p{margin:0}.logoCrop input[type=range]{width:100%;padding:0;direction:ltr;accent-color:var(--platform-accent,#2ebcf0)}
.logoCropStage{position:relative;width:min(256px,100%);aspect-ratio:1;justify-self:center;background:repeating-conic-gradient(#8882 0% 25%,transparent 0% 50%) 50%/16px 16px;overflow:hidden}
.logoCropStage canvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab}
.logoCropStage canvas:active{cursor:grabbing}.logoCropStage>span{position:absolute;inset:0;border:1px dashed #aaa;border-radius:50%;pointer-events:none}
@media(max-width:660px){body:not(.catalogMode) .businessProfile .avatar{border-radius:50%}.referenceCatalog .catalogbar .merchantIdentity>img{width:82px;height:82px;max-width:82px}}

/* Billing presentation only; no entitlement changes. */
body:not(.catalogMode) .businessProfile .subscriptionStatusBadge{display:inline-block;position:relative;box-sizing:border-box;margin-top:8px;padding:4px 10px;border:1px solid currentColor;border-radius:999px;font-size:13px;font-weight:600;max-width:100%;white-space:normal;background:transparent}
body:not(.catalogMode) .businessProfile .subscriptionStatus-trial{color:#fff}
body:not(.catalogMode) .businessProfile .subscriptionStatus-active{color:var(--platform-tint,#70b8d0)}

.subscriptionStatusBadge svg{width:14px;height:14px;flex:0 0 14px}.productStockField small{display:block;line-height:1.6;opacity:.8;margin-top:6px}

.subscriptionStatusBadge::before{content:attr(data-label);visibility:hidden}.subscriptionBadgeContent{position:absolute;inset:4px;display:flex;align-items:center;justify-content:center;gap:4px;font-size:11px;line-height:1.2;white-space:nowrap}
