/* Simulated Viewport Styles - Applied by JS */
html.device-desktop {
	width: 100%;
	max-width: 100vw !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

html.device-tablet body {
	width: 768px !important;
	max-width: 100vw !important;
	margin-left: auto !important;
	margin-right: auto !important;
	border-left: 1px solid #e5e7eb;
	border-right: 1px solid #e5e7eb;
}

html.device-mobile body {
	width: 375px !important;
	max-width: 100vw !important;
	margin-left: auto !important;
	margin-right: auto !important;
	border-left: 1px solid #e5e7eb;
	border-right: 1px solid #e5e7eb;
}

/* Ensure body starts after the bar when active */
body.templately-live-demo-active {
	margin-top: 72px !important;
}

/* Ensure body starts after the bar when active */
body.templately-live-demo-active .alignfull,
body.templately-live-demo-active .alignfull img {
	width: 100% !important;
	margin-inline: auto !important;
}

/* Live Demo Top Bar Styles */
#templately-live-demo-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 72px;
	background: #f2f5f7;
	box-shadow: 0px 1px 0px #e5e7eb;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 32px;
	padding: 0 30px;
	box-sizing: border-box;
	font-family: 'Inter', sans-serif;
	transition: top 150ms ease-in-out;
}

.templately-bar-logo-wrapper {
	display: flex;
	flex-direction: row;
	align-items: center;
	column-gap: 32px;
	row-gap: 4px;
}

/* Logo */
.templately-bar-logo svg {
	height: 32px;
	width: auto;
	display: block;
}

/* Responsive Controls */
.templately-responsive-controls {
	display: flex;
	gap: 12px;
}

.device-btn {
	background: #ffffff;
	color: #737985;
	border: none;
	padding: 0;
	cursor: pointer;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s;
}

.device-btn:hover {
	background: #fafbfc !important;
	color: #737985 !important;
	border: none !important;
	padding: 0 !important;
	cursor: pointer !important;
	width: 40px !important;
	height: 40px !important;
	border-radius: 8px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.device-btn svg {
	width: 40px;
	height: 40px;
	display: block;
}

html.device-desktop .device-btn.desktop {
	background: #fafbfc !important;
	color: #5632d1 !important;
}

html.device-tablet .device-btn.tablet {
	background: #fafbfc !important;
	color: #5632d1 !important;
}

html.device-mobile .device-btn.mobile {
	background: #fafbfc !important;
	color: #5632d1 !important;
}

/* Actions */
.templately-bar-actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 16px;
}

.btn-buy-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 20px;
	background: #5633d1;
	color: #fafbfc;
	font-weight: 500;
	font-size: 16px;
	border-radius: 4px;
	text-decoration: none;
	box-sizing: border-box;
	transition: background-color 0.2s;
	box-shadow: 0 0 0 4px rgba(190, 169, 255, 0.3);
	white-space: nowrap;
}

.btn-buy-item:hover {
	background: #4328a3;
	color: white;
}

.btn-item-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	padding: 0 8px;
	background: transparent;
	color: #535865;
	border: 1px solid #e4e7eb;
	border-radius: 32px;
	font-weight: 500;
	font-size: 14px;
	text-decoration: none;
	box-sizing: border-box;
	white-space: nowrap;
}

@media (max-width: 575.98px) {
	.templately-bar-logo-wrapper {
		flex-direction: column;
		align-items: flex-start;
	}

	/* Responsive Controls */
	.templately-responsive-controls {
		gap: 4px;
	}

	.device-btn {
		width: 28px;
		height: 28px;
		border-radius: 4px;
	}

	.device-btn:hover {
		width: 28px !important;
		height: 28px !important;
		border-radius: 4% !important;
	}

	.device-btn svg {
		width: 28px;
		height: 28px;
	}

	.btn-buy-item {
		height: 32px;
		padding: 0 8px;
		font-size: 12px;
	}

	.btn-item-status {
		height: 28px;
		font-size: 12px;
	}
}
