.edt-pwa-root,
.edt-pwa-root * {
	box-sizing: border-box;
}

.edt-pwa-root[hidden] {
	display: none !important;
}

.edt-pwa-root {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 18px 12px max(18px, env(safe-area-inset-bottom));
	font-family: "Lexend", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--edt-pwa-text, #3f291e);
}

.edt-pwa-position-center {
	align-items: center;
	padding-top: max(18px, env(safe-area-inset-top));
}

.edt-pwa-backdrop {
	position: absolute;
	inset: 0;
	background: var(--edt-pwa-overlay, #1c100b);
	opacity: var(--edt-pwa-overlay-opacity, 0.64);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.edt-pwa-dialog {
	position: relative;
	width: min(100%, 520px);
	max-height: calc(100dvh - max(36px, env(safe-area-inset-top)) - max(18px, env(safe-area-inset-bottom)));
	overflow-x: hidden;
	overflow-y: auto;
	padding: 26px 24px 20px;
	border: 1px solid color-mix(in srgb, var(--edt-pwa-accent, #8b5e3c) 25%, transparent);
	border-radius: var(--edt-pwa-radius, 28px);
	background:
		radial-gradient(circle at 92% 5%, color-mix(in srgb, var(--edt-pwa-accent, #8b5e3c) 12%, transparent), transparent 33%),
		var(--edt-pwa-bg, #f4ebdd);
	box-shadow: 0 24px 70px rgb(27 13 7 / 38%), 0 2px 10px rgb(27 13 7 / 12%);
	outline: 0;
	transform: translateY(0);
	animation: edt-pwa-rise 480ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
	-webkit-overflow-scrolling: touch;
}

.edt-pwa-position-bottom .edt-pwa-dialog {
	border-bottom-left-radius: max(18px, var(--edt-pwa-radius, 28px));
	border-bottom-right-radius: max(18px, var(--edt-pwa-radius, 28px));
}

.edt-pwa-position-center .edt-pwa-dialog {
	animation-name: edt-pwa-scale;
}

.edt-pwa-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: color-mix(in srgb, var(--edt-pwa-text, #3f291e) 8%, transparent);
	color: var(--edt-pwa-text, #3f291e);
	cursor: pointer;
	transition: background-color 160ms ease, transform 160ms ease;
}

.edt-pwa-close svg {
	width: 19px;
	height: 19px;
	fill: currentColor;
}

.edt-pwa-close:active {
	transform: scale(0.94);
}

.edt-pwa-close:focus-visible,
.edt-pwa-install:focus-visible,
.edt-pwa-later:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--edt-pwa-accent, #8b5e3c) 55%, white);
	outline-offset: 3px;
}

.edt-pwa-heading-row {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 15px;
	padding-right: 30px;
}

.edt-pwa-icon {
	flex: 0 0 68px;
	width: 68px;
	height: 68px;
	border: 2px solid color-mix(in srgb, var(--edt-pwa-accent, #8b5e3c) 24%, white);
	border-radius: 18px;
	background: var(--edt-pwa-accent, #8b5e3c);
	box-shadow: 0 8px 20px rgb(50 26 15 / 18%);
	object-fit: cover;
}

.edt-pwa-heading-copy {
	min-width: 0;
}

.edt-pwa-eyebrow {
	margin: 0 0 2px !important;
	color: var(--edt-pwa-accent, #8b5e3c);
	font: 700 10px/1.4 "Lexend", system-ui, sans-serif !important;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.edt-pwa-dialog h2 {
	margin: 0 !important;
	color: var(--edt-pwa-text, #3f291e) !important;
	font: 700 clamp(25px, 7vw, 32px)/1.04 "DM Serif Text", Georgia, serif !important;
	letter-spacing: 0 !important;
}

.edt-pwa-description {
	position: relative;
	z-index: 2;
	margin: 18px 0 0 !important;
	color: color-mix(in srgb, var(--edt-pwa-text, #3f291e) 86%, white) !important;
	font: 400 14px/1.58 "Lexend", system-ui, sans-serif !important;
}

.edt-pwa-benefits {
	position: relative;
	z-index: 2;
	display: grid;
	gap: 9px;
	margin: 17px 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.edt-pwa-benefits li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 0 !important;
	color: var(--edt-pwa-text, #3f291e);
	font: 500 12.5px/1.45 "Lexend", system-ui, sans-serif !important;
}

.edt-pwa-benefits li span {
	display: grid;
	flex: 0 0 20px;
	place-items: center;
	width: 20px;
	height: 20px;
	margin-top: -1px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--edt-pwa-accent, #8b5e3c) 15%, transparent);
	color: var(--edt-pwa-accent, #8b5e3c);
	font-size: 12px;
	font-weight: 800;
}

.edt-pwa-actions {
	position: relative;
	z-index: 2;
	display: grid;
	gap: 8px;
	margin-top: 21px;
}

.edt-pwa-install,
.edt-pwa-later {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 12px 18px;
	border-radius: 15px;
	font: 700 14px/1.2 "Lexend", system-ui, sans-serif;
	cursor: pointer;
	touch-action: manipulation;
}

.edt-pwa-install {
	border: 1px solid var(--edt-pwa-accent, #8b5e3c);
	background: var(--edt-pwa-accent, #8b5e3c);
	color: var(--edt-pwa-button-text, #fff9f0);
	box-shadow: 0 10px 22px color-mix(in srgb, var(--edt-pwa-accent, #8b5e3c) 25%, transparent);
	transition: filter 160ms ease, transform 160ms ease;
}

.edt-pwa-install:active {
	filter: brightness(0.92);
	transform: translateY(1px);
}

.edt-pwa-later {
	min-height: 40px;
	border: 0;
	background: transparent;
	color: color-mix(in srgb, var(--edt-pwa-text, #3f291e) 72%, transparent);
}

.edt-pwa-note {
	position: relative;
	z-index: 2;
	margin: 5px 0 0 !important;
	color: color-mix(in srgb, var(--edt-pwa-text, #3f291e) 52%, transparent) !important;
	font: 400 9.5px/1.4 "Lexend", system-ui, sans-serif !important;
	letter-spacing: 0.02em;
	text-align: center;
}

.edt-pwa-vinyl {
	position: absolute;
	top: -45px;
	right: -48px;
	width: 145px;
	height: 145px;
	border: 1px solid color-mix(in srgb, var(--edt-pwa-accent, #8b5e3c) 12%, transparent);
	border-radius: 50%;
	background:
		radial-gradient(circle, var(--edt-pwa-bg, #f4ebdd) 0 5px, var(--edt-pwa-accent, #8b5e3c) 6px 15px, transparent 16px),
		repeating-radial-gradient(circle, color-mix(in srgb, var(--edt-pwa-text, #3f291e) 10%, transparent) 0 1px, transparent 2px 7px);
	opacity: 0.52;
	pointer-events: none;
}

.edt-pwa-vinyl span {
	position: absolute;
	inset: 28px;
	border: 1px solid color-mix(in srgb, var(--edt-pwa-accent, #8b5e3c) 20%, transparent);
	border-radius: 50%;
}

body.edt-pwa-open {
	overflow: hidden !important;
	touch-action: none;
}

@keyframes edt-pwa-rise {
	from { opacity: 0; transform: translateY(32px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes edt-pwa-scale {
	from { opacity: 0; transform: translateY(10px) scale(0.965); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 380px) {
	.edt-pwa-root {
		padding-right: 9px;
		padding-left: 9px;
	}

	.edt-pwa-dialog {
		padding: 22px 19px 17px;
	}

	.edt-pwa-icon {
		flex-basis: 60px;
		width: 60px;
		height: 60px;
		border-radius: 16px;
	}

	.edt-pwa-heading-row {
		gap: 12px;
	}

	.edt-pwa-description {
		font-size: 13px !important;
	}

	.edt-pwa-benefits li {
		font-size: 11.8px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.edt-pwa-dialog {
		animation: none;
	}

	.edt-pwa-close,
	.edt-pwa-install {
		transition: none;
	}
}
