/* Template Styles */

.template-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

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

.template-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .template-card {
    flex-direction: column;
    align-items: stretch;
  }

  .template-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .template-actions > .btn,
  .template-actions > form > .btn {
    flex: 1 1 calc(50% - var(--space-2));
    min-width: 0;
  }

  .template-actions > .btn.btn-block,
  .template-actions > form > .btn.btn-block {
    flex: 1 1 100%;
  }
}