.etb-container {
  max-width: 1020px;
}

/* Template picker grid */
.etb-template-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.etb-pick-card {
  border: 1px solid #d8d2f2;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f3ff 100%);
  padding: 18px 16px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  user-select: none;
}

.etb-pick-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(59,31,125,0.12);
  border-color: #9c8be6;
}

.etb-pick-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.etb-pick-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #22114f;
  margin-bottom: 5px;
}

.etb-pick-desc {
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.4;
}

/* Form area */
.etb-form-area h3 {
  margin: 0 0 18px;
  color: #22114f;
}

.etb-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.etb-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.etb-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #32145f;
}

.etb-field input,
.etb-field textarea,
.etb-field select {
  padding: 9px 12px;
  border: 1px solid #d7caf8;
  border-radius: 8px;
  background: #fcfbff;
  font-size: 0.95rem;
  color: #27165b;
  font-family: inherit;
  transition: border-color 0.2s;
}

.etb-field input:focus,
.etb-field textarea:focus,
.etb-field select:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}

.etb-field textarea {
  min-height: 80px;
  resize: vertical;
}

.etb-field-wide {
  grid-column: 1 / -1;
}

.etb-actions {
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.etb-copy-msg {
  margin-top: 10px;
  font-weight: 600;
  color: #059669;
  font-size: 0.9rem;
}

/* Preview */
.etb-preview-area {
  margin-top: 28px;
  border: 1px solid #d8d2f2;
  border-radius: 16px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(59,31,125,0.07);
}

.etb-preview-area h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  color: #7c3aed;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
}

.etb-preview-subject-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.etb-preview-subject-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.etb-preview-subject-val {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
}

.etb-preview-body {
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #374151;
}

@media (max-width: 600px) {
  .etb-fields {
    grid-template-columns: 1fr;
  }
}
/* Styling for the new Open Email button to make it pop */
.etb-open-btn {
  background-color: #7c3aed; /* Your primary purple */
  color: #ffffff;
  font-weight: 600;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.etb-open-btn:hover {
  background-color: #6d28d9;
}