.gform-admin {

	.gform-repeater {
		max-inline-size: 100%;
	}

	.gform-repeater-item {
		align-items: center;
		cursor: default;
		display: flex;
		justify-content: space-between;

		+ .gform-repeater-item,
		+ .gform-repeater__add-button {
			margin-block-start: var(--gform-admin-spacer-4);
		}

		&:focus-visible,
		&:focus {
			border: 1px solid var(--gform-admin-color-blue-ribbon);
			outline: none;
		}

		.gform-repeater-item__control,
		.gform-repeater-item__delete {

			&:focus {
				border-color: var(--gform-admin-color-snuff);
				outline: none;
			}

			&:focus-visible {
				border-color: var(--gform-admin-color-blue-ribbon);
				outline: 0.125rem solid var(--gform-admin-color-spindle);
				z-index: 3;
			}
		}

		.gform-repeater-item__delete {
			margin-inline-start: var(--gform-admin-spacer-3);
		}

		&.gform-repeater-item--is-draggable,
		&.gform-repeater-item--is-sortable {
			gap: var(--gform-admin-spacer-3);

			.gform-repeater-item__delete {
				margin-inline-start: 0;
			}
		}

		.gform-repeater-item__control--down {
			border-end-end-radius: 0;
			border-inline-end: transparent;
			border-start-end-radius: 0;

			&:focus-visible {
				border-inline-end: 1px solid var(--gform-admin-color-blue-ribbon);
				outline: 0.125rem solid var(--gform-admin-color-spindle);
			}
		}

		.gform-repeater-item__control--up {
			border-end-start-radius: 0;
			border-start-start-radius: 0;
		}

		&.gform-repeater-item--has-arrows {

			.gform-repeater-item__control--drag-toggle {
				border-end-end-radius: 0;
				border-inline-end: transparent;
				border-start-end-radius: 0;

				&:focus-visible {
					border-inline-end: 1px solid var(--gform-admin-color-blue-ribbon);
					outline: 0.125rem solid var(--gform-admin-color-spindle);
				}
			}
		}

		&.gform-repeater-item--has-drag-handle {

			.gform-repeater-item__control--down {
				border-end-start-radius: 0;
				border-start-start-radius: 0;
			}
		}
	}

	.gform-repeater-item--is-draggable {
		cursor: move;
	}

	.gform-repeater-item--is-dragging {
		opacity: 0;
	}

	.gform-repeater-item--is-keyboard-nav {
		box-shadow: 2px 5px 5px rgba(0, 0, 0, 0.3);
		transform: translate(-2px, -2px);
	}

	.gform-repeater-item__controls {
		display: flex;
	}
}
