/* ── Brand Profile — Component-specific styles ────────────────────────────────── */
/* Shared patterns (.emp-*) are in global.css. HTML elements use both emp-* and ebp-* classes. */


/* ── Mobile: action bar static so it never overlaps short-card content ───────────── */
@media (max-width: 640px) {
  .ebp-action-bar {
    position: static;
    padding: 12px 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-top: 1px solid var(--emp-border);
    margin-top: 16px;
  }
}

/* ── Tab nav: pill style + single-row horizontal scroll ─────────────────────────── */
.ebp-tabs.fi2-progress--tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
  cursor: default;
}
.ebp-tabs.fi2-progress--tabs::-webkit-scrollbar { display: none; }
/* Reset the base progress-bar segment shape so pills render correctly */
.ebp-tabs.fi2-progress--tabs .emp-progress__segment {
  flex: 0 0 auto;
  height: auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--emp-cream);
  border: 1px solid var(--emp-border);
  color: var(--emp-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.ebp-tabs.fi2-progress--tabs .emp-progress__segment:first-child,
.ebp-tabs.fi2-progress--tabs .emp-progress__segment:last-child { border-radius: 999px; }
.ebp-tabs.fi2-progress--tabs .emp-progress__segment:hover:not(.emp-progress__segment--active) {
  border-color: var(--emp-coral);
  color: var(--emp-coral);
}
.ebp-tabs.fi2-progress--tabs .emp-progress__segment--completed {
  background: var(--emp-teal-light);
  border-color: var(--emp-teal);
  color: var(--emp-teal);
}
.ebp-tabs.fi2-progress--tabs .emp-progress__segment--active {
  background: var(--emp-coral);
  border-color: var(--emp-coral);
  color: #fff;
}
.ebp-tabs.fi2-progress--tabs .fi2-progress__num { display: none; }

/* ── Image Upload (vertical layout with WP media button) ──────────────────────── */
.ebp-img-upload { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ebp-img-upload .emp-btn { width: auto; }

/* ── Single-image previews ──────────────────────────────────────────────────────── */
.ebp-img-preview {
  width: 100%;
  max-width: 200px;
  border: 2px dashed var(--emp-border);
  border-radius: var(--emp-r-card);
  overflow: hidden;
  background: var(--emp-cream);
  min-height: 60px;
}
.ebp-img-preview img { width: 100%; display: block; object-fit: cover; }

/* ── Gallery Preview ────────────────────────────────────────────────────────────── */
.ebp-gallery-preview { display: flex; flex-wrap: wrap; gap: 8px; }
.ebp-gallery-preview img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--emp-r-input); }

/* ── Social Link Rows ────────────────────────────────────────────────────────────── */
.ebp-social-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

/* ── Banner Rows ──────────────────────────────────────────────────────────────────── */
.ebp-banner-row {
  display: grid;
  grid-template-columns: 120px 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 12px;
  background: var(--emp-cream);
  border-radius: var(--emp-r-input);
  margin-bottom: 8px;
}
.ebp-banner-img-preview img { width: 100px; height: 70px; object-fit: cover; border-radius: 6px; }
.ebp-banner-img-btn { font-size: 11px; padding: 5px 10px; }

/* ── Field in Grid (full-width span) ─────────────────────────────────────────────── */
.ebp-field--full { grid-column: 1 / -1; }

/* ── Tighter field spacing for this form only ────────────────────────────────────── */
.ebp-wrap .emp-field { margin-bottom: 10px; }
.ebp-wrap .emp-field.ebp-field--mt { margin-top: 10px; }

/* ── Onboarding Banner ───────────────────────────────────────────────────────────── */
.ebp-onboarding-banner {
  background: var(--emp-coral-light);
  border-left: 4px solid var(--emp-coral);
  border-radius: var(--emp-r-input);
  padding: 16px 20px;
  margin-bottom: 28px;
}
.ebp-onboarding-banner__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--emp-coral);
  margin-bottom: 6px;
}
.ebp-onboarding-banner__body {
  font-size: 13px;
  color: var(--emp-charcoal);
  line-height: 1.6;
  margin: 0;
}

/* ── Congratulations Screen ──────────────────────────────────────────────────────── */
.ebp-onboarding-congrats {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 32px;
  min-height: 400px;
}
.ebp-onboarding-congrats__icon {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
}
.ebp-onboarding-congrats__heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--emp-charcoal);
  margin: 0 0 8px;
}
.ebp-onboarding-congrats__sub {
  font-size: 16px;
  font-weight: 600;
  color: var(--emp-coral);
  margin: 0 0 16px;
}
.ebp-onboarding-congrats__body {
  font-size: 13px;
  color: var(--emp-muted);
  line-height: 1.7;
  max-width: 360px;
  margin: 0 0 32px;
}
.ebp-onboarding-congrats__note {
  font-size: 13px;
  color: var(--emp-muted);
  background: var(--emp-cream);
  border: 1px solid var(--emp-border);
  border-radius: var(--emp-r-input);
  padding: 12px 16px;
  max-width: 380px;
  line-height: 1.6;
  margin: 0 0 24px;
}
.ebp-onboarding-congrats__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Size Charts Repeater ────────────────────────────────────────────────────────── */
.ebp-sc-card {
  background: var(--emp-cream);
  border-radius: var(--emp-r-input);
  padding: 14px;
  margin-bottom: 12px;
}
.ebp-sc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.ebp-sc-chart-name { flex: 1; }
.ebp-sc-variant-row {
  display: grid;
  grid-template-columns: 90px repeat(7, 1fr) auto;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}
.ebp-sc-variant-list { margin-bottom: 8px; }
.ebp-card__hint {
  font-size: 12px;
  color: var(--emp-muted);
  margin: -8px 0 12px;
}
.ebp-field-hint {
  font-size: 11px;
  color: var(--emp-muted);
  line-height: 1.4;
}

/* ── Accessibility: Focus Visible ──────────────────────────────────────────────── */
.ebp-img-upload:focus-visible {
  outline: 2px solid var(--emp-coral);
  outline-offset: 2px;
}
.ebp-banner-img-btn:focus-visible {
  outline: 2px solid var(--emp-coral);
  outline-offset: 2px;
}

/* ── Responsive ──────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .ebp-social-row { grid-template-columns: 1fr; }
  .ebp-banner-row { grid-template-columns: 1fr 1fr; }
  .ebp-sc-variant-row { grid-template-columns: 1fr 1fr 1fr; }
}