.yz-template-prefill,
.yz-template-prefill *,
.yz-template-prefill *::before,
.yz-template-prefill *::after {
  box-sizing: border-box;
}

.yz-template-prefill {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: #e8edf7;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.yz-template-prefill [data-yz-template-region] {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 16px;
  border: 1px solid #2b3850;
  border-radius: 12px;
  background: #121a29;
}

.yz-template-prefill h3,
.yz-template-prefill h4,
.yz-template-prefill p {
  margin: 0 0 8px;
}

.yz-template-prefill h3 {
  color: #f4f7fc;
  font-size: 16px;
}

.yz-template-prefill h4 {
  color: #dbe6f8;
  font-size: 14px;
}

.yz-template-prefill__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.yz-template-prefill button {
  max-width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #3b4c69;
  border-radius: 9px;
  background: #1a2639;
  color: #e8edf7;
  font: inherit;
  cursor: pointer;
  white-space: normal;
}

.yz-template-prefill button:hover,
.yz-template-prefill button:focus-visible {
  border-color: #8ca8d8;
  outline: none;
}

.yz-template-prefill button[aria-pressed="true"] {
  border-color: #8ba7ff;
  background: #26385c;
  color: #fff;
}

.yz-template-prefill__muted {
  color: #9eacc2;
}

.yz-template-prefill__row {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  padding: 5px 0;
  border-bottom: 1px solid rgba(93, 111, 141, 0.2);
}

.yz-template-prefill__label {
  color: #aebbd0;
}

.yz-template-prefill__group {
  min-width: 0;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #2b3850;
}

.yz-template-prefill__editor {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 10px 0;
}

.yz-template-prefill__editor input,
.yz-template-prefill__editor textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #35445e;
  border-radius: 8px;
  background: #0b1321;
  color: #edf2fb;
  font: inherit;
  resize: vertical;
}

.yz-template-prefill__editor textarea {
  min-height: 72px;
}

.yz-template-prefill__editor input:focus,
.yz-template-prefill__editor textarea:focus {
  border-color: #8ba7ff;
  outline: 2px solid rgba(139, 167, 255, 0.2);
}

.yz-template-prefill ul {
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 640px) {
  .yz-template-prefill [data-yz-template-region] {
    padding: 12px;
    border-radius: 10px;
  }

  .yz-template-prefill__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .yz-template-prefill__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}
