.hostinger-reach-select-form-modal {
	&.components-modal__frame {
		display: flex;
		flex-direction: column;
		max-width: 900px;
		width: 90vw;
		height: 640px;
		max-height: calc(100vh - 64px);
	}

	.components-modal__header {
		height: 52px;
		padding: 12px 24px;
	}

	.components-modal__content {
		display: flex;
		flex-direction: column;
		flex: 1;
		min-height: 0;
		margin-top: 52px;
		padding: 0 24px;
		overflow: hidden;
	}

	.components-modal__children-container {
		display: flex;
		flex-direction: column;
		flex: 1;
		min-height: 0;
		overflow: hidden;
	}

	&__content {
		display: flex;
		flex-direction: column;
		flex: 1;
		min-height: 0;
		overflow: hidden;
		border-top: 1px solid #e0e0e0;
	}

	&__loading,
	&__empty {
		display: flex;
		flex: 1;
		align-items: center;
		justify-content: center;
		min-height: 240px;
		text-align: center;
		color: #757575;
	}

	&__list {
		display: grid;
		grid-template-columns: 1fr 1fr;
		flex: 1;
		min-height: 0;
	}

	&__list-forms {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-auto-rows: 190px;
		gap: 16px;
		align-content: start;
		min-height: 0;
		overflow-y: auto;
		padding: 16px;
	}

	&__list-preview {
		display: flex;
		flex-direction: column;
		min-height: 0;
		overflow-y: auto;
		padding: 16px;
		background: #f5f5f5;
	}

	&__form-item {
		display: flex;
		flex-direction: column;
		gap: 8px;
		padding: 0;
		border: none;
		background: transparent;
		cursor: pointer;
		text-align: left;

		&:focus-visible {
			outline: none;
		}
	}

	&__form-name {
		font-weight: 700;
		font-size: 14px;
		color: #1e1e1e;
	}

	&__form-thumb {
		display: flex;
		flex: 1;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 0;
		overflow: hidden;
		background: #f5f5f5;
		border-radius: 16px;
		border: 3px solid transparent;
		transition: border-color 0.2s ease;
	}

	&__form-thumb-fallback {
		width: 100%;
		height: 100%;
		background: #ebebeb;
	}

	&__form-image {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	&__form-item--selected &__form-thumb {
		border-color: #3858e9;
	}

	&__preview-frame {
		width: 100%;
		height: 100%;
		min-height: 320px;
		border: 1px solid #e0e0e0;
		border-radius: 12px;
	}

	&__footer {
		display: flex;
		flex-shrink: 0;
		justify-content: space-between;
		align-items: center;
		gap: 8px;
		flex-wrap: wrap;
		padding: 16px 0;
		border-top: 1px solid #e0e0e0;
	}

	&__footer-start {
		display: flex;
		align-items: center;
		gap: 8px;
	}

	&__footer-actions {
		display: flex;
		align-items: center;
		gap: 8px;
		margin-left: auto;
	}
}
