.smcr-switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 26px;

	input {
		opacity: 0;
		width: 0;
		height: 0;

		&:checked+.smcr-slider {
			background-color: #4caf50;

			&::before {
				transform: translateX(24px);
			}
		}

		&:focus+.smcr-slider {
			box-shadow: 0 0 1px #4caf50;
		}

		&:disabled+.smcr-slider {
			background-color: #ccc;
			cursor: not-allowed;

			&::before {
				background-color: #999;
			}
		}
	}
}

.smcr-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: background-color 0.4s;
	border-radius: 34px;

	&::before {
		position: absolute;
		content: "";
		height: 20px;
		width: 20px;
		left: 3px;
		bottom: 3px;
		background-color: #fff;
		transition: transform 0.4s;
		border-radius: 50%;
	}
}

#smcr-custom-scripts-popup {
	.smcr-modal-overlay {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.5);
		z-index: 9998;
	}

	.smcr-modal-content {
		position: fixed;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		background: #fff;
		padding: 20px;
		width: 800px;
		max-width: 95%;
		z-index: 9999;
		border-radius: 5px;

		.smcr-modal-header {
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-bottom: 15px;

			h2 {
				margin: 0;
			}

			button.smcr-modal-btn-close {
				border: none;
				background: none;
				box-shadow: none;
				cursor: pointer;
			}


		}

		.smcr-modal-tabs {
			margin-bottom: 10px;
			display: flex;
			justify-content: space-between;
			align-items: center;

			.smcr-modal-tab-left {
				.smcr-tab-btn {
					padding: 5px 15px;
					margin-right: 5px;
					border: none;
					background: #f1f1f1;
					cursor: pointer;

					&.active {
						background: #007cba;
						color: #fff;
					}
				}
			}

			.smcr-modal-tab-right {
				.smcr-tab-enable-checkbox {
					display: none;

					&.active {
						display: block;
					}
				}
			}
		}

		.smcr-modal-body {
			.smcr-tab-content {
				display: none;

				&.active {
					display: block;
				}
			}
		}

		.smcr-modal-footer {
			margin-top: 15px;
			text-align: right;

			.smcr-modal-btn-cancel {
				border: none;
				background: none;
				box-shadow: none;
				cursor: pointer;
			}
		}
	}
}