form#geodirectory-add-post .cnjrly-credits {
  margin: 1.5rem 0;
  border: 0;
  padding: 0;
}
form#geodirectory-add-post .cnjrly-credits__group { position: relative; margin: 1.1rem 0; padding: 1rem 1.15rem; border: 1px solid #ddd4e7; border-radius: .45rem; background: #fff; }
form#geodirectory-add-post .cnjrly-credits__group h3 { margin: 0 0 .35rem; color: #4c187e; font-size: 1.05rem; font-weight: 600; }
form#geodirectory-add-post .cnjrly-credits__group p { margin: .25rem 0 .65rem; }
form#geodirectory-add-post .cnjrly-credits__group .cnjrly-credits__count { color: #61586a; font-size: .88rem; }
form#geodirectory-add-post .cnjrly-credits__group > label { display: block; margin: .65rem 0 .4rem; color: #4c187e; }
form#geodirectory-add-post .cnjrly-credits__search[type="search"] { padding-left: 2.25rem; }
form#geodirectory-add-post .cnjrly-credits__selected { display: flex; flex-wrap: wrap; gap: .45rem; margin: .3rem 0; }
form#geodirectory-add-post .cnjrly-credits__chip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .45rem; border: 1px solid #ddd4e7; border-radius: .35rem; background: #fff; }
form#geodirectory-add-post .cnjrly-credits__chip img { width: 30px; height: 24px; object-fit: contain; }
form#geodirectory-add-post .cnjrly-credits__chip button { border: 0; background: none; color: #4c187e; font-size: 1.2rem; line-height: 1; cursor: pointer; }
form#geodirectory-add-post .cnjrly-credits__results { position: relative; z-index: 3; background: #fff; border: 1px solid #ddd4e7; border-radius: .35rem; }
form#geodirectory-add-post .cnjrly-credits__results:empty { display: none; }
form#geodirectory-add-post .cnjrly-credits__search-status { margin-top: .4rem; color: #61586a; font-size: .88rem; }
form#geodirectory-add-post .cnjrly-credits__search-status:empty { display: none; }
form#geodirectory-add-post .cnjrly-credits__option { display: block; width: 100%; padding: .55rem .7rem; border: 0; background: #fff; color: #32114d; text-align: left; cursor: pointer; }
form#geodirectory-add-post .cnjrly-credits__option:hover,
form#geodirectory-add-post .cnjrly-credits__option:focus-visible { background: #f2eaf8; }
form#geodirectory-add-post .cnjrly-credits__suggestion { margin: 1.25rem 0 0; padding: .75rem 0 0; border-top: 1px solid #ddd4e7; }
form#geodirectory-add-post .cnjrly-credits__suggestion summary { color: #4c187e; font-weight: 400; cursor: pointer; }
form#geodirectory-add-post .cnjrly-credits__suggest-fields { display: grid; gap: .8rem; max-width: 34rem; }
form#geodirectory-add-post .cnjrly-credits__suggest-fields label { display: grid; gap: .3rem; }
form#geodirectory-add-post .cnjrly-credits__suggest-fields input[type=file] { max-width: 100%; }
form#geodirectory-add-post .cnjrly-credits__send { justify-self: start; border: 0; border-radius: .3rem; padding: .5rem .85rem; background: #4c187e; color: #fff; cursor: pointer; }
form#geodirectory-add-post .cnjrly-credits__send:disabled { opacity: .6; cursor: wait; }
form#geodirectory-add-post .cnjrly-credits__feedback { margin: 0; }
@media (max-width: 600px) { form#geodirectory-add-post .cnjrly-credits__group { padding: .85rem; } }
/* Elementor single-listing output. Avoid inline-size containment inside mobile flex layouts. */
.cnjrly-credit-logos { display: flow-root; width: 100%; height: auto; }
.cnjrly-credit-logos > h2 { margin: 0 0 1rem; }
.cnjrly-credit-logos__group { display: flow-root; height: auto; margin: 0; }
.cnjrly-credit-logos__group + .cnjrly-credit-logos__group { margin-top: 2.125rem; }
.cnjrly-credit-logos__group > h3,
.cnjrly-credit-logos__group--professional_memberships > h2 { margin: 0 0 .875rem; padding: 0 0 .5rem; border-bottom: 1px solid rgba(76, 24, 126, .12); }
.cnjrly-credit-logos .cnjrly-credit-logos__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: max-content; align-content: start; align-items: start; gap: .8rem; height: auto; list-style: none; margin: 0; padding: 0; }
.cnjrly-credit-logos__item { display: flex; min-width: 0; min-height: 0; flex-direction: column; align-items: center; gap: .45rem; text-align: center; }
.cnjrly-credit-logos__image { display: flex; box-sizing: border-box; width: 100%; height: 88px; flex: none; align-items: center; justify-content: center; overflow: hidden; padding: .5rem; border: 1px solid var(--cj-border-light, #e6e7eb); border-radius: var(--cj-radius-input, 10px); background: #fff; }
/* More specific than Elementor's later `.elementor img { height: auto; }` rule. */
.cnjrly-credit-logos .cnjrly-credit-logos__image img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.cnjrly-credit-logos__name { max-width: 100%; overflow-wrap: anywhere; font-size: .8rem; line-height: 1.3; }
@media (min-width: 360px) { .cnjrly-credit-logos .cnjrly-credit-logos__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 500px) { .cnjrly-credit-logos .cnjrly-credit-logos__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cnjrly-credit-logos .cnjrly-credit-logos__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .cnjrly-credit-logos__image { height: 72px; padding: .35rem; }
}

/* Shared repeatable request rows; scoped to the listing suggestion form. */
form#geodirectory-add-post .cnjrly-credits__batch-rows { display: grid; gap: .8rem; }
form#geodirectory-add-post .cnjrly-credits__batch-row { display: grid; gap: .55rem; padding: .75rem; border: 1px solid #ddd4e7; border-radius: .35rem; }
form#geodirectory-add-post .cnjrly-credits__add-entry,
form#geodirectory-add-post .cnjrly-credits__remove-entry { justify-self: start; border: 1px solid #4c187e; border-radius: .3rem; padding: .4rem .65rem; background: #fff; color: #4c187e; cursor: pointer; }
form#geodirectory-add-post .cnjrly-credits__add-entry:disabled { opacity: .6; cursor: not-allowed; }
form#geodirectory-add-post .cnjrly-credits__remove-entry[hidden] { display: none; }

/* Owner-controlled logo order; scoped to selected chips in the GD edit form. */
form#geodirectory-add-post .cnjrly-credits__chip { position: relative; }
form#geodirectory-add-post .cnjrly-credits__drag-handle {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; min-height: 32px; padding: 0 2px; border: 0; background: transparent;
  color: #4c187e; font-size: 1.25rem; cursor: grab; touch-action: none; user-select: none;
}
form#geodirectory-add-post .cnjrly-credits__drag-handle:active { cursor: grabbing; }
form#geodirectory-add-post .cnjrly-credits__drag-handle:focus-visible { outline: 2px solid #4c187e; outline-offset: 2px; }
form#geodirectory-add-post .cnjrly-credits__chip--dragging { opacity: .65; border-color: #4c187e; background: #f5eefb; }

/* Editorial credits: show stacked rows when appearance/article links exist. */
.cnjrly-credit-logos__grid--stack{display:flex!important;flex-direction:column;gap:14px}
.cnjrly-credit-logos__grid--stack .cnjrly-credit-logos__item{display:flex;align-items:flex-start;gap:18px;width:100%;max-width:none;text-align:left}
.cnjrly-credit-logos__grid--stack .cnjrly-credit-logos__image{flex:0 0 110px;max-width:110px}
.cnjrly-credit-logos__links{list-style:none;padding:0;margin:8px 0 0}
.cnjrly-credit-logos__links li{margin:0 0 6px}
.cnjrly-credits__link-source{border:1px solid #ddd;border-radius:6px;padding:12px;margin:10px 0}
.cnjrly-credits__link-row{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;margin:8px 0}
.cnjrly-credits__link-row input{min-width:0;width:100%}
@media(max-width:600px){.cnjrly-credits__link-row{grid-template-columns:1fr}.cnjrly-credit-logos__grid--stack .cnjrly-credit-logos__image{flex-basis:85px;max-width:85px}}

/* 0.5.22 — Editorial hierarchy in the Magicians listing editor only. */
form#geodirectory-add-post .cnjrly-credits { margin-top: 2rem; }
form#geodirectory-add-post .cnjrly-credits > .cnjrly-credits__intro {
  margin: 0 0 1.1rem; color: var(--cj-text-secondary, #62636a);
  font-size: .875rem; line-height: 1.5;
}
form#geodirectory-add-post .cnjrly-credits__group {
  margin: 0 0 .85rem; padding: 1rem 1.15rem;
  border-color: var(--cj-border-light, #e2dce8); background: var(--cj-surface-primary, #fff);
}
form#geodirectory-add-post .cnjrly-credits__group > h3 {
  margin: 0 0 .25rem; font-family: var(--cj-heading-font-family, inherit);
  font-size: var(--cj-heading-h5-size, 1.125rem); font-weight: 500; line-height: 1.35;
  color: var(--cj-text-primary, #242424);
}
form#geodirectory-add-post .cnjrly-credits__group > p:not(.cnjrly-credits__count):not(.cnjrly-credits__link-hint) {
  color: var(--cj-text-secondary, #62636a); font-size: .8125rem; line-height: 1.45;
}
form#geodirectory-add-post .cnjrly-credits__group > label.cnjrly-credits__add-label {
  display: block; margin: .9rem 0 .35rem;
  font-size: 1rem; font-weight: 400; line-height: 1.45;
  color: var(--cj-indigo, #4c187e);
}
form#geodirectory-add-post .cnjrly-credits__group .cnjrly-credits__count {
  font-size: .75rem; color: var(--cj-text-secondary, #62636a);
}
@media (max-width: 600px) {
  form#geodirectory-add-post .cnjrly-credits__group { padding: .85rem; }
}

/* 0.5.23 — Match the actual theme H4/H5 hierarchy, overriding the smaller
   legacy credit headings and Bootstrap legend defaults only inside this form. */
form#geodirectory-add-post fieldset.cnjrly-credits section.cnjrly-credits__group > h3,
.geodir-add-listing.bsui form#geodirectory-add-post fieldset.cnjrly-credits section.cnjrly-credits__group > h3 {
  font-family: var(--cj-heading-font-family, "IBM Plex Sans Condensed", sans-serif) !important;
  font-size: var(--cj-heading-h5-size, 18px) !important;
  font-weight: var(--cj-heading-font-weight, 500) !important;
  line-height: var(--cj-heading-line-height-tight, 1.3) !important;
  color: var(--cj-text-primary, #242424) !important;
  margin: 0 0 .3rem !important;
}
form#geodirectory-add-post fieldset.cnjrly-credits section.cnjrly-credits__group > label.cnjrly-credits__add-label {
  color: var(--cj-indigo, #4c187e) !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
}

/* 0.5.26 — retain the selected-logo surface for empty groups with a quiet,
   category-specific empty state. :empty follows the existing JS chip renderer. */
.geodir-add-listing.bsui form#geodirectory-add-post fieldset.cnjrly-credits .cnjrly-credits__selected:empty {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px !important;
  margin: .3rem 0 !important;
  padding: .65rem .8rem !important;
  border-radius: var(--cj-radius-input, 10px);
  background: #eeecf0 !important;
}
.geodir-add-listing.bsui form#geodirectory-add-post fieldset.cnjrly-credits .cnjrly-credits__selected:empty::before {
  content: "No entries added yet";
  color: var(--cj-text-secondary, #62646a);
  font-family: var(--cj-font-sans, "IBM Plex Sans", sans-serif);
  font-size: .8125rem;
  line-height: 1.4;
  font-weight: 400;
}
.geodir-add-listing.bsui form#geodirectory-add-post fieldset.cnjrly-credits .cnjrly-credits__group[data-use="clients_include"] .cnjrly-credits__selected:empty::before { content: "No clients added yet"; }
.geodir-add-listing.bsui form#geodirectory-add-post fieldset.cnjrly-credits .cnjrly-credits__group[data-use="as_seen_on"] .cnjrly-credits__selected:empty::before { content: "No appearances added yet"; }
.geodir-add-listing.bsui form#geodirectory-add-post fieldset.cnjrly-credits .cnjrly-credits__group[data-use="as_seen_at"] .cnjrly-credits__selected:empty::before { content: "No venues or events added yet"; }
.geodir-add-listing.bsui form#geodirectory-add-post fieldset.cnjrly-credits .cnjrly-credits__group[data-use="covered_by"] .cnjrly-credits__selected:empty::before { content: "No publications added yet"; }
.geodir-add-listing.bsui form#geodirectory-add-post fieldset.cnjrly-credits .cnjrly-credits__group[data-use="professional_memberships"] .cnjrly-credits__selected:empty::before { content: "No memberships added yet"; }
/* An appearance/article link hint is relevant only after a logo is selected. */
.geodir-add-listing.bsui form#geodirectory-add-post fieldset.cnjrly-credits .cnjrly-credits__group:has(> .cnjrly-credits__selected:empty) > .cnjrly-credits__link-hint {
  display: none !important;
}
.geodir-add-listing.bsui form#geodirectory-add-post fieldset.cnjrly-credits .cnjrly-credits__link-hint {
  color: var(--cj-text-secondary, #62646a) !important;
  font-family: var(--cj-font-sans, "IBM Plex Sans", sans-serif);
  font-size: .8125rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  margin: .5rem 0 .75rem !important;
}
/* Secondary disclosures use the common understated action style. */
.geodir-add-listing.bsui form#geodirectory-add-post fieldset.cnjrly-credits .cnjrly-credits__suggestion > summary {
  font-size: .8125rem !important;
  font-weight: 400 !important;
  color: var(--cj-link, #4c187e) !important;
}
.geodir-add-listing.bsui form#geodirectory-add-post fieldset.cnjrly-credits .cnjrly-credits__send {
  border-radius: var(--cj-radius-btn, 10px) !important;
}

/* 0.5.28 — Credit search labels are form field labels, not subsection titles.
   Mirror the editor's indigo label role without touching category headings,
   subordinate suggestion actions, or search/selection functionality. */
.geodir-add-listing.bsui form#geodirectory-add-post fieldset.cnjrly-credits section.cnjrly-credits__group > label.cnjrly-credits__add-label {
  display: block;
  margin: .9rem 0 .35rem;
  font-family: var(--cj-font-sans, "IBM Plex Sans", sans-serif) !important;
  font-size: 1rem !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
  color: var(--cj-indigo, #4c187e) !important;
}

/* UI Core v1 button adapters. Do not restyle chip remove or drag handles. */
.geodir-add-listing.bsui form#geodirectory-add-post fieldset.cnjrly-credits :is(.cnjrly-credits__send, .cnjrly-credits__add-entry, .cnjrly-credits__remove-entry).cj-btn {
  box-sizing: border-box !important;
  height: var(--cj-btn-height) !important;
  min-height: var(--cj-btn-height) !important;
  padding: calc(var(--cj-btn-padding-y) + 2 * var(--cj-btn-optical-nudge, 0px)) var(--cj-btn-padding-x) var(--cj-btn-padding-y) !important;
  border-radius: var(--cj-btn-radius) !important;
  font-family: var(--cj-btn-font-family) !important;
  font-size: var(--cj-btn-font-size) !important;
  font-weight: var(--cj-btn-font-weight) !important;
  line-height: var(--cj-btn-line-height) !important;
}
.geodir-add-listing.bsui form#geodirectory-add-post fieldset.cnjrly-credits :is(.cnjrly-credits__add-entry, .cnjrly-credits__remove-entry).cj-btn-sm {
  height: var(--cj-btn-height-sm) !important;
  min-height: var(--cj-btn-height-sm) !important;
  padding: calc(var(--cj-btn-padding-y-sm) + 2 * var(--cj-btn-optical-nudge, 0px)) var(--cj-btn-padding-x-sm) var(--cj-btn-padding-y-sm) !important;
  font-size: var(--cj-btn-font-size-sm) !important;
}
.geodir-add-listing.bsui form#geodirectory-add-post fieldset.cnjrly-credits .cnjrly-credits__send.cj-btn-primary {
  background: var(--cj-btn-primary-bg) !important;
  border: var(--cj-btn-border-width) solid var(--cj-btn-primary-border) !important;
  color: var(--cj-btn-primary-color) !important;
}
.geodir-add-listing.bsui form#geodirectory-add-post fieldset.cnjrly-credits .cnjrly-credits__send.cj-btn-primary:hover {
  background: var(--cj-btn-primary-hover-bg) !important;
  border-color: var(--cj-btn-primary-hover-border) !important;
}
.geodir-add-listing.bsui form#geodirectory-add-post fieldset.cnjrly-credits :is(.cnjrly-credits__add-entry, .cnjrly-credits__remove-entry).cj-btn-secondary {
  background: var(--cj-btn-secondary-bg) !important;
  border: var(--cj-btn-border-width) solid var(--cj-btn-secondary-border) !important;
  color: var(--cj-btn-secondary-color) !important;
}

/* 0.5.34 — Real SVG search icon; uses the canonical indigo token.
   Avoid pseudo-element/mask rendering and inherited input background icons. */
form#geodirectory-add-post fieldset.cnjrly-credits .cnjrly-credits__search-wrap {
  display: block;
  position: relative;
}
form#geodirectory-add-post fieldset.cnjrly-credits .cnjrly-credits__search-wrap > .cnjrly-credits__search {
  width: 100%;
  padding-left: 2.25rem;
  background-image: none !important;
}
form#geodirectory-add-post fieldset.cnjrly-credits .cnjrly-credits__search-wrap > .cnjrly-credits__search-icon {
  position: absolute;
  z-index: 2;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--cj-indigo, #4c187e);
  stroke-width: 2.2;
  stroke-linecap: round;
  pointer-events: none;
}
/* 0.5.33: all credit-request actions consume UI Core hover state tokens. */
.geodir-add-listing.bsui form#geodirectory-add-post fieldset.cnjrly-credits .cnjrly-credits__send.cj-btn-primary:hover:not(:disabled) {
  background: var(--cj-btn-primary-hover-bg) !important;
  border-color: var(--cj-btn-primary-hover-border) !important;
  color: var(--cj-btn-primary-hover-color) !important;
}
.geodir-add-listing.bsui form#geodirectory-add-post fieldset.cnjrly-credits :is(.cnjrly-credits__add-entry,.cnjrly-credits__remove-entry).cj-btn-secondary:hover:not(:disabled) {
  background: var(--cj-btn-secondary-hover-bg) !important;
  border-color: var(--cj-btn-secondary-hover-border) !important;
  color: var(--cj-btn-secondary-hover-color) !important;
}
