.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;
	}

	&__search {
		position: sticky;
		top: 0;
		z-index: 1;
		flex-shrink: 0;
		padding: 16px 24px 8px;
		background: #fff;

		.components-search-control__input,
		.components-input-control__input {
			&:focus {
				box-shadow: none;
				outline: none;
			}
		}
	}

	&__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: flex;
		flex-direction: column;
		min-height: 0;
		overflow-y: auto;
	}

	&__forms-grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 16px;
		align-content: start;
		padding: 24px;
	}

	&__no-results {
		margin: 0;
		padding: 24px 16px;
		text-align: center;
		color: #757575;
	}

	&__empty-state {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 32px;
		max-width: 372px;
		margin: 0 auto;
		text-align: center;
	}

	&__empty-icon {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 60px;
		height: 60px;
		border: 1px solid #ebebeb;
		border-radius: 12px;
		background: #fafafa;
	}

	&__empty-body {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 24px;
	}

	&__empty-text {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 4px;
	}

	&__empty-title {
		margin: 0;
		font-size: 18px;
		font-weight: 600;
		color: #1e1e1e;
	}

	&__empty-subtitle {
		margin: 0;
		font-size: 13px;
		color: #757575;
	}

	&__empty-action {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 8px;
	}

	&__empty-create {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		padding: 8px 12px;
		border-radius: 8px;
		background: #18181a;
		color: #fff;
		font-size: 13px;
		font-weight: 600;
		text-decoration: none;

		&:hover {
			background: #000;
			color: #fff;
		}
	}

	&__empty-refresh {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		padding: 8px 12px;
		border: 1px solid #e0e0e0;
		border-radius: 8px;
		background: transparent;
		color: #18181a;
		font-size: 13px;
		font-weight: 600;
		cursor: pointer;

		&:hover {
			background: rgba(0, 0, 0, 0.04);
		}
		padding: 16px;
	}

	&__no-results {
		margin: 0;
		padding: 24px 16px;
		text-align: center;
		color: #757575;
	}

	&__empty-state {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 32px;
		max-width: 372px;
		margin: 0 auto;
		text-align: center;
	}

	&__empty-icon {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 60px;
		height: 60px;
		border: 1px solid #ebebeb;
		border-radius: 12px;
		background: #fafafa;
	}

	&__empty-body {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 24px;
	}

	&__empty-text {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 4px;
	}

	&__empty-title {
		margin: 0;
		font-size: 18px;
		font-weight: 600;
		color: #1e1e1e;
	}

	&__empty-subtitle {
		margin: 0;
		font-size: 13px;
		color: #757575;
	}

	&__empty-action {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 8px;
	}

	&__empty-create {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		padding: 8px 12px;
		border-radius: 8px;
		background: #18181a;
		color: #fff;
		font-size: 13px;
		font-weight: 600;
		text-decoration: none;

		&:hover {
			background: #000;
			color: #fff;
		}
	}

	&__empty-refresh {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		padding: 8px 12px;
		border: 1px solid #e0e0e0;
		border-radius: 8px;
		background: transparent;
		color: #18181a;
		font-size: 13px;
		font-weight: 600;
		cursor: pointer;

		&:hover {
			background: rgba(0, 0, 0, 0.04);
		}
	}

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

	&__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;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 140px;
		overflow: hidden;
		background: #f5f5f6;
		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;
	}

	@media (max-width: 768px) {
		&__list {
			grid-template-columns: 1fr;
		}

		&__forms-grid {
			grid-template-columns: 1fr;
		}

		&__list-preview {
			display: none;
		}
	}
}
