/* ──────────────────────────────────────────────────────────────────────────
 * TemplatesTab — Pawfectly Yours pink restyle.
 * Class names already match the JSX (legacy .templates-* / .template-*),
 * so this just re-skins them in the brand palette.
 * ────────────────────────────────────────────────────────────────────────── */

.templates-hidden-input {
  display: none;
}

.templates-title {
  margin: 0 0 0.4rem 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.templates-description {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.templates-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.template-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.template-btn:hover {
  background: var(--brand-pink-wash);
  border-color: var(--brand-pink);
}

.template-btn.selected {
  background: var(--brand-pink-soft);
  border-color: var(--brand-pink);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.12);
}

.template-thumbnail {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-pink-tint);
  border-radius: var(--radius-sm);
  font-size: 22px;
  flex-shrink: 0;
}

.template-info {
  flex: 1;
  min-width: 0;
}

.template-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.template-desc {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.template-slots-badge {
  font-size: 10px;
  padding: 2px 7px;
  background: var(--brand-pink);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 700;
  letter-spacing: 0.4px;
}

.template-slots-section {
  margin-top: 0.85rem;
  padding: 0.85rem;
  background: var(--brand-pink-wash);
  border-radius: var(--radius-md);
  border: 1px dashed var(--brand-pink);
}

.template-slots-title {
  margin: 0 0 0.55rem 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.template-slots-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.template-slot-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-primary);
  transition: background 0.12s ease, border-color 0.12s ease;
}

.template-slot-btn:hover {
  background: var(--brand-pink-soft);
  border-color: var(--brand-pink);
}

.template-slot-icon {
  font-size: 16px;
}

.template-slot-dimensions {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: auto;
  font-weight: 600;
}
