/* EVOdream - Dobór poduszki. Prefiks .edp-, zero wycieku stylów do motywu. */

.edp-wrap {
	--edp-teal: #00D7B6;
	--edp-teal-dark: #0A9E8C;
	--edp-teal-deep: #087E70;
	--edp-teal-soft: #E6FAF6;
	--edp-ink: #111111;
	--edp-ink-2: #3A4A47;
	--edp-muted: #7A8A87;
	--edp-line: #E3EAE8;
	--edp-card: rgba(255, 255, 255, 0.86);
	--edp-radius: 28px;
	--edp-radius-sm: 18px;
	--edp-font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--edp-shadow: 0 24px 60px -24px rgba(8, 126, 112, 0.28), 0 2px 8px rgba(17, 17, 17, 0.04);
	--edp-bg-image: none;

	position: relative;
	box-sizing: border-box;
	width: 100%;
	margin: 0 auto;
	padding: clamp(20px, 4vw, 56px) clamp(16px, 4vw, 48px);
	background:
		linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0) 78%, #FFFFFF 100%),
		var(--edp-bg-image) center / cover no-repeat,
		radial-gradient(1200px 500px at 10% -10%, rgba(0, 215, 182, 0.16), transparent 60%),
		radial-gradient(900px 500px at 100% 110%, rgba(0, 215, 182, 0.14), transparent 60%),
		linear-gradient(180deg, #F6FBFA 0%, #EEF6F4 100%);
	font-family: var(--edp-font);
	color: var(--edp-ink);
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	overflow: clip;
}
/* Pełna szerokość strony (wyjście z kontenera motywu) */
.edp-width-full { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-radius: 0; }
.edp-width-boxed { max-width: 1120px; border-radius: calc(var(--edp-radius) + 8px); }
.edp-wrap::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.12); pointer-events: none; }
.edp-wrap > .edp-card { position: relative; z-index: 1; }
@media (max-width: 719px) { .edp-wrap { --edp-bg-image: var(--edp-bg-image-mobile, var(--edp-bg-image)); } }
.edp-wrap *, .edp-wrap *::before, .edp-wrap *::after { box-sizing: border-box; }
.edp-wrap h2, .edp-wrap p, .edp-wrap ul, .edp-wrap ol { margin: 0; padding: 0; }
.edp-wrap button { font: inherit; }
/* Odporność na style motywu (Woodmart, Elementor) */
.edp-wrap .edp-btn, .edp-wrap .edp-tile { text-transform: none; letter-spacing: .01em; box-shadow: none; line-height: 1.2; font-family: var(--edp-font); margin: 0; }
.edp-wrap a.edp-btn, .edp-wrap a.edp-btn:hover, .edp-wrap a.edp-btn:focus { text-decoration: none; }
.edp-wrap .edp-title, .edp-wrap .edp-result-name { margin-bottom: 0; }

.edp-card {
	position: relative;
	max-width: 1120px;
	margin: 0 auto;
	background: var(--edp-card);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: var(--edp-radius);
	box-shadow: var(--edp-shadow);
	padding: clamp(20px, 4vw, 44px) clamp(18px, 4vw, 48px) clamp(22px, 3.5vw, 40px);
	overflow: clip;
}

.edp-head { display: flex; justify-content: center; margin-bottom: clamp(16px, 3vw, 28px); }
.edp-logo { height: 44px; width: auto; max-width: 220px; display: block; }

.edp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Animacje kroków ---------- */
.edp-step { opacity: 0; transform: translateX(24px); transition: opacity .32s ease, transform .38s cubic-bezier(.2,.7,.2,1); }
.edp-enter-left { transform: translateX(-24px); }
.edp-step.edp-entered { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.edp-step { transition: none; transform: none; opacity: 1; }
}

/* ---------- Pasek postępu ---------- */
.edp-wrap .edp-progress { margin: 0 auto clamp(20px, 3vw, 30px); max-width: 560px; }
.edp-prog-list { list-style: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.edp-prog-item { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 64px; flex: 0 0 auto; }
.edp-prog-dot {
	width: 34px; height: 34px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 14px;
	background: #fff; color: var(--edp-muted);
	border: 2px solid var(--edp-line);
	transition: all .3s ease;
}
.edp-prog-dot svg { width: 16px; height: 16px; }
.edp-prog-item.is-active .edp-prog-dot { background: var(--edp-teal-dark); border-color: var(--edp-teal-dark); color: #fff; box-shadow: 0 0 0 6px rgba(0, 215, 182, 0.18); }
.edp-prog-item.is-done .edp-prog-dot { background: var(--edp-teal); border-color: var(--edp-teal); color: #fff; }
.edp-prog-label { font-size: 12.5px; font-weight: 500; color: var(--edp-muted); letter-spacing: .01em; white-space: nowrap; }
.edp-prog-item.is-active .edp-prog-label { color: var(--edp-teal-deep); font-weight: 700; }
.edp-prog-item.is-done .edp-prog-label { color: var(--edp-ink-2); }
.edp-prog-line { flex: 1 1 auto; height: 2px; margin-top: 16px; background: var(--edp-line); border-radius: 2px; position: relative; overflow: hidden; }
.edp-prog-line::after { content: ""; position: absolute; inset: 0; background: var(--edp-teal); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.edp-prog-line.is-done::after { transform: scaleX(1); }

/* ---------- Nagłówki ---------- */
.edp-title { text-align: center; font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.edp-wrap .edp-subtitle { text-align: center; color: var(--edp-muted); font-size: clamp(14px, 1.6vw, 16px); margin-top: 8px; }

/* ---------- Kafelki ---------- */
.edp-wrap .edp-tiles { display: grid; gap: clamp(10px, 1.6vw, 16px); margin: clamp(20px, 3vw, 30px) 0; }
.edp-tiles-mattress, .edp-tiles-position { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.edp-tiles-shoulders { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (min-width: 720px) {
	.edp-tiles-mattress, .edp-tiles-position { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
	.edp-tiles-shoulders { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.edp-tiles-shoulders .edp-tile:nth-child(4), .edp-tiles-shoulders .edp-tile:nth-child(5) { grid-column: span 1; }
}

.edp-tile {
	position: relative;
	background-image: radial-gradient(70% 55% at 50% 42%, rgba(0, 215, 182, 0.07), transparent 70%);
	display: flex; flex-direction: column; align-items: center; text-align: center;
	gap: 6px;
	padding: clamp(14px, 2vw, 20px) 10px clamp(14px, 2vw, 18px);
	background: #fff;
	border: 2px solid var(--edp-line);
	border-radius: var(--edp-radius-sm);
	color: var(--edp-ink);
	cursor: pointer;
	transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
	-webkit-tap-highlight-color: transparent;
	min-height: 100%;
}
.edp-tile:hover { transform: translateY(-2px); border-color: #BFE9E1; box-shadow: 0 12px 28px -14px rgba(8, 126, 112, 0.35); }
.edp-tile:focus-visible { outline: 3px solid var(--edp-teal); outline-offset: 2px; }
.edp-tile.is-selected { border-color: var(--edp-teal); background: var(--edp-teal-soft); box-shadow: 0 0 0 4px rgba(0, 215, 182, 0.16); }
.edp-tile-check {
	position: absolute; top: 10px; right: 10px;
	width: 24px; height: 24px; border-radius: 50%;
	background: var(--edp-teal); color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	opacity: 0; transform: scale(.6); transition: all .2s ease;
}
.edp-tile-check svg { width: 14px; height: 14px; }
.edp-tile.is-selected .edp-tile-check { opacity: 1; transform: scale(1); }
.edp-tile-icon { display: block; width: 100%; max-width: 168px; aspect-ratio: 4 / 3; color: var(--edp-teal-dark); }
.edp-tile-icon svg { width: 100%; height: 100%; display: block; }
.edp-tile-icon img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 10px 14px rgba(8, 126, 112, 0.14)); transition: transform .25s ease; }
.edp-tile:hover .edp-tile-icon img, .edp-tile.is-selected .edp-tile-icon img { transform: translateY(-3px) scale(1.04); }
.edp-tiles-shoulders .edp-tile-icon { max-width: 120px; }
.edp-tile.is-selected .edp-tile-icon { color: var(--edp-teal-deep); }
.edp-tile-label { font-weight: 700; font-size: clamp(14px, 1.7vw, 16px); line-height: 1.25; }
.edp-tiles-shoulders .edp-tile-label { font-size: clamp(18px, 2.4vw, 24px); }
.edp-tile-hint { font-size: 12.5px; color: var(--edp-muted); line-height: 1.3; }

/* ---------- Przyciski ---------- */
.edp-wrap .edp-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.edp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 26px;
	border-radius: 999px; border: 2px solid transparent;
	font-weight: 700; font-size: 15.5px; letter-spacing: .01em;
	cursor: pointer; text-decoration: none;
	transition: transform .18s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
	-webkit-tap-highlight-color: transparent;
}
.edp-btn-arrow { display: inline-flex; width: 20px; height: 20px; }
.edp-btn-arrow svg { width: 100%; height: 100%; }
.edp-wrap .edp-btn-primary {
	background: linear-gradient(135deg, var(--edp-teal-dark) 0%, #0CB7A2 100%);
	color: #fff;
	box-shadow: 0 14px 30px -14px rgba(8, 126, 112, 0.65);
	min-width: 180px;
}
.edp-nav .edp-btn { flex: 0 1 auto; min-width: 0; }
@media (max-width: 480px) {
	.edp-nav .edp-btn { flex: 1 1 0; padding: 0 14px; font-size: 14.5px; min-height: 48px; }
	.edp-nav .edp-btn-primary { flex: 1.4 1 0; }
	.edp-prog-label { font-size: 11.5px; }
	.edp-prog-item { min-width: 54px; }
	.edp-prog-dot { width: 30px; height: 30px; font-size: 13px; }
	.edp-btn-cta { width: 100%; min-width: 0; }
}
.edp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(8, 126, 112, 0.75); color: #fff; }
.edp-btn-primary:disabled { background: #D7E3E0; color: #fff; box-shadow: none; cursor: not-allowed; transform: none; }
.edp-wrap .edp-btn-ghost { background: #fff; color: var(--edp-ink-2); border-color: var(--edp-line); }
.edp-btn-ghost:hover { border-color: #BFE9E1; color: var(--edp-teal-deep); }
.edp-btn-ghost:disabled { opacity: .45; cursor: default; }
.edp-btn:focus-visible { outline: 3px solid var(--edp-teal); outline-offset: 2px; }

/* ---------- Wynik ---------- */
.edp-result-grid { display: grid; gap: clamp(20px, 3vw, 40px); align-items: center; }
@media (min-width: 820px) { .edp-result-grid { grid-template-columns: 1.05fr 1fr; } }
.edp-wrap .edp-badge {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--edp-teal-soft); color: var(--edp-teal-deep);
	font-weight: 600; font-size: 13.5px;
	padding: 7px 14px 7px 10px; border-radius: 999px;
}
.edp-badge-icon { width: 20px; height: 20px; border-radius: 50%; background: var(--edp-teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.edp-badge-icon svg { width: 12px; height: 12px; }
.edp-wrap .edp-result-name { display: flex; flex-direction: column; margin-top: 16px; line-height: 1.05; letter-spacing: -0.02em; }
.edp-result-brand { font-size: clamp(22px, 3vw, 32px); font-weight: 700; color: var(--edp-ink); }
.edp-result-model { font-size: clamp(36px, 5.6vw, 56px); font-weight: 800; color: var(--edp-teal-dark); }
.edp-wrap .edp-result-dims { margin-top: 10px; font-size: clamp(16px, 2vw, 19px); font-weight: 600; color: var(--edp-ink-2); }
.edp-wrap .edp-price { margin-top: 8px; font-size: 18px; display: flex; gap: 10px; align-items: baseline; }
.edp-price s { color: var(--edp-muted); font-weight: 500; }
.edp-price strong { font-size: 22px; color: var(--edp-ink); }
.edp-wrap .edp-result-reason { margin-top: 16px; color: var(--edp-ink-2); font-size: clamp(14.5px, 1.6vw, 16px); line-height: 1.6; }
.edp-wrap .edp-features { list-style: none; margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.edp-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--edp-ink-2); }
.edp-feat-icon { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1.5px solid #CDEDE7; color: var(--edp-teal-dark); display: inline-flex; align-items: center; justify-content: center; }
.edp-feat-icon svg { width: 20px; height: 20px; }

.edp-result-media { position: relative; display: flex; align-items: center; justify-content: center; padding: 28px 10px 10px; }
.edp-result-media::before {
	content: ""; position: absolute; inset: 12% 6%;
	background: radial-gradient(closest-side, rgba(0, 215, 182, 0.22), transparent 70%);
	border-radius: 50%; z-index: 0;
}
.edp-result-img {
	position: relative; z-index: 1;
	width: 100%; max-width: 520px; height: auto;
	border-radius: 22px;
	filter: drop-shadow(0 30px 40px rgba(8, 126, 112, 0.22));
	animation: edp-float 6s ease-in-out infinite;
}
@keyframes edp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .edp-result-img { animation: none; } }
.edp-result-note {
	position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 2;
	display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
	font-family: var(--edp-font); font-size: 13px; font-weight: 600; color: var(--edp-teal-deep);
	background: #fff; border: 1.5px solid #CDEDE7; padding: 6px 14px 6px 6px; border-radius: 999px;
	box-shadow: 0 10px 22px -12px rgba(8, 126, 112, 0.45);
}
.edp-result-note-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--edp-teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.edp-result-note-icon svg { width: 14px; height: 14px; }
@media (max-width: 819px) { .edp-result-media { order: -1; padding-top: 22px; } }

.edp-wrap .edp-result-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: clamp(24px, 3vw, 34px); }
.edp-btn-cta { min-width: min(100%, 380px); min-height: 60px; font-size: 18px; }
.edp-btn-restart { min-height: 46px; font-size: 14.5px; font-weight: 600; }
.edp-wrap .edp-help { text-align: center; margin-top: 26px; font-size: 14px; color: var(--edp-ink-2); }
.edp-help a { color: var(--edp-teal-deep); font-weight: 700; text-decoration: none; }
.edp-help a:hover { text-decoration: underline; }
.edp-wrap .edp-disclaimer { text-align: center; margin-top: 12px; line-height: 1.5; font-size: 12px; color: var(--edp-muted); }
.edp-error { text-align: center; color: #9b2c2c; padding: 20px 0; }

/* ---------- Ciemny wariant (opcjonalny, shortcode theme="dark") ---------- */
.edp-theme-dark { background: radial-gradient(900px 500px at 0% 0%, rgba(0, 215, 182, 0.18), transparent 60%), #0F1B19; }
.edp-theme-dark .edp-card { --edp-card: rgba(255, 255, 255, 0.96); }

@media (max-width: 480px) {
	.edp-wrap .edp-features { grid-template-columns: 1fr; }
}
