/* LED Sign Builder — Step 7 business name panel
   Load after led-sign-builder-rail-readability.css. */

.builder-rail.step-panel {
  width: 320px;
  min-width: 320px;
  background: #f7f8fa;
  color: #121820;
  font-family: Arial, Helvetica, sans-serif;
}

.step-panel .rail-content {
  padding: 14px 16px 22px;
}

.step-panel .step-kicker {
  margin: 0 0 7px;
  color: #667281;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.step-panel .main-progress {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  margin: 0 0 9px;
}

.step-panel .main-progress > span {
  height: 3px;
  background: #d9dee5;
}

.step-panel .main-progress > span.is-complete,
.step-panel .main-progress > span.is-current {
  background: #f3d20b;
}

.step-panel .rail-rule {
  height: 1px;
  margin: 0 0 11px;
  border: 0;
  background: #9ba4af;
}

.step-panel .project-summary {
  display: grid;
  gap: 5px;
  margin: 0 0 13px;
}

.step-panel .summary-row,
.step-panel .included-panel,
.step-panel .panel-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #d6dce3;
  border-radius: 4px;
  background: #fff;
}

.step-panel .summary-copy {
  overflow: visible;
  color: #24303d;
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.step-panel .summary-edit,
.step-panel .text-action {
  min-height: 30px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: #2c4d65;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.step-panel h1 {
  margin: 0 0 7px;
  color: #10161d;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.08;
}

.step-panel .page-help {
  margin: 0 0 13px;
  color: #5c6978;
  font-size: 13px;
  line-height: 1.45;
}

.builder-rail .panel-choice-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.builder-rail .panel-choice {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 9px 31px 9px 9px;
  border: 1px solid #cbd3dc;
  border-radius: 5px;
  background: #fff;
  color: #151c24;
  cursor: pointer;
}

.builder-rail .panel-choice:has(input:checked) {
  border-color: #14171c;
  background: #fff;
  box-shadow: 0 0 0 2px #14171c inset;
}

.builder-rail .panel-choice:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #14171c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.builder-rail .panel-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.builder-rail .position-diagram {
  display: grid;
  min-height: 44px;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: 3px;
  background: #edf1f5;
}

.builder-rail .position-diagram .led {
  width: 34px;
  height: 13px;
  background: #151a20;
}

.builder-rail .position-diagram .name-panel {
  width: 31px;
  height: 8px;
  border: 1px solid #9aa5b1;
  background: #fff;
}

.builder-rail .choice-title,
.builder-rail .choice-detail {
  display: block;
}

.builder-rail .choice-title {
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.builder-rail .choice-detail {
  color: #5c6978;
  font-size: 12px;
  line-height: 1.35;
}

.step-panel .panel-details {
  margin-top: 15px;
}

.step-panel .field-label {
  display: block;
  margin: 0 0 5px;
  color: #24303d;
  font-size: 12px;
  font-weight: 700;
}

.step-panel .artwork-input,
.step-panel .artwork-textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #bfc8d2;
  border-radius: 5px;
  background: #fff;
  color: #111820;
  font: inherit;
  font-size: 16px;
  box-sizing: border-box;
}

.step-panel .artwork-help {
  margin: 5px 0 9px;
  color: #667281;
  font-size: 11px;
  line-height: 1.4;
}

.step-panel .later-choice {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: #34414e;
  font-size: 12px;
  line-height: 1.35;
}

.step-panel .later-choice input {
  width: 18px;
  height: 18px;
  accent-color: #d5b900;
}

.step-panel .panel-settings {
  grid-template-columns: 1fr auto;
  margin-top: 10px;
}

.step-panel .setting-lines {
  color: #4f5d6b;
  font-size: 11px;
  line-height: 1.45;
}

.step-panel .review-note {
  margin: 9px 0 0;
  padding: 9px 10px;
  border-left: 3px solid #f3d20b;
  background: #fffbea;
  color: #374351;
  font-size: 12px;
  line-height: 1.4;
}

.step-panel .custom-group {
  margin-top: 15px;
}

.step-panel .custom-group h2 {
  margin: 0 0 8px;
  color: #24303d;
  font-size: 14px;
  font-weight: 700;
}

.step-panel .stepper-row {
  display: grid;
  grid-template-columns: 62px 44px minmax(0, 1fr) 44px;
  gap: 5px;
  align-items: center;
}

.step-panel .stepper-button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #cbd3dc;
  border-radius: 5px;
  background: #fff;
  color: #111820;
  font: inherit;
  font-size: 19px;
  cursor: pointer;
}

.step-panel .stepper-value {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.step-panel .compact-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.step-panel .compact-choice {
  position: relative;
  min-height: 48px;
  padding: 8px 27px 8px 8px;
  border: 1px solid #cbd3dc;
  border-radius: 5px;
  background: #fff;
  color: #17202a;
  font: inherit;
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.step-panel .compact-choice[aria-pressed="true"] {
  border-color: #14171c;
  background: #fff;
  box-shadow: 0 0 0 2px #14171c inset;
}

.step-panel .compact-choice[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #14171c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.step-panel .actions {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.step-panel .primary-action,
.step-panel .secondary-action {
  min-height: 46px;
  padding: 9px 14px;
  border-radius: 5px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.step-panel .primary-action {
  border: 1px solid #d5b900;
  background: #ffe83f;
  color: #10161d;
}

.step-panel .primary-action:disabled {
  border-color: #d8dce1;
  background: #edf0f3;
  color: #8a949f;
  cursor: not-allowed;
}

.step-panel .secondary-action {
  border: 1px solid #cbd3dc;
  background: #fff;
  color: #24303d;
}

.step-panel .back-link {
  display: block;
  width: 100%;
  min-height: 36px;
  margin-top: 8px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #2c4d65;
  font: inherit;
  font-size: 12px;
  text-align: center;
  text-decoration: underline;
  cursor: pointer;
}

.step-panel :focus-visible {
  outline: 3px solid #1f6fb2;
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .builder-rail.step-panel {
    width: 100%;
    min-width: 0;
  }
}

