/* ------------------------------------------------------------------ */
/* Shared PC Designs admin shell — universal chrome (drop-in ready)    */
/* Same look across PCD plugins. Shared admin shell styling.           */
/* ------------------------------------------------------------------ */

/* Reset WP admin chrome to give the shell a full-bleed feel.
   Universal: matches the shared "pc-designs" parent and ANY PCD
   plugin's submenu page (body class is "pc-designs_page_{slug}"). */
body.toplevel_page_pc-designs #wpbody-content,
body[class*="pc-designs_page_"] #wpbody-content {
	padding-bottom: 40px;
}

.pcd-admin-shell {
	/* CSS variables consumed by HTML Converter content classes
	   (.pcd-admin-card, .pcd-admin-hero-card, .pcd-admin-hero-copy, etc.) — keep so the
	   plugin-specific UI continues to render. */
	--pcd-admin-bg: #eef1fb;
	--pcd-admin-surface: rgba(255, 255, 255, 0.78);
	--pcd-admin-surface-2: #ffffff;
	--pcd-admin-border: #d8deee;
	--pcd-admin-text: #1e2538;
	--pcd-admin-muted: #616b85;
	--pcd-admin-primary: #2d62df;
	--pcd-admin-radius: 16px;
	--pcd-admin-shadow: 0 12px 30px rgba(33, 54, 112, 0.12);

	margin: 16px 20px 0 0;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	color: var(--pcd-admin-text);
}

/* Header --------------------------------------------------------- */

.pcd-admin-shell .pcd-admin-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 20px;
	border-bottom: 1px solid #dcdcde;
	background: #f6f7f7;
	border-radius: 6px 6px 0 0;
	flex-wrap: wrap;
}

.pcd-admin-shell .pcd-admin-header-title {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
}

.pcd-admin-shell .pcd-admin-title {
	font-size: 18px;
	font-weight: 600;
	color: #1d2327;
}

.pcd-admin-shell .pcd-admin-badge {
	display: inline-block;
	padding: 2px 8px;
	background: #2271b1;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	border-radius: 3px;
	letter-spacing: 0.02em;
}

.pcd-admin-shell .pcd-admin-title-wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* Product switcher (only rendered when other PCD plugins exist) ----- */

.pcd-admin-shell .pcd-admin-products-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 8px;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 4px;
	cursor: pointer;
	color: inherit;
	font: inherit;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.pcd-admin-shell .pcd-admin-products-toggle:hover,
.pcd-admin-shell .pcd-admin-products-toggle:focus-visible {
	background: rgba(34, 113, 177, 0.06);
	border-color: #dcdcde;
	outline: none;
}

.pcd-admin-shell .pcd-admin-products-toggle[aria-expanded="true"] {
	background: rgba(34, 113, 177, 0.06);
	border-color: #dcdcde;
}

.pcd-admin-shell .pcd-admin-products-chevron {
	color: #50575e;
	font-size: 18px;
	width: 18px;
	height: 18px;
	transition: transform 0.15s ease;
}

.pcd-admin-shell .pcd-admin-products-toggle[aria-expanded="true"] .pcd-admin-products-chevron {
	transform: rotate(180deg);
}

.pcd-admin-shell .pcd-admin-products-list {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 60;
	min-width: 220px;
	margin: 0;
	padding: 4px 0;
	list-style: none;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}

.pcd-admin-shell .pcd-admin-products-list[hidden] {
	display: none;
}

.pcd-admin-shell .pcd-admin-products-list-title {
	padding: 6px 14px;
	border-bottom: 1px solid #f0f0f1;
	margin-bottom: 4px;
}

.pcd-admin-shell .pcd-admin-products-list-title-text {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #50575e;
}

.pcd-admin-shell .pcd-admin-products-item {
	display: block;
	padding: 8px 14px;
	color: #1d2327;
	text-decoration: none;
	font-size: 13px;
}

.pcd-admin-shell .pcd-admin-products-item:hover,
.pcd-admin-shell .pcd-admin-products-item:focus-visible {
	background: #f6f7f7;
	color: #2271b1;
	outline: none;
}

.pcd-admin-shell .pcd-admin-products-item--muted {
	color: #8c8f94;
	cursor: default;
}

/* Header right-side action icons (Info button, etc.) ----- */

.pcd-admin-shell .pcd-admin-header-actions {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.pcd-admin-shell .pcd-admin-header-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: #50575e;
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.pcd-admin-shell .pcd-admin-header-icon:hover,
.pcd-admin-shell .pcd-admin-header-icon:focus-visible {
	color: #2271b1;
	background: rgba(34, 113, 177, 0.06);
	outline: none;
}

.pcd-admin-shell .pcd-admin-header-icon .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* Content area -------------------------------------------------- */

.pcd-admin-shell .pcd-admin-content {
	padding: 20px;
}

.htd5-info-card {
  padding: 24px 26px;
  max-width: 720px;
}

.htd5-info-version {
  margin: 4px 0 12px;
  color: var(--pcd-admin-muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.htd5-info-card .button .dashicons {
  margin-right: 4px;
  font-size: 18px;
  line-height: 1;
  vertical-align: middle;
}

.htd5-admin-content {
  flex: 1;
  min-height: 0;
  padding: 24px 28px 36px;
  overflow-y: auto;
  overflow-x: hidden;
  background: transparent;
}

.pcd-admin-card,
.pcd-placeholder-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ccd9f1;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(26, 46, 97, 0.1);
}

.pcd-placeholder-card {
  padding: 20px 22px;
}

.pcd-admin-hero-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 20px 22px;
  margin-bottom: 16px;
  border-radius: 18px;
  border: 1px solid #cfd9f4;
  background: linear-gradient(125deg, rgba(236, 236, 255, 0.82), rgba(211, 236, 255, 0.68));
  box-shadow: 0 10px 28px rgba(60, 83, 153, 0.14);
}

.pcd-admin-hero-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.pcd-admin-hero-copy h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 1.56vw, 30px);
}

.pcd-admin-hero-copy p {
  margin: 0;
  color: var(--pcd-admin-muted);
  line-height: 1.6;
}

.pcd-admin-hero-media {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid #d4def5;
  color: #2d62df;
}

.pcd-admin-hero-media .dashicons {
  width: 30px;
  height: 30px;
  font-size: 30px;
}

.htd5-admin__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
}

.htd5-admin__panel {
  padding: 20px;
}

.htd5-admin__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.htd5-admin__panel textarea {
  min-height: 420px;
  margin-top: 12px;
  border: 1px solid #ccd9f1;
  border-radius: 12px;
  background: #fff;
}

.htd5-status {
  margin-top: 12px;
  font-weight: 500;
}

.htd5-status.is-loading {
  color: #3858e9;
}

.htd5-status.is-success {
  color: #00844a;
}

.htd5-status.is-error {
  color: #b32d2e;
}

.htd5-summary__cards {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.htd5-summary__card {
  background: #f6f8fd;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #e0e7f8;
}

.htd5-summary__card strong {
  color: #50575e;
}

.htd5-summary__card span {
  font-size: 24px;
  font-weight: 700;
}

.htd5-summary__list,
.htd5-summary__warnings,
.htd5-checklist {
  margin: 12px 0 0;
}

.htd5-summary__list li,
.htd5-checklist li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f2f8;
}

.htd5-summary__warnings li {
  color: #996800;
}

.htd5-settings-form .form-table th {
  width: 260px;
}

.htd5-settings-card {
  max-width: 860px;
}

/* ── App shell ───────────────────────────────────────────────────────────── */
.htd5-app {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.htd5-app__toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.htd5-app__stats {
  font-size: 12px;
  color: #616b85;
  background: #f0f4fd;
  border: 1px solid #dce4f4;
  border-radius: 20px;
  padding: 3px 12px;
}

/* ── HTML Input Panel ────────────────────────────────────────────────────── */
.htd5-input-panel__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.htd5-input-panel__textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: monospace;
  font-size: 12px;
  border: 1px solid #ccd9f1 !important;
  border-radius: 10px !important;
  background: #fafbff !important;
  padding: 10px 12px;
  resize: vertical;
  display: block;
}

.htd5-css-extra {
  margin: 10px 0;
}

.htd5-css-extra__toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: #2d62df;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  cursor: pointer;
}

.htd5-css-extra__icon { font-size: 11px; }

.htd5-css-extra__hint {
  font-size: 12px;
  font-weight: 400;
  color: #616b85;
}

.htd5-css-extra__description {
  margin: 8px 0;
  font-size: 13px;
  color: #616b85;
}

/* ── Confidence Badges ───────────────────────────────────────────────────── */
.htd5-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.htd5-badge--high   { background: #dcfce7; color: #15803d; }
.htd5-badge--medium { background: #fef3c7; color: #92400e; }
.htd5-badge--low    { background: #fef9c3; color: #854d0e; }
.htd5-badge--code   { background: #f1f5f9; color: #475569; }
.htd5-badge--ai     { background: #ede9fe; color: #7c3aed; }

/* ── Review Panel ────────────────────────────────────────────────────────── */
.htd5-review {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.htd5-review__hint {
  font-size: 12px;
  color: #616b85;
  margin: 0 0 4px;
  line-height: 1.6;
}

.htd5-review-empty {
  font-size: 13px;
  color: #616b85;
  font-style: italic;
  padding: 24px 0;
  text-align: center;
}

/* ── Section Groups ──────────────────────────────────────────────────────── */
.htd5-section-group {
  border: 1px solid #ccd9f1;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: opacity 0.15s ease;
}

.htd5-section-group--excluded {
  opacity: 0.55;
}

.htd5-section-group__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #f0f4fd;
  border-bottom: 1px solid #dce4f4;
  user-select: none;
}

.htd5-section-group__checkbox-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
}

.htd5-section-group__checkbox-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #2d62df;
  cursor: pointer;
}

.htd5-section-group__name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #1e2538;
  font-family: monospace;
}

.htd5-section-group__count {
  font-size: 11px;
  color: #616b85;
  background: #e5ecfa;
  border-radius: 999px;
  padding: 2px 8px;
}

.htd5-section-group__excluded-badge {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 2px 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.htd5-section-group__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  transition: opacity 0.15s ease;
}

.htd5-section-group__items--faded {
  pointer-events: none;
  opacity: 0.4;
}

/* ── Item Cards ────────────────────────────────────────────────────────── */
.htd5-item-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #dce4f4;
  border-radius: 9px;
  background: #fafbff;
  border-left: 3px solid #94a3b8;
  position: relative;
}

.htd5-item-card--low  { border-left-color: #f59e0b; }
.htd5-item-card--code { background: #f8fafc; border-left-color: #cbd5e1; }

.htd5-item-card__drag {
  font-size: 16px;
  color: #94a3b8;
  cursor: grab;
  padding: 2px 0;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

.htd5-item-card__drag:active { cursor: grabbing; }

.htd5-item-card__body {
  flex: 1;
  min-width: 0;
}

.htd5-item-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.htd5-item-card__type-select {
  height: 28px;
  padding: 0 8px;
  border: 1px solid #ccd9f1;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #1e2538;
  cursor: pointer;
}

.htd5-item-card__reason {
  margin: 5px 0 0;
  font-size: 11px;
  color: #64748b;
}

.htd5-item-card__snippet {
  margin: 5px 0 0;
  font-size: 11px;
  color: #94a3b8;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.htd5-item-card__delete {
  flex-shrink: 0;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 2px 5px !important;
  font-size: 16px !important;
  line-height: 1 !important;
  color: #94a3b8 !important;
  cursor: pointer;
}

.htd5-item-card__delete:hover { color: #b32d2e !important; }

/* ── Import Bar ──────────────────────────────────────────────────────────── */
.htd5-import-bar {
  margin-top: 16px;
}

.htd5-import-bar__vb {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.htd5-import-bar__use-btn {
  font-size: 14px !important;
  padding: 8px 22px !important;
  height: auto !important;
  line-height: 1.5 !important;
}

.htd5-import-bar__replace-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #1e2538;
  cursor: pointer;
  user-select: none;
  padding: 7px 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid #ccd9f1;
  border-radius: 8px;
}

.htd5-import-bar__replace-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: #2d62df;
}

.htd5-import-bar__status {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
}

.htd5-import-bar__status.is-success { color: #00844a; }
.htd5-import-bar__status.is-error   { color: #b32d2e; }

.htd5-debug-note {
  margin-top: 10px;
}

.htd5-import-bar__section-summary {
  margin: 0 0 10px;
  font-size: 13px;
  color: #616b85;
  font-weight: 500;
}

/* ── CSS Panel ───────────────────────────────────────────────────────────── */
.htd5-css-panel {
  margin: 12px 0;
  border: 1px solid #ccd9f1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.htd5-css-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #f6f8fd;
  border-bottom: 1px solid transparent;
}

.htd5-css-panel[data-open="true"] .htd5-css-panel__header {
  border-bottom-color: #ccd9f1;
}

.htd5-css-panel__toggle {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #1e2538;
  text-align: left;
}

.htd5-css-panel__icon {
  font-size: 11px;
  color: #616b85;
}

.htd5-css-panel__hint {
  font-size: 12px;
  font-weight: 400;
  color: #616b85;
  margin-left: 4px;
}

.htd5-css-panel__copy {
  flex-shrink: 0;
  font-size: 12px !important;
  padding: 4px 10px !important;
  height: auto !important;
  line-height: 1.5 !important;
}

.htd5-css-panel__textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #1e2538;
  background: #fff;
  border: none;
  border-radius: 0;
  resize: vertical;
  min-height: 140px;
  outline: none;
}

@media (max-width: 960px) {
  .pcd-admin-shell {
    margin-right: 0;
    border-radius: 0;
  }

  .pcd-admin-shell .pcd-admin-header {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .htd5-admin__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Page-target picker (admin Stage 2 cleanup) ──────────────────────────── */
.htd5-import-target {
  border: 0;
  margin: 0 0 16px;
  padding: 0;
}

.htd5-import-target__option {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  margin-bottom: 8px;
  background: #fff;
}

.htd5-import-target__option input[type="radio"]:checked ~ .htd5-import-target__label {
  font-weight: 600;
}

.htd5-import-target__label {
  color: #1d2327;
  font-size: 13px;
}

.htd5-import-target__option input[type="text"],
.htd5-import-target__option select {
  width: 100%;
  max-width: 360px;
}

.htd5-import-replace {
  margin: 0 0 12px;
  font-size: 13px;
  color: #50575e;
}

.htd5-tech-details {
  margin-top: 28px;
  padding: 12px 16px;
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-radius: 6px;
}

.htd5-tech-details > summary {
  cursor: pointer;
  font-weight: 600;
  color: #2c3338;
  user-select: none;
}

.htd5-tech-details[open] > summary {
  margin-bottom: 12px;
}

.htd5-globals-panel .htd5-globals-list {
  list-style: none;
  margin: 12px 0 16px;
  padding: 0;
}

.htd5-globals-panel .htd5-globals-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.htd5-globals-panel .htd5-globals-list .htd5-globals-icon::before {
  font-family: dashicons;
  font-size: 18px;
}

.htd5-globals-panel .htd5-globals-list li.is-found .htd5-globals-icon {
  color: #00a32a;
}

.htd5-globals-panel .htd5-globals-list li.is-found .htd5-globals-icon::before {
  content: "\f147"; /* dashicons-yes-alt-style check */
}

.htd5-globals-panel .htd5-globals-list li.is-missing .htd5-globals-icon {
  color: #8c8f94;
}

.htd5-globals-panel .htd5-globals-list li.is-missing .htd5-globals-icon::before {
  content: "\f460"; /* dashicons-minus */
}

.htd5-globals-panel .htd5-globals-list li.is-missing strong {
  color: #8c8f94;
}

.htd5-globals-panel .htd5-globals-meta {
  color: #50575e;
  font-size: 13px;
}

.htd5-globals-fields {
  margin: 8px 0 4px;
}

.htd5-globals-fields input[type="text"] {
  max-width: 480px;
}

.htd5-tb-template-result {
  margin-top: 12px;
  font-size: 14px;
}

.htd5-tb-template-result.is-success {
  padding: 10px 14px;
  background: #f0f6ff;
  border: 1px solid #c8d6f3;
  border-radius: 6px;
  color: #1d3c80;
}

.htd5-tb-template-result.is-error {
  padding: 10px 14px;
  background: #fdf0f0;
  border: 1px solid #f3c8c8;
  border-radius: 6px;
  color: #7a1d1d;
}

.htd5-tb-template-result a {
  font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* PressConduit — plugin-specific UI (uses the shared PCD shell)       */
/* ------------------------------------------------------------------ */

.pcd-admin-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 0 20px;
	background: #f6f7f7;
	border-bottom: 1px solid #dcdcde;
}

.pcd-admin-tabs a {
	display: inline-block;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 500;
	color: #50575e;
	text-decoration: none;
	border-radius: 6px 6px 0 0;
	transition: background .15s ease, color .15s ease;
	border: 1px solid transparent;
	border-bottom: none;
	position: relative;
	top: 1px;
}

.pcd-admin-tabs a:hover {
	color: #2271b1;
	background: rgba(34,113,177,0.06);
}

.pcd-admin-tabs a.is-active {
	background: #fff;
	color: #1d2327;
	border-color: #dcdcde;
}

.pcd-pc-primary-url {
	background: #f0f6fc;
	border: 1px solid #c5d9ed;
	border-radius: 10px;
	padding: 16px 18px;
	margin: 0 0 20px;
}
.pcd-pc-primary-url label {
	display: block;
	font-weight: 700;
	margin-bottom: 8px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #0073aa;
}
.pcd-pc-url-row { display: flex; gap: 8px; }
.pcd-pc-url-row input {
	flex: 1;
	font-family: ui-monospace, Menlo, Monaco, "Cascadia Code", monospace;
	font-size: 13px;
	padding: 9px 12px;
	border-radius: 6px;
	border: 1px solid #c3c4c7;
	background: #fff;
}

.pcd-pc-connectors {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 14px;
	margin-top: 16px;
}

.pcd-pc-connector-card {
	border: 1px solid #d8deee;
	border-radius: 12px;
	padding: 16px;
	background: #fff;
}

.pcd-pc-connector-card h4 {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}

.pcd-pc-connector-card .description {
	color: #50575e;
	margin: 0 0 12px;
	min-height: 36px;
	font-size: 13px;
	line-height: 1.5;
}

.pcd-pc-connector-card .button { margin-right: 6px; }
.pcd-pc-connector-card textarea { margin-top: 10px; }

.pcd-pc-table {
	width: 100%;
	background: #fff;
	border-collapse: collapse;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	overflow: hidden;
}

.pcd-pc-table th,
.pcd-pc-table td {
	padding: 10px 14px;
	text-align: left;
	border-bottom: 1px solid #f0f0f1;
	font-size: 13px;
}

.pcd-pc-table th {
	background: #f6f7f7;
	font-weight: 600;
	color: #1d2327;
}

.pcd-pc-table tr:last-child td { border-bottom: none; }

.pcd-pc-table code {
	background: #f0f0f1;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 12px;
}

.pcd-pc-empty {
	padding: 24px;
	text-align: center;
	color: #50575e;
	font-size: 14px;
}

.pcd-pc-section + .pcd-pc-section {
	margin-top: 18px;
}

.pcd-pc-form-row {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
	margin: 14px 0;
}

.pcd-pc-token {
	display: inline-block;
	font-family: ui-monospace, Menlo, Monaco, "Cascadia Code", monospace;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 12px;
	user-select: all;
	word-break: break-all;
}

/* Hero card brand mark */
.pcd-admin-hero-media img {
	width: 38px;
	height: 38px;
	color: #2563eb;
}

/* ------------------------------------------------------------------ */
/* PCD brand skin — navy #0d1f3c frame, gold #e8a020 actions.          */
/* Ported from SureCart for Divi (the PCD house admin style).          */
/* Scoped to .pcd-admin-shell so the rest of wp-admin is untouched.    */
/* ------------------------------------------------------------------ */

.pcd-admin-shell {
	--pcd-brand-navy: #0d1f3c;
	--pcd-brand-gold: #e8a020;
	--pcd-brand-gold-dark: #c9880f;
	--pcd-brand-muted: #8ea2c0;
	--pcd-brand-bg: #f6f7f9;
	border-color: #dfe3ea;
	overflow: hidden;
}

.pcd-admin-shell .pcd-admin-header {
	background: var(--pcd-brand-navy);
	border-bottom: none;
	padding: 16px 20px;
}

.pcd-admin-shell .pcd-admin-title {
	color: #ffffff;
	font-weight: 600;
}

/* Product logo before the title */
.pcd-admin-shell .pcd-admin-title-wrap::before {
	content: "";
	display: inline-block;
	width: 30px;
	height: 30px;
	background: url(admin-logo.svg) center / contain no-repeat;
	flex-shrink: 0;
}

.pcd-admin-shell .pcd-admin-badge {
	background: rgba(232, 160, 32, 0.14);
	color: var(--pcd-brand-gold);
	border: 1px solid rgba(232, 160, 32, 0.45);
	border-radius: 999px;
	padding: 2px 10px;
	font-weight: 600;
}

.pcd-admin-shell .pcd-admin-products-toggle:hover,
.pcd-admin-shell .pcd-admin-products-toggle:focus-visible,
.pcd-admin-shell .pcd-admin-products-toggle[aria-expanded="true"] {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.16);
}

.pcd-admin-shell .pcd-admin-products-chevron {
	color: var(--pcd-brand-muted);
}

.pcd-admin-shell .pcd-admin-header-icon {
	color: var(--pcd-brand-muted);
}

.pcd-admin-shell .pcd-admin-header-icon:hover,
.pcd-admin-shell .pcd-admin-header-icon:focus-visible {
	color: var(--pcd-brand-gold);
	background: rgba(232, 160, 32, 0.12);
}

.pcd-admin-shell .pcd-admin-tabs {
	background: var(--pcd-brand-navy);
	border-bottom: none;
	padding: 6px 20px 0;
	gap: 2px;
}

.pcd-admin-shell .pcd-admin-tabs a {
	color: var(--pcd-brand-muted);
	border: none;
	top: 0;
	border-radius: 8px 8px 0 0;
	padding: 10px 18px;
}

.pcd-admin-shell .pcd-admin-tabs a:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.07);
}

.pcd-admin-shell .pcd-admin-tabs a.is-active {
	background: var(--pcd-brand-bg);
	color: var(--pcd-brand-navy);
	border: none;
	font-weight: 600;
}

.pcd-admin-shell .pcd-admin-content {
	background: var(--pcd-brand-bg);
}

.pcd-admin-shell .pcd-admin-card,
.pcd-admin-shell .pcd-placeholder-card {
	background: #ffffff;
	border: 1px solid #e3e7ee;
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(13, 31, 60, 0.05);
}

.pcd-admin-shell .button-primary {
	background: var(--pcd-brand-gold);
	border-color: var(--pcd-brand-gold);
	color: var(--pcd-brand-navy);
	font-weight: 600;
	text-shadow: none;
	box-shadow: none;
}

.pcd-admin-shell .button-primary:hover,
.pcd-admin-shell .button-primary:focus {
	background: var(--pcd-brand-gold-dark);
	border-color: var(--pcd-brand-gold-dark);
	color: var(--pcd-brand-navy);
	box-shadow: none;
}

.pcd-admin-shell .button-primary:focus {
	box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--pcd-brand-gold);
}
