/* DS Demo Switcher v5.0.0 */

.ds-demo {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
}

/* Toggle gumbi */
.ds-demo__toggle {
	display: inline-flex;
	background: #f1f1f1;
	border-radius: 50px;
	padding: 4px;
	gap: 3px;
}

.ds-demo__btn {
	padding: 8px 22px;
	border: none;
	border-radius: 50px;
	background: transparent;
	color: #666;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .18s, color .18s, box-shadow .18s;
	line-height: 1;
}

.ds-demo__btn:hover {
	color: #111;
}

.ds-demo__btn.is-active {
	background: #fff;
	color: #111;
	box-shadow: 0 1px 5px rgba(0,0,0,.12);
}

/* iframe */
.ds-demo__frame-wrap {
	position: relative;
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
}

.ds-demo__iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

/* Loader */
.ds-demo__loader {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #f8f8f8;
	font-size: 14px;
	color: #999;
	pointer-events: none;
	transition: opacity .2s;
}

.ds-demo__loader.is-hidden {
	opacity: 0;
}

.ds-demo__spinner {
	width: 18px;
	height: 18px;
	border: 2px solid #ddd;
	border-top-color: #111;
	border-radius: 50%;
	animation: ds-spin .7s linear infinite;
	flex-shrink: 0;
}

@keyframes ds-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
	.ds-demo__btn {
		padding: 7px 14px;
		font-size: 13px;
	}
}
