/* Axillion Marketplace theme variables.
   Override in Axillion → Marketplace settings, or let GeneratePress/site CSS variables supply fallbacks. */
:root {
  --axm-primary: var(--accent, #1e73be);
  --axm-primary-dark: color-mix(in srgb, var(--axm-primary) 82%, #000000);
  --axm-button-bg: var(--axm-primary);
  --axm-button-text: #ffffff;
  --axm-surface: var(--base-3, #ffffff);
  --axm-surface-soft: var(--base-2, #f7f8f9);
  --axm-surface-tint: color-mix(in srgb, var(--axm-primary) 7%, var(--axm-surface));
  --axm-text: var(--contrast, #222222);
  --axm-muted: var(--contrast-2, #555555);
  --axm-border: rgba(0,0,0,.14);
  --axm-border-soft: rgba(0,0,0,.08);
  --axm-shadow: rgba(0,0,0,.08);
  --axm-success-bg: #d1e7dd;
  --axm-warning-bg: #fff3cd;
  --axm-order-bg: color-mix(in srgb, var(--axm-primary) 6%, var(--axm-surface));
  --axm-category-gradient: linear-gradient(135deg, var(--axm-primary-dark), var(--axm-primary));
}

.b2b-credit-box,
.b2b-alert,
.b2b-listing-details,
.b2b-listing-card,
.b2b-listing-form,
.b2b-advertise,
.b2b-home-sections,
.b2b-single-description {
    border: 1px solid var(--axm-border);
    border-radius: 12px;
    padding: 18px;
    margin: 18px 0;
    background: var(--axm-surface);
}
.b2b-section-heading { margin-bottom: 20px; }
.b2b-section-heading h2 { margin-bottom: 6px; }
.b2b-section-heading p { margin: 0; color: var(--axm-muted); }
.b2b-credit-package { display: inline-block; margin-left: 10px; color: var(--axm-muted); }
.b2b-listing-form .b2b-category-choice,
.b2b-listing-form .b2b-promotion-choice {
    border: 1px solid var(--axm-border);
    border-radius: 10px;
    margin: 18px 0;
    padding: 14px 18px;
    background: var(--axm-surface-soft);
}
.b2b-listing-form .b2b-category-choice legend,
.b2b-listing-form .b2b-promotion-choice legend { font-size: 1.1rem; font-weight: 700; padding: 0 6px; }
.b2b-listing-form .b2b-category-choice label { margin-top: 6px; }
.b2b-listing-form .b2b-promotion-choice label { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; }
.b2b-listing-form .b2b-promotion-choice input[type="checkbox"] { flex: 0 0 auto; margin-top: 4px; }
.b2b-listing-form .b2b-category-select { min-height: 48px; border: 2px solid var(--axm-border); font-size: 1rem; }.b2b-listing-form label {
    display: block;
    font-weight: 700;
    margin: 14px 0 6px;
}
.b2b-listing-form input[type="text"],
.b2b-listing-form input[type="email"],
.b2b-listing-form input[type="url"],
.b2b-listing-form input[type="file"],
.b2b-listing-form select,
.b2b-listing-form textarea {
    width: 100%;
    max-width: 100%;
}
.b2b-form-grid,
.b2b-package-grid,
.b2b-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.b2b-button {
    display: inline-block;
    border: 0;
    border-radius: 8px;
    padding: 12px 18px;
    background: var(--axm-button-bg);
    color: var(--axm-button-text) !important;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.2;
}
.b2b-button-small { padding: 9px 12px; font-size: 14px; }
.b2b-listing-details h2,
.b2b-single-description h2 { margin-top: 0; }
.b2b-detail-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--axm-border-soft);
}
.b2b-detail-row:last-child { border-bottom: 0; }
.b2b-listing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 20px 0;
}
.b2b-listing-card {
    position: relative;
    overflow: hidden;
}
.b2b-listing-card.is-featured {
    border-color: var(--axm-button-bg);
    box-shadow: 0 8px 24px var(--axm-shadow);
}
.b2b-listing-card h3 { margin: 8px 0; font-size: 24px; }
.b2b-listing-card h3 a { text-decoration: none; }
.b2b-card-image {
    display: block;
    margin: -18px -18px 14px;
}
.b2b-card-image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}
.b2b-card-category,
.b2b-status,
.b2b-featured-badge {
    display: inline-block;
    font-size: 13px;
    border-radius: 999px;
    padding: 4px 9px;
    background: var(--axm-surface-soft);
    margin: 0 6px 8px 0;
}
.b2b-featured-badge {
    background: var(--axm-button-bg);
    color: var(--axm-button-text);
    font-weight: 700;
}
.b2b-card-company { margin: 4px 0; font-weight: 700; }
.b2b-card-location { margin: 4px 0; color: var(--axm-muted); }
.b2b-card-excerpt { margin-top: 10px; }
.b2b-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.b2b-card-link { font-weight: 700; text-decoration: none; }
.b2b-status { margin-top: 12px; }
.b2b-status-pending { background: var(--axm-warning-bg); }
.b2b-status-publish { background: var(--axm-success-bg); }
.b2b-package-card,
.b2b-section-card {
    display: block;
    border: 1px solid var(--axm-border);
    border-radius: 12px;
    padding: 20px;
    background: var(--axm-surface);
    text-decoration: none;
}
.b2b-package-card h3,
.b2b-section-card h3 { margin-top: 0; }
.b2b-package-price { font-size: 24px; font-weight: 800; margin: 10px 0; }
.b2b-section-card p { color: var(--axm-muted); margin-bottom: 0; }
.b2b-single-hero {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 24px;
    align-items: start;
    margin: 20px 0;
}
.b2b-single-company { font-size: 22px; font-weight: 800; margin: 12px 0 4px; }
.b2b-single-location { color: var(--axm-muted); margin: 0; }
.b2b-single-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}
@media (max-width: 900px) {
    .b2b-listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .b2b-single-hero { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .b2b-form-grid,
    .b2b-listing-grid,
    .b2b-detail-row,
    .b2b-package-grid,
    .b2b-section-grid {
        grid-template-columns: 1fr;
    }
}

/* v1.3.1 search/filter polish */
.b2b-search-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid var(--axm-border-soft);
  border-radius: 14px;
  background: var(--axm-surface);
}
.b2b-search-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 13px;
}
.b2b-search-form input,
.b2b-search-form select {
  width: 100%;
  min-height: 42px;
}
.b2b-search-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.b2b-results-summary {
  margin: 0 0 14px;
  font-weight: 700;
}
@media (max-width: 900px) {
  .b2b-search-form { grid-template-columns: 1fr; }
}

/* v1.4 marketplace homepage */
.b2b-marketplace-home {
  display: grid;
  gap: 34px;
}
.b2b-home-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--axm-border-soft);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--axm-surface) 0%, var(--axm-surface-soft) 100%);
}
.b2b-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--axm-surface-tint);
  font-weight: 800;
  font-size: 13px;
}
.b2b-home-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.03;
}
.b2b-home-hero p {
  font-size: 19px;
  margin: 0 0 20px;
  color: var(--axm-text);
}
.b2b-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
/* Homepage classic search and free-ad split panel */
.b2b-home-search-cta {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, .9fr);
  gap: 18px;
  align-items: stretch;
}
.b2b-home-search-panel,
.b2b-home-search-panel .b2b-search-form,
.b2b-home-search-panel input,
.b2b-home-search-panel select,
.b2b-home-search-panel .b2b-button {
  border-radius: 0;
}
.b2b-home-search-panel .b2b-search-form {
  height: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  margin: 0;
  border-color: var(--axm-border);
  box-shadow: none;
}
.b2b-home-search-panel .b2b-search-actions {
  align-self: end;
}
.b2b-home-post-ad {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  border: 2px solid var(--axm-primary-dark);
  border-radius: 0;
  background: var(--axm-primary);
  color: var(--axm-button-text) !important;
  text-decoration: none;
  box-shadow: 0 10px 24px var(--axm-shadow);
  transition: background-color .18s ease, transform .18s ease;
}
.b2b-home-post-ad:hover {
  background: var(--axm-primary-dark);
  color: var(--axm-button-text) !important;
  transform: translateY(-2px);
}
.b2b-home-post-ad:focus-visible {
  outline: 3px solid var(--axm-text);
  outline-offset: 3px;
}
.b2b-home-post-ad-kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.b2b-home-post-ad strong {
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.1;
}
.b2b-home-post-ad-copy {
  max-width: 30ch;
  line-height: 1.45;
}
.b2b-home-post-ad-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 11px 14px;
  border: 1px solid var(--axm-button-text);
  color: var(--axm-button-text);
  font-weight: 800;
}
@media (max-width: 760px) {
  .b2b-home-search-cta { grid-template-columns: 1fr; }
  .b2b-home-search-panel .b2b-search-form { grid-template-columns: 1fr; }
  .b2b-home-post-ad { min-height: 0; }
}

.b2b-home-block,
.b2b-home-cta,
.b2b-why-advertise {
  padding: 28px;
  border: 1px solid var(--axm-border-soft);
  border-radius: 18px;
  background: var(--axm-surface);
}
.b2b-category-card {
  position: relative;
  overflow: hidden;
  min-height: 145px;
}
.b2b-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px var(--axm-shadow);
}
.b2b-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--axm-surface-soft);
  font-weight: 900;
}
.b2b-why-advertise {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.b2b-why-advertise div {
  padding: 18px;
  border-radius: 14px;
  background: var(--axm-surface-soft);
}
.b2b-why-advertise strong,
.b2b-why-advertise span {
  display: block;
}
.b2b-why-advertise strong {
  margin-bottom: 8px;
  font-size: 18px;
}
.b2b-why-advertise span {
  color: var(--axm-muted);
}
.b2b-home-cta {
  text-align: center;
  background: var(--axm-primary-dark);
  color: var(--axm-button-text);
}
.b2b-home-cta h2 {
  margin-top: 0;
  color: var(--axm-button-text);
}
.b2b-home-cta p {
  color: rgba(255,255,255,.82);
}
@media (max-width: 900px) {
  .b2b-home-hero,
  .b2b-why-advertise {
    grid-template-columns: 1fr;
  }
  .b2b-home-hero {
    padding: 24px;
  }
}

.b2b-featured-empty {
    grid-column: 1 / -1;
    border: 1px dashed var(--axm-border);
    border-radius: 12px;
    padding: 22px;
    background: var(--axm-surface-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.b2b-featured-empty strong { display: block; font-size: 18px; }
.b2b-featured-empty span { color: var(--axm-muted); }

/* v1.7 category landing pages */
.b2b-category-landing-hero {
  margin: 0 0 24px;
  padding: 30px;
  border: 1px solid var(--axm-border-soft);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--axm-surface) 0%, var(--axm-surface-soft) 100%);
}
.b2b-category-landing-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.06;
}
.b2b-category-landing-hero p {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--axm-text);
  font-size: 18px;
}
.b2b-category-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}
.b2b-category-stats span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--axm-border-soft);
  border-radius: 999px;
  background: var(--axm-surface);
}
.b2b-child-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  align-items: center;
}
.b2b-child-categories a {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--axm-surface-soft);
  text-decoration: none;
  font-weight: 700;
}

/* v2.1 Business Profile + Listing Management */
.b2b-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}
.b2b-single-main { min-width: 0; }
.b2b-single-sidebar {
  position: sticky;
  top: 28px;
}
.b2b-business-card {
  border: 1px solid var(--axm-border-soft);
  border-radius: 18px;
  padding: 22px;
  background: var(--axm-surface);
  box-shadow: 0 12px 30px var(--axm-shadow);
}
.b2b-business-logo {
  margin: -4px 0 16px;
  text-align: center;
}
.b2b-business-logo img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 16px;
  background: var(--axm-surface-soft);
  padding: 8px;
}
.b2b-business-card h2 {
  margin: 0 0 8px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--axm-muted);
}
.b2b-business-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.15;
}
.b2b-business-location,
.b2b-business-address {
  margin: 8px 0;
  color: var(--axm-text);
}
.b2b-business-address {
  padding: 10px 0;
  border-top: 1px solid var(--axm-border-soft);
  border-bottom: 1px solid var(--axm-border-soft);
}
.b2b-business-links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.b2b-business-links a:not(.b2b-button) {
  font-weight: 700;
  text-decoration: none;
}
.b2b-owner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.b2b-listing-card .b2b-card-image img {
  height: 230px;
}
@media (max-width: 980px) {
  .b2b-single-layout { grid-template-columns: 1fr; }
  .b2b-single-sidebar { position: static; }
}

/* v2.2 Business Dashboard + Gallery */
.b2b-business-dashboard{display:grid;gap:24px;margin:24px 0}.b2b-dashboard-hero{display:flex;gap:22px;align-items:center;padding:24px;border:1px solid var(--axm-border-soft);border-radius:18px;background:var(--axm-surface);box-shadow:0 10px 30px var(--axm-shadow)}.b2b-dashboard-logo{width:110px;height:110px;border-radius:18px;border:1px solid var(--axm-border-soft);background:var(--axm-surface-soft);display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--axm-muted);font-weight:700}.b2b-dashboard-logo img{width:100%;height:100%;object-fit:contain}.b2b-dashboard-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.b2b-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.b2b-profile-reuse-note{padding:14px 16px;border-left:4px solid var(--axm-primary);background:var(--axm-surface-soft);border-radius:12px;margin:16px 0}.b2b-help-text{font-size:.92rem;color:var(--axm-muted);margin-top:6px}.b2b-gallery{margin:22px 0}.b2b-gallery h2{margin-bottom:12px}.b2b-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.b2b-gallery-grid a{display:block;border:1px solid var(--axm-border-soft);border-radius:14px;overflow:hidden;background:var(--axm-surface)}.b2b-gallery-grid img{width:100%;height:170px;object-fit:cover;display:block}.b2b-single-image-large img{width:100%;max-height:520px;object-fit:cover;border-radius:18px}.b2b-business-profile-form-card{padding:24px}.b2b-single-description h2{font-size:1.5rem}
@media(max-width:780px){.b2b-dashboard-hero{align-items:flex-start;flex-direction:column}.b2b-dashboard-grid{grid-template-columns:1fr}.b2b-gallery-grid{grid-template-columns:1fr 1fr}.b2b-gallery-grid img{height:140px}}

/* v2.2.1 pre-launch visual cleanup */
.b2b-single-description {
  border: 0;
  padding: 0;
  margin: 22px 0;
  background: transparent;
}
.b2b-single-description > *:first-child { margin-top: 0; }
.b2b-business-logo {
  width: 128px;
  height: 128px;
  margin: 0 auto 14px;
  border-radius: 18px;
  border: 1px solid var(--axm-border-soft);
  background: var(--axm-surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.b2b-business-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.b2b-category-card { padding-top: 0; }
.b2b-category-banner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 82px;
  margin: -20px -20px 16px;
  padding: 18px 20px;
  background: var(--axm-category-gradient);
}
.b2b-category-banner .b2b-category-icon {
  margin: 0;
  background: rgba(255,255,255,.18);
  color: var(--axm-button-text);
  font-size: 24px;
}
.b2b-category-card-business-services .b2b-category-banner { background: linear-gradient(135deg, var(--axm-primary), var(--axm-primary)); }
.b2b-category-card-business-opportunities .b2b-category-banner { background: var(--axm-category-gradient); }
.b2b-category-card-businesses-for-sale .b2b-category-banner,
.b2b-category-card-business-for-sale .b2b-category-banner { background: var(--axm-category-gradient); }
.b2b-category-card-manufacturing-raw-materials .b2b-category-banner { background: var(--axm-category-gradient); }
.b2b-category-card-jobs .b2b-category-banner { background: var(--axm-category-gradient); }
.b2b-category-card-training-events .b2b-category-banner { background: var(--axm-category-gradient); }
.b2b-current-media {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--axm-border-soft);
  border-radius: 14px;
  background: var(--axm-surface-soft);
}
.b2b-current-hero img {
  max-width: 260px;
  height: auto;
  border-radius: 12px;
  display: block;
  margin-top: 10px;
}
.b2b-current-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.b2b-current-gallery-item {
  display: block;
  padding: 8px;
  border: 1px solid var(--axm-border-soft);
  border-radius: 12px;
  background: var(--axm-surface);
  font-weight: 400 !important;
}
.b2b-current-gallery-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  margin-bottom: 8px;
}
@media(max-width:780px){.b2b-current-gallery{grid-template-columns:repeat(2,minmax(0,1fr));}.b2b-business-logo{margin-left:0;margin-right:0;}}

/* v2.2.4 Family & Friends Beta navigation fixes */
.b2b-business-shell {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 22px;
  align-items: start;
}
.b2b-business-nav {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--axm-border-soft);
  border-radius: 16px;
  background: var(--axm-surface);
  box-shadow: 0 8px 24px var(--axm-shadow);
}
.b2b-business-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}
.b2b-business-nav a:hover,
.b2b-business-nav a.is-active {
  background: var(--axm-surface-tint);
}
.b2b-business-main { min-width: 0; }
.b2b-order-next-step {
  margin: 24px 0;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--axm-border-soft);
  background: var(--axm-order-bg);
}
.b2b-order-next-step h2 { margin-top: 0; }
@media (max-width: 780px) {
  .b2b-business-shell { grid-template-columns: 1fr; }
  .b2b-business-nav { position: static; flex-direction: row; overflow-x: auto; }
  .b2b-business-nav a { white-space: nowrap; }
}

/* v2.3 Featured Listings Beta */
.b2b-boost-panel { margin: 0 0 22px; }
.b2b-boost-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.b2b-boost-panel h4 { margin: 0 0 8px; font-size: 1.15rem; }
.b2b-listing-card.is-featured::after {
  content: "★";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--axm-button-bg);
  color: var(--axm-button-text);
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 8px 20px var(--axm-shadow);
}
.b2b-home-block .b2b-listing-grid:has(.is-featured) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .b2b-home-block .b2b-listing-grid:has(.is-featured),
  .b2b-boost-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .b2b-home-block .b2b-listing-grid:has(.is-featured),
  .b2b-boost-grid { grid-template-columns: 1fr; }
}


/* v2.3.2 My Business Orders */
.b2b-orders-list {
    display: grid;
    gap: 12px;
}
.b2b-order-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto auto auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--axm-border, #dddddd);
    border-radius: 14px;
    background: var(--axm-surface-soft, #f8fafc);
}
.b2b-order-row span {
    display: block;
    color: var(--axm-muted, #667085);
    font-size: 0.9rem;
}
@media (max-width: 760px) {
    .b2b-order-row {
        grid-template-columns: 1fr;
        align-items: start;
    }
}
/* v2.4 advert lifecycle controls */
.b2b-listing-card form { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.b2b-listing-card .b2b-help-text { margin: 6px 0; }
.b2b-listing-details summary { cursor: pointer; font-weight: 700; }
.b2b-listing-details textarea { display: block; width: 100%; min-height: 110px; }
.b2b-status-draft { background: var(--axm-surface-soft); }
.b2b-status-expired { background: var(--axm-warning-bg); }
.b2b-button:focus-visible, .b2b-business-nav a:focus-visible { outline: 3px solid var(--axm-text); outline-offset: 3px; }
.page-numbers { display: inline-block; padding: 8px 12px; margin: 3px; }
.b2b-featured-hero{position:relative;width:100%;margin:0 auto 28px;color:#fff}
.b2b-featured-hero-track{width:100%;min-width:0}
.b2b-featured-hero-set{display:none;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;width:100%}
.b2b-featured-hero-set.is-active{display:grid}
.b2b-featured-hero-card{position:relative;display:block;aspect-ratio:1/1;min-width:0;overflow:hidden;border-radius:12px;background:#12365d;color:#fff!important;text-decoration:none!important;isolation:isolate}
.b2b-featured-hero-card::after{position:absolute;z-index:1;inset:25% 0 0;content:"";background:linear-gradient(180deg,transparent,rgba(7,22,40,.9))}
.b2b-featured-hero-card:hover .b2b-featured-hero-image{transform:scale(1.04)}
.b2b-featured-hero-image{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.b2b-featured-hero-copy{position:absolute;z-index:2;right:12px;bottom:12px;left:12px;display:flex;flex-direction:column;gap:5px;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.45)}
.b2b-featured-hero-copy strong{display:-webkit-box;overflow:hidden;color:#fff;font-size:clamp(13px,1.15vw,18px);font-weight:800;line-height:1.2;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.b2b-featured-hero-copy span{display:-webkit-box;overflow:hidden;color:#fff;font-size:clamp(11px,.9vw,14px);line-height:1.3;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.b2b-featured-hero-controls{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:12px}
.b2b-featured-hero-controls[hidden]{display:none}
.b2b-featured-hero-prev,.b2b-featured-hero-next,.b2b-featured-hero-dot{border:1px solid #667085;background:#fff;color:#12365d;cursor:pointer}
.b2b-featured-hero-prev,.b2b-featured-hero-next{width:34px;height:34px;border-radius:50%;font-size:22px;line-height:1}
.b2b-featured-hero-dots{display:flex;gap:7px}
.b2b-featured-hero-dot{width:9px;height:9px;padding:0;border-radius:50%}
.b2b-featured-hero-dot.is-active{background:#12365d;transform:scale(1.2)}
@media(max-width:900px){.b2b-featured-hero-set{grid-template-columns:repeat(5,minmax(150px,1fr));max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;padding-bottom:8px}.b2b-featured-hero-card{scroll-snap-align:start}}
@media(max-width:520px){.b2b-featured-hero-set{grid-template-columns:repeat(5,minmax(140px,1fr));gap:9px}.b2b-featured-hero-copy{right:9px;bottom:9px;left:9px}.b2b-featured-hero-controls{margin-top:8px}}

/* Promotion picker and live WooCommerce cart drawer */
.b2b-header-cart { display: inline-flex; align-items: center; }
.b2b-cart-open { border: 1px solid var(--axm-border); border-radius: 0; background: var(--axm-surface); color: var(--axm-text); padding: 9px 12px; cursor: pointer; font-weight: 700; }
.b2b-cart-count { display: inline-flex; min-width: 22px; height: 22px; align-items: center; justify-content: center; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: var(--axm-primary); color: var(--axm-button-text); }
.b2b-cart-backdrop { position: fixed; z-index: 99998; inset: 0; background: rgba(10,18,28,.48); }
.b2b-cart-backdrop[hidden] { display: none; }
.b2b-cart-drawer { position: fixed; z-index: 99999; top: 0; right: 0; display: flex; width: min(440px, 100vw); height: 100dvh; flex-direction: column; padding: 22px; background: var(--axm-surface); color: var(--axm-text); box-shadow: -12px 0 35px rgba(0,0,0,.2); transform: translateX(105%); transition: transform .22s ease; visibility: hidden; }
.b2b-cart-drawer.is-open { transform: translateX(0); visibility: visible; }
.b2b-cart-drawer > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--axm-border); padding-bottom: 14px; }
.b2b-cart-drawer h2 { margin: 0; font-size: 21px; }
.b2b-cart-close { border: 0; background: transparent; color: inherit; font-size: 30px; cursor: pointer; }
.b2b-cart-content { overflow: auto; flex: 1; padding: 12px 0; }
.b2b-cart-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--axm-border-soft); }
.b2b-cart-line > div { display: grid; gap: 5px; }
.b2b-cart-remove { border: 1px solid #a32626; border-radius: 0; background: transparent; color: #a32626; padding: 7px 9px; cursor: pointer; white-space: nowrap; }
.b2b-cart-subtotal { display: flex; justify-content: space-between; font-size: 18px; }
.b2b-cart-checkout { display: block; text-align: center; border-radius: 0; }
.b2b-cart-empty { padding: 24px 0; }
.b2b-promotion-dialog { width: min(680px, calc(100vw - 30px)); max-height: min(85vh, 850px); border: 1px solid var(--axm-border); border-radius: 0; padding: 24px; color: var(--axm-text); }
.b2b-promotion-dialog::backdrop { background: rgba(10,18,28,.55); }
.b2b-promotion-dialog > form { display: flex; justify-content: flex-end; }
.b2b-promotion-close { border: 1px solid var(--axm-border); border-radius: 0; background: transparent; font-size: 24px; cursor: pointer; }
.b2b-promotion-dialog h2 { margin-top: 0; }
.b2b-promotion-types { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.b2b-promotion-types label, .b2b-promotion-products label { border: 1px solid var(--axm-border); padding: 10px 12px; }
.b2b-promotion-listings { display: grid; gap: 8px; max-height: 42vh; overflow: auto; margin: 12px 0; }
.b2b-promotion-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--axm-border); padding: 9px; cursor: pointer; }
.b2b-promotion-card[hidden] { display: none; }
.b2b-promotion-card > span:last-child { display: grid; gap: 4px; }
.b2b-promotion-card small { color: var(--axm-muted); }
.b2b-promotion-thumb { width: 68px; height: 58px; flex: 0 0 68px; background: var(--axm-surface-soft); }
.b2b-promotion-thumb img { width: 100%; height: 100%; object-fit: cover; }
.b2b-promotion-products { display: grid; gap: 8px; margin-bottom: 14px; }
.b2b-promotion-products[hidden] { display: none; }
.b2b-promotion-submit { border-radius: 0; }
.b2b-promotion-message { color: #a32626; }
@media (max-width: 640px) {
  .b2b-promotion-types { flex-direction: column; }
  .b2b-cart-drawer { padding: 16px; }
}

/* Three-square Social Media Package showcase */
.b2b-social-showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; }
.b2b-social-track { position: relative; grid-column: span 2; aspect-ratio: 2 / 1; min-width: 0; }
.b2b-social-set { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; opacity: 0; visibility: hidden; transition: opacity .25s ease; }
.b2b-social-set.is-active { opacity: 1; visibility: visible; }
.b2b-social-card, .b2b-social-promo-fixed { display: flex; min-width: 0; aspect-ratio: 1 / 1; flex-direction: column; overflow: hidden; border: 1px solid var(--axm-border); border-radius: 0; background: var(--axm-surface); color: var(--axm-text); text-decoration: none; }
.b2b-social-card-image { display: block; flex: 1 1 52%; min-height: 0; overflow: hidden; background: var(--axm-surface-soft); }
.b2b-social-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.b2b-social-card-copy { display: grid; gap: 5px; padding: 12px; }
.b2b-social-card-copy strong { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.b2b-social-card-copy > span:not(.b2b-social-view) { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; color: var(--axm-muted); }
.b2b-social-view { color: var(--axm-primary); font-weight: 800; }
.b2b-social-card.is-placeholder { color: #fff; background: #114a78; }
.b2b-social-card.is-placeholder .b2b-social-card-copy > span { color: #e3f3ff; }
.b2b-social-promo-fixed { align-items: center; justify-content: center; gap: 16px; padding: 22px; text-align: center; color: #fff !important; background: linear-gradient(145deg, var(--axm-primary-dark), var(--axm-primary)); }
.b2b-social-promo-art { display: block; width: calc(100% + 44px); height: 44%; margin: -22px -22px 0; overflow: hidden; }
.b2b-social-promo-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.b2b-social-promo-fixed strong { max-width: 22ch; font-size: clamp(18px, 2vw, 26px); line-height: 1.25; }
.b2b-social-buy-button { display: inline-block; padding: 10px 22px; border: 1px solid #fff; color: #fff; font-weight: 900; }
.b2b-social-promo-fixed:hover { color: #fff !important; filter: brightness(1.08); }
@media (max-width: 760px) {
  .b2b-social-showcase { grid-template-columns: minmax(0, 1fr); }
  .b2b-social-track { grid-column: auto; aspect-ratio: auto; }
  .b2b-social-set { position: relative; display: none; grid-template-columns: 1fr; }
  .b2b-social-set.is-active { display: grid; }
}
.b2b-listing-standalone .b2b-listing-template-wrap{max-width:1200px;margin:32px auto;padding:0 20px}.b2b-listing-standalone .b2b-single-title{margin:0 0 12px;font-size:clamp(1.8rem,3vw,2.6rem);line-height:1.15}.b2b-listing-standalone .b2b-single-layout{margin:0}.b2b-listing-standalone .b2b-single-description{line-height:1.7}.b2b-listing-standalone .b2b-single-image img{display:block;width:100%;height:auto;object-fit:cover}.b2b-listing-standalone .b2b-gallery img{width:100%;aspect-ratio:1;object-fit:cover}
