/* =========================
   Repeater
========================= */

@use "../kit-deps" as *;

.repeater {
  .repeater-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: $space-2;
    margin-bottom: $space-3;
  }

  .repeater-title {
    font-size: $font-size-base;
    font-weight: $font-weight-semibold;
    color: $neutral-900;
  }

  .repeater-list {
    display: grid;
    gap: $space-2;
  }

  .repeater-item {
    @include hard_panel($border-color-muted);
    padding: $space-3;
    display: flex;
    gap: $space-3;
    align-items: flex-start;
  }

  .repeater-item-body {
    flex: 1 1 auto;
    min-width: 0;
  }

  .repeater-item-actions {
    display: flex;
    align-items: flex-start;
    gap: $space-2;
    flex-shrink: 0;
    padding-top: 0;
  }

  &.repeater-disabled {
    opacity: 0.6;
    pointer-events: none;
  }
}
