/* gitignore Generator: layout for the template picker and the preview. Chips, fields, buttons and the card come from the shared styles. */

.gi-card {
  max-width: 1080px;
}
.gi-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}
.gi-picker {
  min-width: 0;
}
.gi-picker > .field-label:first-child {
  padding-top: 0;
}
.gi-picker .field {
  gap: var(--space-2);
}
.gi-picker .field > .icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  color: var(--color-muted);
  opacity: 0.55;
}
.gi-selected-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-3);
  min-height: 2rem;
}
.gi-count {
  font-size: var(--text-sm);
  color: var(--color-muted);
  padding-left: var(--space-1);
}
.gi-groups {
  max-height: 26rem;
  overflow-y: auto;
  margin: 0 calc(var(--space-2) * -1) var(--space-2);
  padding: 0 var(--space-2);
  overscroll-behavior: contain;
}
.gi-group > .field-label {
  padding-top: var(--space-3);
  padding-bottom: var(--space-2);
}
.gi-empty {
  margin: var(--space-3) var(--space-1);
  color: var(--color-muted);
  font-size: var(--text-sm);
}
.gi-picker .textarea {
  min-height: 6rem;
  width: 100%;
}
.gi-picker .enc-checks {
  margin-top: var(--space-1);
}
.gi-preview {
  position: sticky;
  top: var(--space-4);
}
.gi-preview .textarea {
  min-height: 30rem;
  height: 30rem;
  flex: none;
  white-space: pre;
  overflow: auto;
  word-break: normal;
}
.gi-credit {
  margin: var(--space-2) var(--space-1) 0;
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.gi-credit a {
  color: var(--color-accent);
}
.gi-credit a:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .gi-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .gi-preview {
    position: static;
  }
  .gi-groups {
    max-height: 22rem;
  }
  .gi-preview .textarea {
    min-height: 18rem;
    height: 18rem;
  }
}

/* Line the preview label up with the search label on the left */
.gi-preview .enc-pane-head {
  min-height: 0;
  align-items: baseline;
}
.gi-preview .enc-pane-head .field-label {
  padding-top: 0;
}
