.hub-ai-form {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.hub-ai-form .form-field {
	width: 100%;
}

.hub-ai-form .form-field.half {
	width: 49%;
}

.hub-ai-action {
	display: inline-flex !important;
	align-items: center !important;
	box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
	width: auto !important;
	min-width: fit-content;
	margin-right: 12px;
}

.hub-ai-action .hub-ai-logo {
	margin-right: 10px;
	animation: rotate 3s linear infinite;
}

.hub-ai-action .hub-ai-logo {
	z-index: 2;
	margin-right: 10px;
	animation: pulse 2s infinite;
	box-shadow: 0 0 0 0 rgba(255, 255, 255, 1);
	border-radius: 100%;
}

.hub-ai-action-classic {
	background-color: #1e1e1e;
	color: #fff;
	height: 45px;
	padding: 0 2em;
	border-radius: 3px;
	margin: 15px 5px 0 0;
	cursor: pointer;
}

.hub-ai-template-header .components-button {
	height: 60px;
	display: inline-flex;
	align-items: center;
	color: #fff;
	cursor: pointer;
}

#elementor-switch-mode {
	display: inline;
}

#elementor-switch-mode-button {
	margin-top: 15px;
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
	}

	70% {
		box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
	}
}

.dashicons-hub-logo::before {
	display: block;
	width: 23px;
	height: 16px;
	content: '';
	background-image: url("data:image/svg+xml,%3Csvg width='23' height='16' viewBox='0 0 23 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='7' fill='currentColor' fill-opacity='0.7'/%3E%3Ccircle cx='15' cy='8' r='7' fill='currentColor'/%3E%3C/svg%3E");
	background-size: 100%;
	background-position: center;
	background-repeat: no-repeat;
}

/* Template CSS */

.hub-ai-template {
	position: fixed;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background-color: transparent;
	backdrop-filter: blur(4px);
	z-index: 9999999;
	display: none;
	place-content: center;
}

.hub-ai-template-wrapper {
	width: 768px;
	height: auto;
	background-color: #fff;
	box-shadow: 0 0 40px #eee;
	overflow: auto;
}

.hub-ai-template-header {
	display: flex;
	justify-content: space-between;
	background-color: #1e1e1e;
	height: 60px;
	padding: 0 25px;
	position: -webkit-sticky;
	position: sticky;
	top: 0;
}

#hub-ai-form-result {
	display: none;
}

.hub-ai-template-content.result #hub-ai-form-result {
	display: block;
}

.hub-ai-template-content.result #hub-ai-form {
	display: none;
}

.hub-ai-template-header .components-button {
	height: 60px;
}

.hub-ai-template-header .components-button.logo .hub-ai-logo {
	margin-right: 10px;
}

.hub-ai-template-content {
	padding: 30px;
}

.hub-ai-form .form-field {
	margin-bottom: 1.5em;
}

.hub-ai-form .form-field :where(input[type="text"], input[type="number"], textarea, select) {
	width: 100% !important;
	max-width: 100%;
}

.hub-ai-form .form-field>* {
	margin: .3em 0;
}

.hub-ai-form .form-field:not(.options) label {
	display: block;
}

.hub-ai-form .form-field .description {
	display: block;
}

.hub-ai-form .button {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
}

.hub-ai-form .button .lds-ripple {
	margin-right: 15px;
	margin-inline-start: -15px;
}

.hub-ai-form--title {
	padding-bottom: .67em;
	border-bottom: 1px solid #eee;
}

.hub-ai-recreate {
	text-align: center;
	cursor: pointer;
}

.lds-ripple {
	display: none;
	position: relative;
	width: 40px;
	height: 40px;
}

.lds-ripple div {
	position: absolute;
	border: 4px solid #000;
	opacity: 1;
	border-radius: 50%;
	animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
	animation-delay: -0.5s;
}

@keyframes lds-ripple {
	0% {
		top: 15px;
		left: 15px;
		width: 0;
		height: 0;
		opacity: 0;
	}

	4.9% {
		top: 15px;
		left: 15px;
		width: 0;
		height: 0;
		opacity: 0;
	}

	5% {
		top: 15px;
		left: 15px;
		width: 0;
		height: 0;
		opacity: 1;
	}

	100% {
		top: 0px;
		left: 0px;
		width: 30px;
		height: 30px;
		opacity: 0;
	}
}

.hub-ai-form .button.disabled .lds-ripple {
	display: inline-block;
}

.hub-ai-options :where(input, select):not(input[type="submit"]) {
	width: 25em;
}

.hub-ai-logs {
	width: 100%;
	height: 80vh;
	background-color: #fff;
	box-shadow: 0 0 20px #ddd;
	overflow: auto;
}

.generated-images {
	display: none;
}

.generated-images-option {
	display: inline-block;
	text-align: center;
}

.generated-images-option input[type="radio"] {
	display: none;
}

.generated-images-option label {
	display: block;
	cursor: pointer;
}

.generated-images-option img {
	border: 4px solid transparent;
	display: block;
	width: 168px;
	height: 168px;
	object-fit: cover;
}

.generated-images-option input[type="radio"]:checked+label img {
	border-color: #2271b1;
}

.generated-images-wrapper {
	display: flex;
	justify-content: space-between;
}

.hub-ai-examples {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin-top: 1em;
}

.hub-ai-examples span:before {
	content: '✦';
	margin-right: 0.5em;
}

.hub-ai-examples span {
	padding: 0.5em 1em;
	border: 1px solid #eee;
	border-radius: 99px;
	cursor: pointer;
}

.hub-ai-examples span:hover {
	border-color: #000;
	color: #000;
}