/* Wpłaty HotPay – Wygrajmy Zdrowie
   Kolory i typografia zgodne z motywem wygrajmyzdrowie.pl. */

.wz-wplaty {
	--wz-green: #56b439;
	--wz-green-dark: #327a1b;
	--wz-ink: #33373d;
	--wz-muted: #6b7079;
	--wz-line: #dcdfe3;
	--wz-bg: #ffffff;
	--wz-radius: 4px;
	--wz-content-width: 720px;
	--wz-section-bg: transparent;

	box-sizing: border-box;
	font-family: "Hind Siliguri", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--wz-ink);
}

.wz-wplaty *,
.wz-wplaty *::before,
.wz-wplaty *::after {
	box-sizing: inherit;
}

.wz-wplaty {
	background: var(--wz-section-bg);
}

.wz-wplaty__form {
	max-width: var(--wz-content-width);
	margin: 0 auto;
	padding: 32px 20px 36px;
	text-align: center;
}

/* --- pełna szerokość ---
   Wyrywa sekcję z kontenera motywu/Elementora. 100vw liczy się razem
   ze scrollbarem, więc samo w sobie dorzuciłoby poziomy pasek przewijania —
   stąd overflow-x na dokumencie, ograniczone do stron z tym wariantem. */

.wz-wplaty--full {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

html:has(.wz-wplaty--full),
body:has(.wz-wplaty--full) {
	overflow-x: hidden;
}

.wz-wplaty--card .wz-wplaty__form {
	background: var(--wz-bg);
	border: 1px solid var(--wz-line);
	border-radius: 8px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

/* --- nagłówek i pasek --- */

.wz-wplaty__heading {
	margin: 0 0 18px;
	font-family: Barlow, "Hind Siliguri", sans-serif;
	font-size: clamp(24px, 4vw, 32px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--wz-ink);
}

.wz-wplaty__ribbon {
	margin: 0 0 28px;
	padding: 12px 20px;
	background: var(--wz-green);
	color: #fff;
	font-size: clamp(15px, 2.2vw, 19px);
	font-weight: 700;
	line-height: 1.35;
}

/* Pasek ma sięgać krawędzi sekcji w układzie hero. */
.wz-wplaty--hero .wz-wplaty__ribbon {
	margin-left: -20px;
	margin-right: -20px;
}

/* Przy pełnej szerokości pasek biegnie od krawędzi ekranu.
   Reguła stoi po wariancie hero, bo oba selektory mają tę samą wagę. */
.wz-wplaty--full .wz-wplaty__ribbon {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-left: 20px;
	padding-right: 20px;
}

.wz-wplaty__alert {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-left: 4px solid #c0392b;
	background: #fdeceb;
	color: #8c261a;
	font-size: 15px;
	text-align: left;
}

.wz-wplaty__legend {
	display: block;
	width: 100%;
	margin: 0 0 12px;
	padding: 0;
	font-family: Barlow, "Hind Siliguri", sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: var(--wz-ink);
}

.wz-wplaty__amounts,
.wz-wplaty__methods {
	margin: 0 0 28px;
	padding: 0;
	border: 0;
}

/* --- kafelki z kwotami --- */

.wz-wplaty__amounts {
	display: grid;
	grid-template-columns: repeat(3, 1fr) 1.6fr;
	gap: 12px;
}

.wz-wplaty__amounts .wz-wplaty__legend {
	grid-column: 1 / -1;
}

/* Radio zostaje w DOM dla dostępności, ale nie jest widoczne. */
.wz-wplaty__radio {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.wz-wplaty__tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 132px;
	padding: 12px;
	border: 2px solid var(--wz-green);
	border-radius: var(--wz-radius);
	background: var(--wz-bg);
	color: var(--wz-green);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.wz-wplaty__tile:hover {
	background: rgba(86, 180, 57, 0.08);
}

.wz-wplaty__value {
	font-family: Barlow, "Hind Siliguri", sans-serif;
	font-size: clamp(30px, 6vw, 46px);
	font-weight: 700;
	line-height: 1;
}

.wz-wplaty__currency {
	margin-top: 4px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.wz-wplaty__radio:checked + .wz-wplaty__tile {
	background: var(--wz-green);
	color: #fff;
}

.wz-wplaty__radio:focus-visible + .wz-wplaty__tile,
.wz-wplaty__radio:focus-visible + .wz-wplaty__method {
	outline: 3px solid var(--wz-green-dark);
	outline-offset: 2px;
}

/* --- kafelek kwoty własnej --- */

.wz-wplaty__tile--custom {
	gap: 8px;
}

.wz-wplaty__custom-label {
	font-family: Barlow, "Hind Siliguri", sans-serif;
	font-size: clamp(17px, 2.4vw, 21px);
	font-weight: 600;
}

.wz-wplaty__custom-field {
	display: none;
	align-items: baseline;
	gap: 4px;
}

.wz-wplaty__radio:checked + .wz-wplaty__tile--custom .wz-wplaty__custom-label {
	display: none;
}

.wz-wplaty__radio:checked + .wz-wplaty__tile--custom .wz-wplaty__custom-field {
	display: flex;
}

.wz-wplaty__input {
	width: 120px;
	padding: 4px 0;
	border: 0;
	border-bottom: 2px solid currentColor;
	background: transparent;
	color: inherit;
	font-family: Barlow, "Hind Siliguri", sans-serif;
	font-size: clamp(26px, 5vw, 38px);
	font-weight: 700;
	text-align: right;
}

.wz-wplaty__input:focus {
	outline: none;
}

/* Strzałki number tylko przeszkadzają przy kwocie. */
.wz-wplaty__input::-webkit-outer-spin-button,
.wz-wplaty__input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.wz-wplaty__input {
	-moz-appearance: textfield;
	appearance: textfield;
}

.wz-wplaty__suffix {
	font-size: 20px;
	font-weight: 700;
}

/* --- metody płatności --- */

.wz-wplaty__methods {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.wz-wplaty__method {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	border: 1px solid var(--wz-line);
	border-radius: var(--wz-radius);
	background: var(--wz-bg);
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.wz-wplaty__method:hover {
	border-color: var(--wz-green);
}

.wz-wplaty__method-mark {
	width: 20px;
	height: 20px;
	border: 2px solid var(--wz-line);
	border-radius: 50%;
	flex: 0 0 auto;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wz-wplaty__radio:checked + .wz-wplaty__method {
	border-color: var(--wz-green);
	background: rgba(86, 180, 57, 0.07);
}

.wz-wplaty__radio:checked + .wz-wplaty__method .wz-wplaty__method-mark {
	border-color: var(--wz-green);
	box-shadow: inset 0 0 0 4px var(--wz-green);
}

/* --- e-mail --- */

.wz-wplaty__field {
	max-width: 420px;
	margin: 0 auto 24px;
	text-align: left;
}

.wz-wplaty__label {
	display: block;
	margin-bottom: 6px;
	font-size: 15px;
	font-weight: 600;
}

.wz-wplaty__text {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--wz-line);
	border-radius: var(--wz-radius);
	font-family: inherit;
	font-size: 16px;
	color: var(--wz-ink);
}

.wz-wplaty__text:focus {
	border-color: var(--wz-green);
	outline: 2px solid rgba(86, 180, 57, 0.3);
	outline-offset: 0;
}

.wz-wplaty__hint {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: var(--wz-muted);
}

/* --- przycisk --- */

.wz-wplaty__submit {
	margin: 0 0 16px;
}

.wz-wplaty__button {
	min-width: 220px;
	padding: 16px 40px;
	border: 0;
	border-radius: var(--wz-radius);
	background: var(--wz-green);
	color: #fff;
	font-family: Barlow, "Hind Siliguri", sans-serif;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.wz-wplaty__button:hover,
.wz-wplaty__button:focus-visible {
	background: var(--wz-green-dark);
}

.wz-wplaty__button[disabled] {
	opacity: 0.65;
	cursor: progress;
}

/* Przycisk bywa też linkiem (strony powrotu) – motyw podkreśla linki. */
a.wz-wplaty__button {
	display: inline-block;
	text-align: center;
	text-decoration: none;
	color: #fff;
}

a.wz-wplaty__button:hover,
a.wz-wplaty__button:focus {
	color: #fff;
	text-decoration: none;
}

.wz-wplaty__button--ghost {
	background: transparent;
	border: 2px solid var(--wz-green);
	color: var(--wz-green);
}

a.wz-wplaty__button--ghost {
	color: var(--wz-green);
}

.wz-wplaty__button--ghost:hover,
.wz-wplaty__button--ghost:focus-visible,
a.wz-wplaty__button--ghost:hover,
a.wz-wplaty__button--ghost:focus {
	background: var(--wz-green);
	color: #fff;
}

.wz-wplaty__legal {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--wz-muted);
}

/* --- strony powrotu z bramki --- */

.wz-status__inner {
	max-width: 640px;
	margin: 0 auto;
	padding: 48px 20px 56px;
	text-align: center;
}

.wz-status__icon {
	display: block;
	width: 76px;
	height: 76px;
	margin: 0 auto 24px;
}

.wz-status__icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.wz-status--ok .wz-status__icon {
	color: var(--wz-green);
}

.wz-status--error .wz-status__icon {
	color: #c0392b;
}

.wz-status__heading {
	margin: 0 0 16px;
	font-family: Barlow, "Hind Siliguri", sans-serif;
	font-size: clamp(28px, 5vw, 40px);
	font-weight: 700;
	line-height: 1.15;
	color: var(--wz-ink);
}

.wz-status__lead {
	margin: 0 0 20px;
	font-size: clamp(17px, 2.4vw, 20px);
	line-height: 1.55;
	color: var(--wz-ink);
}

.wz-status__body {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.65;
	color: var(--wz-muted);
}

.wz-status__note {
	margin: 0 0 32px;
	padding: 14px 18px;
	border-radius: var(--wz-radius);
	background: #f5f7f4;
	font-size: 15px;
	line-height: 1.6;
	color: var(--wz-muted);
}

.wz-status--error .wz-status__note {
	background: #fdf3f2;
}

.wz-status__body a,
.wz-status__note a {
	color: var(--wz-green-dark);
	text-decoration: underline;
}

.wz-status__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0;
}

/* --- tablet --- */

@media (max-width: 720px) {
	.wz-wplaty__amounts {
		grid-template-columns: repeat(3, 1fr);
	}

	.wz-wplaty__tile--custom {
		grid-column: 1 / -1;
		min-height: 84px;
	}
}

/* --- telefon --- */

@media (max-width: 420px) {
	.wz-wplaty__form {
		padding: 24px 16px 28px;
	}

	.wz-wplaty--hero .wz-wplaty__ribbon {
		margin-left: -16px;
		margin-right: -16px;
	}

	.wz-wplaty--full .wz-wplaty__ribbon {
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		padding-left: 16px;
		padding-right: 16px;
	}

	.wz-wplaty__amounts {
		gap: 8px;
	}

	.wz-wplaty__tile {
		min-height: 100px;
	}

	.wz-wplaty__methods {
		flex-direction: column;
	}

	.wz-wplaty__method {
		justify-content: flex-start;
	}

	.wz-wplaty__button {
		width: 100%;
		min-width: 0;
	}

	.wz-status__inner {
		padding: 36px 16px 44px;
	}

	.wz-status__actions {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wz-wplaty * {
		transition-duration: 0.01ms !important;
	}
}
