@keyframes mottaSpin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.motta-builder__field {
    display: flex;
}

.motta-builder__field:not(:last-of-type) {
    margin: 0 0 24px;
}

.motta-builder__label {
	font-weight: 600;
	width: 25%;
}

.motta-builder--position .motta-builder__radio {
	display: none;
}

.motta-builder--position .motta-builder__radio + label {
	display: inline-block;
    width: 80px;
    height: 80px;
    margin: 0 20px 20px 0;
    border: 3px solid #d8d8d8;
    border-radius: 3px;
    padding: 2px;
	text-align: center;
}

.motta-builder--position .motta-builder__radio:checked + label {
    border-color: #0074a2;
}

.motta-builder__number {
	min-width: 300px;
}

.motta-builder__select {
	min-width: 300px;
}

.motta-builder__delay-content {
	margin-top: 10px;
}

/************
Styles for toggle buttons
************/
.motta-builder__toggle-button {
	position: relative;
	width: 36px;
	height: 18px;
}

.motta-builder__toggle-button label {
	position: absolute;
	cursor: pointer;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	background-color: #fff;
	transition: background-color 0.2s ease;
	border-radius: 9px;
	border: 1px solid #1e1e1e;
}

.motta-builder__toggle-button label::before {
	position: absolute;
	content: '';
	height: 14px;
	width: 14px;
	left: 2px;
	bottom: 1px;
	background-color: #1e1e1e;
	transition: 0.2s ease;
	border-radius: 50%;
}

.motta-builder__toggle-button input {
	opacity: 0;
	width: 36px;
    height: 18px;
    position: relative;
    z-index: 9;
}

.motta-builder__toggle-button input:focus + label {
	box-shadow: -2px 2px 7px #2196f3;
}

.motta-builder__toggle-button input:checked + label {
	background-color: #9ab927;
}

.motta-builder__toggle-button input:checked + label::before {
	background-color: #fff;
	transform: translateX(15px);
}

table.motta-loading {
	opacity: 0.5;
	pointer-events: none;
}

/* Motta builder template type */
.motta-builder-template-modal {
	position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    z-index: 1100;
}

.motta-builder-template-modal.modal--open {
    visibility: visible;
    z-index: 2000;
}

.motta-builder-template-modal .modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background-color: rgba(0, 0, 0, .6);
}

.motta-builder-template-modal .modal__button-close {
	position: absolute;
    top: 10px;
    right: 10px;
	font-size: 16px;
    cursor: pointer;
}

.motta-builder-template-modal .modal__button-close svg {
	vertical-align: -0.125em;
    width: 1em;
    height: 1em;
    fill: currentColor;
    display: inline-block;
}

.motta-builder-template-modal .modal__content {
	position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    max-width: 400px;
    width: 100%;
    opacity: 0;
    transition: .5s;
	padding: 40px;
}

.motta-builder-template-modal.modal--open .modal__content{
    opacity: 1;
}

.motta-builder-template-modal .modal-content-form__title {
	color: #1d2128;
	font-size: 24px;
	margin-bottom: 20px;
	font-weight: 500;
}

.motta-builder-template-modal .elementor-form-field {
	margin-bottom: 20px;
}

.motta-builder-template-modal .elementor-form-field__select,
.motta-builder-template-modal .elementor-form-field__text {
	width: 100%;
	max-width: 100%;
    border-width: 1px;
    border-style: solid;
    border-color: #dadfe3;
	padding: 12px 22px;
	margin-top: 5px;
}

.motta-builder-template-modal .elementor-button {
	width: 100%;
	background-color: #25b865 !important;
	color: #fff !important;
	padding: 19px 22px;
	position: relative;
	height: 54px;
}

.motta-builder-template-modal .elementor-button:hover {
	color: #fff;
}

.motta-builder-template-modal .modal-content-form-message {
	color: red;
}

.motta-builder-template-modal .elementor-button.motta-loading span {
	display: none;
}

.motta-builder-template-modal .elementor-button.motta-loading:before {
    content: "";
    display: inline-block;
    width: 0;
    height: 13px;
    width: 13px;
    border-radius: 50%;
    border: 2px solid;
    border-top-color: transparent;
    animation: mottaSpin infinite 1s linear;
    transition: width .2s;
	color: #fff !important;
	display: inline-block;
}