:root .esdp-theme-force-light .esdp-root,
.esdp-root {
	color-scheme: light;
}

.esdp-root {
	--esdp-shadow: 0 35px 90px rgba(0, 0, 0, 0.28);
	--esdp-radius: 22px;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html.esdp-open,
body.esdp-open {
	overflow: hidden;
}

.esdp-overlay {
	position: fixed;
	inset: 0;
	background: rgba(6, 13, 20, 0.45);
	backdrop-filter: blur(4px);
	z-index: 999990;
}

.esdp-modal {
	position: fixed;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 18px;
	z-index: 999991;
}

.esdp-modal-shell {
	position: relative;
	width: min(100%, var(--esdp-render-width, 920px));
}

.esdp-modal-inner {
	display: grid;
	grid-template-columns: minmax(420px, 0.96fr) minmax(420px, 1.04fr);
	width: 100%;
	min-height: 560px;
	max-height: calc(100vh - 40px);
	background: var(--esdp-surface);
	border-radius: var(--esdp-radius);
	overflow: hidden;
	box-shadow: var(--esdp-shadow);
	position: relative;
}

.esdp-modal-inner--left {
	grid-template-columns: minmax(420px, 1.04fr) minmax(420px, 0.96fr);
}

.esdp-close {
	position: absolute !important;
	top: max(16px, env(safe-area-inset-top));
	right: max(16px, env(safe-area-inset-right));
	width: 44px;
	height: 44px;
	min-width: 0 !important;
	min-height: 0 !important;
	border-radius: 999px !important;
	border: 0;
	background: rgba(17, 17, 17, 0.84) !important;
	color: #fff;
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
	font-size: 28px;
	font-weight: 500;
	line-height: 1;
	z-index: 12;
	cursor: pointer;
	padding: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.esdp-close:hover {
	transform: scale(1.05);
	background: rgba(17, 17, 17, 0.96);
	opacity: 1;
}

.esdp-copy-panel {
	background: var(--esdp-panel);
	color: var(--esdp-text);
	padding: 32px 28px 34px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.esdp-logo {
	display: inline-block;
	width: fit-content;
	padding: 6px 14px;
	border: 2px solid rgba(255, 255, 255, 0.92);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.38em;
	text-transform: uppercase;
	margin-bottom: 28px;
}

.esdp-kicker {
	margin: 0 0 18px;
	font-size: 10px;
	letter-spacing: 0.32em;
	font-weight: 700;
	text-transform: uppercase;
	opacity: 0.84;
}

.esdp-title {
	margin: 0 0 24px;
	font-size: clamp(42px, 4.2vw, 60px);
	line-height: 0.94;
	font-weight: 800;
	text-transform: uppercase;
	max-width: 320px;
}

.esdp-question {
	margin: 0 0 18px;
	font-size: 14px;
	font-weight: 700;
}

.esdp-form {
	margin-top: auto;
}

.esdp-checkbox-list {
	display: grid;
	gap: 10px;
	margin-bottom: 20px;
}

.esdp-option,
.esdp-consent {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	cursor: pointer;
}

.esdp-option input,
.esdp-consent input,
.esdp-honeypot {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.esdp-option-mark,
.esdp-consent-box {
	width: 22px;
	height: 22px;
	border-radius: 4px;
	border: 2px solid rgba(255, 255, 255, 0.86);
	background: rgba(255, 255, 255, 0.12);
	flex: 0 0 auto;
}

.esdp-option input:checked + .esdp-option-mark,
.esdp-consent input:checked + .esdp-consent-box {
	background: #fff;
	box-shadow: inset 0 0 0 5px var(--esdp-panel);
}

.esdp-option-label {
	font-size: 13px;
	line-height: 1.15;
}

.esdp-email {
	width: 100%;
	height: 54px;
	border: 2px solid rgba(12, 30, 47, 0.12);
	border-radius: 4px;
	padding: 0 16px;
	font-size: 16px;
	color: #1c1c1c;
	font-weight: 700;
	background: #fff;
	margin: 20px 0 14px;
	caret-color: #111;
	-webkit-text-fill-color: #111;
}

.esdp-email::placeholder {
	color: #b4b4b4;
}

.esdp-email:focus,
.esdp-email:not(:placeholder-shown) {
	color: #111;
	-webkit-text-fill-color: #111;
}

.esdp-consent {
	align-items: flex-start;
	font-size: 11px;
	line-height: 1.45;
}

.esdp-error {
	min-height: 22px;
	color: #ffd6d6;
	font-size: 13px;
	margin: 12px 0 8px;
}

.esdp-submit,
.esdp-shop-link,
.esdp-cart-link,
.esdp-copy-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 60px;
	border: 0;
	border-radius: 0;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	background: var(--esdp-button);
	color: var(--esdp-button-text);
	text-decoration: none;
	padding: 12px 20px;
	letter-spacing: 0.04em;
	cursor: pointer;
}

.esdp-submit {
	width: 100%;
	background: #111 !important;
	color: #fff !important;
	box-shadow: none;
}

.esdp-submit:hover {
	transform: none;
	box-shadow: none;
}

.esdp-submit:disabled {
	background: #111 !important;
	color: #fff !important;
	opacity: 1;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
	filter: none;
}

.esdp-image-panel {
	background: #efb191;
	min-height: 100%;
	position: relative;
	overflow: hidden;
}

.esdp-image-panel img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
}

.esdp-tab-wrap {
	position: fixed;
	top: var(--esdp-tab-vertical, 55%);
	transform: translateY(-50%) translateX(100%);
	z-index: var(--esdp-tab-zindex, 999990);
	display: block;
	pointer-events: none;
	opacity: 0;
	transition: transform 0.24s ease, opacity 0.24s ease;
	overflow: visible;
}

.esdp-tab-wrap.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(-50%) translateX(0);
}

.esdp-tab-wrap.is-attention {
	animation: esdp-tab-nudge 0.65s ease-in-out;
}

.esdp-tab-wrap--right {
	right: 0 !important;
}

.esdp-tab-wrap--left {
	left: 0;
	right: auto;
	transform: translateY(-50%) translateX(-100%);
}

.esdp-tab-wrap--left.is-visible {
	transform: translateY(-50%) translateX(0);
}

.esdp-tab {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	background: var(--esdp-tab-bg, #7d513f) !important;
	color: var(--esdp-tab-text, #fff) !important;
	border: 0;
	border-radius: 14px 0 0 14px !important;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
	padding: 14px 10px !important;
	min-height: var(--esdp-tab-height-desktop, 180px) !important;
	width: var(--esdp-tab-width-desktop, 50px);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	pointer-events: auto;
	opacity: 1 !important;
	filter: none !important;
	line-height: 1.05;
	white-space: nowrap;
}

.esdp-tab-wrap--left .esdp-tab {
	border-radius: 0 16px 16px 0 !important;
}

.esdp-tab-text {
	line-height: 1.05;
	display: inline-block;
}

.esdp-tab-dismiss {
	position: absolute !important;
	left: -14px;
	bottom: -14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	min-width: 0 !important;
	min-height: 0 !important;
	border-radius: 999px !important;
	border: 2px solid #fff;
	background: var(--esdp-tab-close-bg, #000) !important;
	color: #fff !important;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
	padding: 0 !important;
	cursor: pointer;
	pointer-events: auto;
	opacity: 1 !important;
	margin: 0;
	z-index: 2;
}

.esdp-tab-wrap--left .esdp-tab-dismiss {
	left: auto;
	right: -14px;
}

.esdp-tab-dismiss span {
	display: inline-block;
	font-size: 21px;
	line-height: 1;
	transform: translateY(-1px);
}

.esdp-tab:focus-visible,
.esdp-tab-dismiss:focus-visible,
.esdp-close:focus-visible,
.esdp-submit:focus-visible {
	outline: 3px solid var(--esdp-accent, #1d73be);
	outline-offset: 3px;
}

.esdp-tab:hover,
.esdp-tab:focus-visible {
	filter: brightness(0.98);
}

.esdp-tab-dismiss:hover,
.esdp-tab-dismiss:focus-visible {
	transform: scale(1.04);
}

.esdp-success {
	margin-top: auto;
	padding-top: 18px;
}

.esdp-success h3 {
	margin: 0 0 10px;
	font-size: 26px;
	line-height: 1;
}

.esdp-code-row {
	display: flex;
	gap: 12px;
	align-items: center;
	margin: 20px 0 12px;
}

.esdp-code {
	padding: 12px 16px;
	background: rgba(255, 255, 255, 0.16);
	border-radius: 10px;
	font-size: 17px;
	font-weight: 700;
	color: #fff;
}

.esdp-success-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 20px;
}

.esdp-cart-link {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.esdp-toast {
	position: fixed;
	right: 24px;
	bottom: 24px;
	background: #141414;
	color: #fff;
	border-radius: 16px;
	padding: 16px 18px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
	z-index: 999992;
	display: grid;
	gap: 4px;
	max-width: 360px;
}

@media (prefers-reduced-motion: no-preference) {
	.esdp-overlay,
	.esdp-modal,
	.esdp-tab,
	.esdp-tab-wrap,
	.esdp-toast {
		animation: esdp-fade-in .24s ease;
	}

	.esdp-submit:not(:disabled) {
		animation: none;
	}
}

@keyframes esdp-fade-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes esdp-pulse {
	0%,
	100% {
		box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
	}
	50% {
		box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
	}
}

@keyframes esdp-tab-nudge {
	0%,
	100% {
		transform: translateY(-50%) translateX(0);
	}
	50% {
		transform: translateY(-50%) translateX(-6px);
	}
}

.esdp-tab-wrap--left.is-attention {
	animation-name: esdp-tab-nudge-left;
}

@keyframes esdp-tab-nudge-left {
	0%,
	100% {
		transform: translateY(-50%) translateX(0);
	}
	50% {
		transform: translateY(-50%) translateX(6px);
	}
}

@media (max-width: 920px) {
	.esdp-modal {
		padding:
			max(12px, env(safe-area-inset-top))
			12px
			max(12px, env(safe-area-inset-bottom));
		align-items: center;
	}

	.esdp-modal-shell {
		width: min(430px, calc(100% - 24px));
		max-width: 430px;
	}

	.esdp-modal-inner,
	.esdp-modal-inner--left {
		display: flex;
		flex-direction: column;
		grid-template-columns: 1fr;
		width: 100%;
		min-height: 0;
		height: auto;
		max-height: 88vh;
		max-height: 92dvh;
		overflow: hidden;
		border-radius: 22px;
	}

	.esdp-copy-panel {
		order: 2;
		padding: 14px 16px 14px;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		flex: 1 1 auto;
	}

	.esdp-title {
		font-size: clamp(22px, 7vw, 30px);
		line-height: 0.96;
		max-width: 260px;
		margin-bottom: 8px;
	}

	.esdp-kicker {
		margin-bottom: 6px;
		font-size: 9px;
		letter-spacing: 0.22em;
	}

	.esdp-question {
		margin-bottom: 8px;
		font-size: 12px;
	}

	.esdp-form {
		margin-top: 0;
	}

	.esdp-checkbox-list {
		gap: 6px;
		margin-bottom: 10px;
	}

	.esdp-option,
	.esdp-consent {
		gap: 10px;
	}

	.esdp-option-mark,
	.esdp-consent-box {
		width: 18px;
		height: 18px;
		border-width: 2px;
	}

	.esdp-option-label {
		font-size: 12px;
		line-height: 1.2;
	}

	.esdp-email {
		height: 44px;
		font-size: 13px;
		padding: 0 14px;
		margin: 10px 0 8px;
		border-radius: 10px;
	}

	.esdp-consent {
		font-size: 10px;
		line-height: 1.3;
	}

	.esdp-error {
		min-height: 16px;
		font-size: 11px;
		margin: 6px 0 4px;
	}

	.esdp-submit,
	.esdp-shop-link,
	.esdp-cart-link,
	.esdp-copy-button {
		min-height: 44px;
		font-size: 12px;
		padding: 10px 14px;
	}

	.esdp-image-panel {
		order: 1;
		flex: 0 0 clamp(200px, 34vh, 300px);
		min-height: 200px;
		max-height: 300px;
	}

	.esdp-image-panel img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center 22%;
	}

	.esdp-close {
		top: max(10px, env(safe-area-inset-top));
		right: max(10px, env(safe-area-inset-right));
		width: 42px;
		height: 42px;
		background: rgba(17, 17, 17, 0.8);
		color: #fff;
		border-radius: 999px;
		font-size: 24px;
		line-height: 1;
	}

	.esdp-tab-wrap {
		top: clamp(52%, var(--esdp-tab-vertical, 55%), 72%);
		right: env(safe-area-inset-right);
	}

	.esdp-tab {
		min-height: var(--esdp-tab-height-mobile, 130px) !important;
		width: var(--esdp-tab-width-mobile, 44px);
		font-size: 12px;
		padding: 10px 7px !important;
	}

	.esdp-tab-dismiss {
		width: 28px;
		height: 28px;
		left: -10px;
		bottom: -10px;
	}

	.esdp-image-panel--hide-mobile {
		display: none;
	}
}
