/* B2B plugin — structural styles. Colours come from the active theme's tokens. */
.b2b-box {
    --b2b-primary: var(--color-theme-primary, var(--theme-primary, #4f46e5));
    --b2b-on-primary: var(--color-theme-on-primary, var(--theme-on-primary, #fff));
    --b2b-text: var(--color-theme-text, var(--theme-text, #18181b));
    --b2b-muted: var(--color-theme-muted, var(--theme-text-muted, #71717a));
    --b2b-border: var(--color-theme-border, var(--theme-border, #e4e4e7));
    --b2b-surface: var(--color-theme-surface, var(--theme-surface, #fff));
    margin-top: 1.5rem; padding: 1.5rem; border: 1px solid var(--b2b-border); border-radius: 1rem; background: var(--b2b-surface); color: var(--b2b-text); font-size: .9375rem;
}
.b2b-box * { box-sizing: border-box; }
.b2b-account { margin-top: 0; }
.b2b-box h3 { margin: 0; font-family: var(--font-title, inherit); font-size: 1.25rem; font-weight: 600; }
.b2b-box h4 { margin: 1.5rem 0 .5rem; font-size: 1rem; font-weight: 600; }
.b2b-muted { margin: .25rem 0 0; color: var(--b2b-muted); font-size: .875rem; }
.b2b-note { margin: 1rem 0 0; padding: .6rem .8rem; border-left: 3px solid var(--b2b-primary); border-radius: .4rem; background: rgba(0, 0, 0, .03); font-size: .875rem; line-height: 1.55; }
.b2b-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .75rem; margin-top: 1.25rem; }
.b2b-form .b2b-wide { grid-column: 1 / -1; }
.b2b-form label { display: flex; flex-direction: column; gap: .3rem; font-size: .8125rem; font-weight: 600; }
.b2b-form input, .b2b-form textarea, .b2b-box textarea { width: 100%; padding: .6rem .75rem; border: 1px solid var(--b2b-border); border-radius: .6rem; background: transparent; color: inherit; font: inherit; font-weight: 400; }
.b2b-error { color: #b91c1c; font-size: .8125rem; font-weight: 400; }
.b2b-button { display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1.25rem; border: 0; border-radius: 999px; background: var(--b2b-primary); color: var(--b2b-on-primary); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.b2b-button:disabled { opacity: .6; }
.b2b-link { border: 0; background: none; color: var(--b2b-muted); font: inherit; font-size: .875rem; cursor: pointer; text-decoration: underline; }
.b2b-status { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: rgba(113, 113, 122, .14); }
.b2b-status-pending, .b2b-status-requested { background: rgba(245, 158, 11, .16); color: #b45309; }
.b2b-status-approved, .b2b-status-accepted { background: rgba(16, 185, 129, .14); color: #047857; }
.b2b-status-quoted { background: rgba(14, 165, 233, .14); color: #0369a1; }
.b2b-status-rejected, .b2b-status-declined, .b2b-status-expired { background: rgba(239, 68, 68, .12); color: #b91c1c; }
.b2b-facts { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1rem; font-size: .875rem; }
.b2b-facts strong { display: block; font-size: 1rem; }
.b2b-item { margin-top: .75rem; padding: 1rem; border: 1px solid var(--b2b-border); border-radius: .75rem; }
.b2b-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.b2b-item table { width: 100%; margin-top: .5rem; border-collapse: collapse; font-size: .875rem; }
.b2b-item td { padding: .3rem 0; border-top: 1px solid var(--b2b-border); }
.b2b-item td:last-child { text-align: right; }
.b2b-old { color: var(--b2b-muted); text-decoration: line-through; margin-right: .35rem; }
.b2b-price { margin: .75rem 0; padding: .75rem 1rem; border: 1px dashed var(--b2b-primary); border-radius: .75rem; color: var(--color-theme-text, var(--theme-text, inherit)); font-size: .875rem; }
.b2b-price strong { color: var(--color-theme-primary, var(--theme-primary, #4f46e5)); font-size: 1.125rem; }
.b2b-price ul { margin: .4rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.b2b-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1rem; }
