/* Brand Live � Buttons panel (mirrors typography/layout patterns) */

.guidelines-themes-panel--btn-wide {
  width: min(420px, 100vw);
}

.guidelines-themes-body--buttons {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}

.blg-btn-scope-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 12px;
  border-bottom: 1px solid rgba(14, 23, 42, 0.12);
}

.blg-btn-scope-tab {
  flex: 1;
  margin: 0;
  padding: 10px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blg-muted, #64748b);
  cursor: pointer;
}

.blg-btn-scope-tab.is-active {
  color: var(--blg-ink, #0e172a);
  border-bottom-color: var(--blg-blue, #ff8300);
}

.blg-btn-scope-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.8125rem;
  line-height: 1.45;
  background: rgba(255, 131, 0, 0.08);
  color: var(--blg-ink, #0e172a);
}

.blg-btn-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin: 0 0 12px;
}

.blg-btn-preview-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 10px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(14, 23, 42, 0.06);
}

.blg-btn-preview-tab {
  flex: 1;
  margin: 0;
  padding: 8px 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--blg-muted, #64748b);
  cursor: pointer;
}

.blg-btn-preview-tab.is-active {
  background: #fff;
  color: var(--blg-ink, #0e172a);
  box-shadow: 0 1px 3px rgba(14, 23, 42, 0.12);
}

.blg-btn-preview-stage {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(14, 23, 42, 0.04);
  min-height: 52px;
  align-items: center;
}

.blg-btn-preview-chip {
  display: none;
  pointer-events: none;
}

.blg-btn-preview-chip.is-visible {
  display: inline-flex;
}

.blg-btn-field,
.blg-btn-dimension,
.blg-btn-dimension-head,
.blg-btn-field-label,
.blg-btn-pill-group,
.blg-btn-segment-btn,
.blg-btn-color-row,
.blg-btn-color-swatch-btn,
.blg-btn-color-hex,
.blg-btn-color-clear,
.blg-btn-custom-input,
.blg-btn-section-label,
.blg-btn-hint {
  /* mapped below */
}

.blg-btn-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
}

.blg-btn-field > span:first-child,
.blg-btn-field-label {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--blg-muted, #64748b);
}

.blg-btn-dimension {
  margin: 0 0 14px;
}

.blg-btn-dimension-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
}

.blg-btn-dimension-custom {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blg-btn-dimension-custom-label {
  font-size: 0.6875rem;
  color: var(--blg-muted, #64748b);
}

.blg-btn-preset-row.is-hidden,
.blg-btn-custom-value.is-hidden {
  display: none;
}

.blg-btn-segment {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.blg-btn-segment-btn {
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(14, 23, 42, 0.12);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.blg-btn-segment-btn.is-active {
  border-color: var(--blg-blue, #ff8300);
  background: rgba(255, 131, 0, 0.12);
  color: var(--blg-ink, #0e172a);
}

.blg-btn-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blg-btn-color-swatch-btn {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid rgba(14, 23, 42, 0.12);
  overflow: hidden;
  cursor: pointer;
}

.blg-btn-color-swatch-btn.is-empty .blg-btn-color-swatch-preview {
  background: repeating-linear-gradient(45deg, #e2e8f0, #e2e8f0 4px, #f8fafc 4px, #f8fafc 8px) !important;
}

.blg-btn-color-swatch-preview {
  display: block;
  width: 100%;
  height: 100%;
}

.blg-btn-color-native {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.blg-btn-color-hex {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
}

.blg-btn-color-clear {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(14, 23, 42, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") center/14px no-repeat;
  cursor: pointer;
}

.blg-btn-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 650;
  vertical-align: middle;
}

.blg-btn-badge--inherit {
  background: rgba(14, 23, 42, 0.06);
  color: var(--blg-muted, #64748b);
}

.blg-btn-badge--override {
  background: rgba(255, 131, 0, 0.15);
  color: var(--blg-ink, #0e172a);
}

.blg-btn-wcag {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
}

.blg-btn-wcag.is-pass {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

.blg-btn-wcag.is-fail {
  background: rgba(239, 68, 68, 0.12);
  color: #991b1b;
}

.blg-btn-section-label {
  margin: 16px 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blg-muted, #64748b);
}

.blg-btn-hint {
  margin: 0;
  font-size: 0.75rem;
}

.blg-btn-variant-reset,
.blg-btn-reset-btn,
.blg-btn-promote-btn,
.blg-btn-export-btn {
  font-size: 0.8125rem;
}

.guidelines-themes-body--buttons .guidelines-themes-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand-live-guidelines.is-btn-inspect [data-blg-btn-role]:not(.is-btn-highlight),
.brand-live-guidelines.is-btn-inspect .blg-btn--primary:not(.is-btn-highlight),
.brand-live-guidelines.is-btn-inspect .blg-btn--outline:not(.is-btn-highlight),
.brand-live-guidelines.is-btn-inspect .blg-read-more:not(.is-btn-highlight) {
  opacity: 0.45;
}

.brand-live-guidelines .is-btn-highlight {
  outline: 2px solid rgba(255, 131, 0, 0.75);
  outline-offset: 3px;
  border-radius: 4px;
}
