
.empb-widget {
	--empb-phone-width: 390px;
	--empb-phone-height: 844px;
	--empb-screen-top: 3.2%;
	--empb-screen-left: 8.9%;
	--empb-screen-width: 80.2%;
	--empb-screen-height: 92.8%;
}

.empb-widget *,
.empb-widget *::before,
.empb-widget *::after {
	box-sizing: border-box;
}

.empb-button-holder {
	display: flex;
	width: 100%;
}

.empb-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 14px 24px;
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
	background: #111111;
	color: #ffffff;
	text-decoration: none;
	line-height: 1.2;
}

.empb-trigger:hover,
.empb-trigger:focus-visible {
	transform: translateY(-1px);
	outline: none;
}

.empb-trigger[disabled],
.empb-trigger[aria-disabled="true"] {
	cursor: not-allowed;
	opacity: 0.6;
	transform: none;
}

.empb-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.empb-modal[hidden] {
	display: none !important;
}

.empb-modal.is-open {
	display: flex;
}

.empb-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
}

.empb-dialog {
	position: relative;
	z-index: 2;
	width: min(calc(100vw - 32px), calc(var(--empb-phone-width) + 48px));
	max-height: calc(100vh - 32px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 18px 0 0;
}

.empb-close {
	position: absolute;
	top: 0;
	right: 0;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	line-height: 1;
	font-size: 28px;
	color: #ffffff;
	background: rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.empb-close:hover,
.empb-close:focus-visible {
	transform: scale(1.04);
	outline: none;
}

.empb-device {
	position: relative;
	width: min(calc(100vw - 32px), var(--empb-phone-width));
	max-width: 100%;
	line-height: 0;
}

.empb-device.has-frame .empb-frame {
	position: relative;
	z-index: 2;
	display: block;
	width: 100%;
	height: auto;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
}

.empb-device.has-frame .empb-screen {
	position: absolute;
	top: var(--empb-screen-top);
	left: var(--empb-screen-left);
	width: var(--empb-screen-width);
	height: var(--empb-screen-height);
	z-index: 1;
	border-radius: 34px;
	overflow: hidden;
	background: #000000;
}

.empb-device.no-frame {
	height: min(calc(100vh - 120px), var(--empb-phone-height));
	border-radius: 36px;
	overflow: hidden;
	background: #080808;
	box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
	border: 10px solid #111111;
}

.empb-device.no-frame .empb-screen {
	width: 100%;
	height: 100%;
	border-radius: inherit;
	overflow: hidden;
	background: #000000;
}

.empb-iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #ffffff;
}

.empb-empty-state {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 320px;
	padding: 24px;
	text-align: center;
	line-height: 1.5;
	font-size: 14px;
	color: #ffffff;
	background: #1a1a1a;
}

.empb-embed-note {
	margin: 0;
	text-align: center;
	font-size: 12px;
	line-height: 1.45;
	color: #f3f3f3;
}

body.empb-no-scroll {
	overflow: hidden;
}

@media (max-width: 767px) {
	.empb-modal {
		padding: 16px;
	}

	.empb-dialog {
		width: min(calc(100vw - 20px), calc(var(--empb-phone-width) + 36px));
		max-height: calc(100vh - 20px);
		padding-top: 44px;
	}

	.empb-close {
		top: 2px;
		right: 2px;
	}
}
