/* Directory account pages: sign-up, sign-in, My Listing control panel, admin.
   Builds on market.css (.abw-field, .abw-form-panel, .abw-checkbox-grid, ...) and theme.css (.abw-btn). */

.biz-wrap { max-width: 1100px; margin: 0 auto; padding: 36px 0 60px; }
.biz-wrap .abw-form-panel + .abw-form-panel { margin-top: 20px; }
.abw-form-panel { min-width: 0; overflow-wrap: anywhere; }
.biz-h2 { margin: 0 0 4px; font-size: 1.3rem; }
.biz-note { font-size: 0.8rem; color: var(--text-muted); margin: 4px 0 0; }
.biz-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.biz-forgot { text-align: center; margin: 14px 0 0; }
.biz-forgot a { color: var(--text-muted); text-decoration: underline; font-size: 0.9rem; }
.biz-plan-list { margin: 0 0 22px; padding-left: 20px; }
.biz-plan-list li { margin-bottom: 10px; color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; }
.abw-field > label.abw-checkbox-item { display: flex; }

/* buttons that only the account pages use */
.abw-btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.abw-btn-outline:hover { border-color: var(--rust); color: var(--rust); }
.abw-submit-btn { font-family: 'Barlow', sans-serif; padding: 11px 24px; font-size: 0.95rem; }
button.abw-btn { font-family: 'Barlow', sans-serif; }

/* long category list scrolls inside its box */
.biz-cats { max-height: 340px; overflow-y: auto; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* drag-and-drop photo boxes */
label.biz-dropzone { display: block; }
.biz-dropzone .biz-dz-main { display: block; font-weight: 700; color: var(--text); }
.biz-dropzone .biz-dz-sub, .biz-dropzone .biz-dz-files { display: block; color: var(--text-muted); font-size: 0.82rem; }
.biz-dropzone .biz-dz-files { color: var(--rust); font-weight: 700; margin-top: 4px; }
.abw-field { position: relative; }
.abw-field input.biz-file-input, .biz-file-input { position: absolute; left: 0; bottom: 0; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; opacity: 0; overflow: hidden; }
.abw-dropzone-previews:not(:empty) { margin-top: 10px; }

/* My Listing control panel */
.biz-control-btn { font-size: 1.15rem; padding: 12px 28px; cursor: default; }
.biz-row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status-chip { display: inline-block; padding: 4px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.status-live { background: #e3f3e8; color: #1a6b3a; }
.status-pending { background: #fbeed4; color: #7a4d0b; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 14px 0; }
.plan-card { position: relative; border: 2px solid var(--border); border-radius: 10px; background: var(--bg); padding: 14px; display: block; cursor: pointer; }
.plan-card input { position: absolute; opacity: 0; }
.plan-card strong { display: block; font-size: 1rem; }
.plan-card .price { color: var(--rust); font-weight: 800; margin: 2px 0 6px; display: block; }
.plan-card small { color: var(--text-muted); display: block; line-height: 1.35; font-size: 0.82rem; }
.plan-card.is-current { border-color: var(--gold); background: var(--bg-raised-2); cursor: default; }
.plan-card.is-locked { opacity: .55; cursor: not-allowed; }
.plan-card input:checked + .plan-body strong::before { content: "\2713  "; color: var(--rust); }
.plan-card:has(input:checked) { border-color: var(--rust); background: rgba(193, 68, 14, 0.06); }
.gal-grid { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.gal-item { width: 150px; }
.gal-item img { width: 150px; height: 120px; object-fit: cover; border: 1px solid var(--border); border-radius: 8px; display: block; }
.gal-item form { margin-top: 6px; }
.gal-item .abw-btn { padding: 5px 10px; font-size: 0.75rem; }
.biz-logo-current { max-height: 90px; max-width: 260px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; padding: 8px; background: #fff; }

/* admin */
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.biz-grid .abw-form-panel { margin-top: 0 !important; }
.biz-badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: var(--bg-raised-2); color: var(--text-muted); }
.biz-badge-live { background: #e3f3e8; color: #1a6b3a; }

/* payment-option total line */
#bTotal, #mTotal { font-weight: 700; }
