$scale-factor: 0.55;

.ai-assistant-image {

	&__blank {
		display: flex;
		justify-content: center;
		position: relative;
		align-items: center;
		width: 100%;
		height: auto;

		&-content {
			position: absolute;
			width: 100%;
			height: 100%;
			display: flex;
			align-items: center;
			justify-content: center;

			&.is-dotted {
				border: 1px dotted;
			}
		}
	}

	&__loading {
		flex-direction: column;
		gap: 8px;
	}

	&__error {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;

		&-message {
			font-size: 10px;
			color: #f00;
		}
	}

	&__carrousel {
		flex-direction: column;
		width: 100%;

		&-images {
			position: relative;
			display: flex;
			align-items: center;
			overflow: hidden;
			height: calc(768px * $scale-factor);

			.ai-carrousel {

				&__prev {
					left: 0;
				}

				&__next {
					right: 0;
				}

				&__prev,
				&__next {
					cursor: pointer;
					z-index: 1;
					display: flex;
					align-items: center;
					justify-content: center;
					transition: opacity 0.3s;
					border: none;
					position: absolute;
					top: 0;
					bottom: 0;
					height: 100%;
					width: 60px;
					opacity: 0;
					background: transparent;

					&:hover {
						background-color: rgba(0, 0, 0, 0.3);
						opacity: 1;
					}

					&-icon {
						fill: #fff;

						&.is-disabled {
							fill: #808080;
						}
					}
				}
			}
		}

		&-footer {
			display: flex;
			justify-content: space-between;
			margin-top: 8px;
		}

		&-footer-left {
			display: flex;
			flex-grow: 1;
		}

		&-counter {
			display: flex;
			justify-content: flex-start;
			align-items: center;
			font-size: 13px;
			padding: 6px 0;

			.ai-carrousel {

				&__prev,
				&__next {
					display: flex;
					align-items: center;
					justify-content: center;
					cursor: pointer;
					border: none;
					background: transparent;
					padding: 0;

					&-icon {

						&.is-disabled {
							fill: #808080;
						}
					}
				}
			}
		}

		&-image {
			max-height: calc(768px * $scale-factor);
			max-width: calc(1024px * $scale-factor);
			width: auto;
			height: auto;
			margin: auto 0;
		}

		&-image-container {
			display: flex;
			width: 100%;
			height: 100%;
			position: absolute;
			left: 8px;
			transform: translateX(100%);
			transition: transform 0.5s;
			flex-direction: column;
			align-items: center;

			&.is-prev {
				transform: translateX(-100%);
				left: -8px;
			}

			&.is-current {
				transform: translateX(0);
				position: static;
			}
		}
	}
}
