/* ═══════════════════════════════════════════════════════════════
   Voucher Widget v3 — podwójna specyficzność zapobiega nadpisaniu
   przez style motywu / Elementora
   ═══════════════════════════════════════════════════════════════ */

.voucher-widget {
	background: #FBF8F3;
	padding: 2.5rem;
	box-sizing: border-box;
	width: 100%;
	border: none;
}

.voucher-widget .voucher-widget__form {
	border: none;
	background: transparent;
}

.voucher-widget *,
.voucher-widget *::before,
.voucher-widget *::after {
	box-sizing: inherit;
}

/* ── Form ──────────────────────────────────────────────────────── */

.voucher-widget .voucher-widget__form {
	display: flex;
	flex-direction: column;
}

/* ── Field ─────────────────────────────────────────────────────── */

.voucher-widget .voucher-widget__field {
	margin-bottom: 1.5rem;
}

/* ── Label ─────────────────────────────────────────────────────── */

.voucher-widget .voucher-widget__label {
	display: block;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.9rem;
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #C9A96E;
	margin: 0 0 0.45rem;
	padding: 0;
	background: none;
	border: none;
}

/* ── Input / Textarea / Select — pełny reset + własny styl ─────── */

.voucher-widget .voucher-widget__input,
.voucher-widget .voucher-widget__textarea,
.voucher-widget .voucher-widget__select {
	/* Reset wszystkich możliwych stylów motywu */
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0.5rem 0;
	/* Usunięcie wszelkich ramek — zostawiamy tylko dolną */
	border: none;
	border-bottom: 1px solid #2A3D2B;
	border-radius: 0;
	outline: none;
	box-shadow: none;
	/* Tło i kolor */
	background: transparent;
	background-color: transparent;
	background-image: none;
	color: #2A3D2B;
	/* Typografia */
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 1rem;
	font-weight: 300;
	line-height: 1.6;
	/* Transitions */
	transition: border-color 0.2s;
}

/* Focus — tylko podkreślenie */
.voucher-widget .voucher-widget__input:focus,
.voucher-widget .voucher-widget__textarea:focus,
.voucher-widget .voucher-widget__select:focus {
	border: none;
	border-bottom: 1px solid #2A3D2B;
	outline: none;
	box-shadow: none;
	background: transparent;
	background-color: transparent;
}

/* Placeholder */
.voucher-widget .voucher-widget__input::placeholder,
.voucher-widget .voucher-widget__textarea::placeholder {
	color: #9a9a8e;
	font-weight: 300;
	opacity: 1;
}

/* Textarea */
.voucher-widget .voucher-widget__textarea {
	resize: vertical;
	min-height: 72px;
}

/* ── Select wrapper ─────────────────────────────────────────────── */

.voucher-widget .voucher-widget__select-wrap {
	position: relative;
}

.voucher-widget .voucher-widget__select-wrap::after {
	content: '›';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%) rotate(90deg);
	pointer-events: none;
	color: #2A3D2B;
	font-size: 1.1rem;
	line-height: 1;
}

.voucher-widget .voucher-widget__select {
	cursor: pointer;
	padding-right: 1.25rem;
}

/* ── Amount buttons + Option buttons (shared style) ─────────────── */

.voucher-widget .voucher-widget__amounts,
.voucher-widget .voucher-widget__options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.4rem;
}

.voucher-widget .voucher-widget__amount-btn,
.voucher-widget .voucher-widget__option-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #2A3D2B;
	background: transparent;
	background-color: transparent;
	color: #2A3D2B;
	border-radius: 24px;
	padding: 0.5rem 1.25rem;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.9rem;
	font-weight: 300;
	cursor: pointer;
	line-height: 1;
	transition: background-color 0.2s, color 0.2s;
	box-shadow: none;
	outline: none;
}

.voucher-widget .voucher-widget__amount-btn:hover,
.voucher-widget .voucher-widget__amount-btn.is-active,
.voucher-widget .voucher-widget__option-btn:hover,
.voucher-widget .voucher-widget__option-btn.is-active {
	background: #2A3D2B;
	background-color: #2A3D2B;
	color: #fff;
	border-color: #2A3D2B;
}

.voucher-widget .voucher-widget__amount-btn:focus,
.voucher-widget .voucher-widget__option-btn:focus {
	outline: none;
	box-shadow: none;
}

.voucher-widget .voucher-widget__custom-amount {
	margin-top: 0.85rem;
	max-width: 180px;
}

.voucher-widget .voucher-widget__custom-amount[hidden] {
	display: none;
}

/* ── Summary ────────────────────────────────────────────────────── */

.voucher-widget .voucher-widget__summary {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	padding: 1rem 0 0.75rem;
	border-top: 1px solid rgba(42, 61, 43, 0.18);
	margin-top: 0.25rem;
	margin-bottom: 0.5rem;
	min-height: 3.5rem;
}

.voucher-widget .voucher-widget__summary-eyebrow {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.75rem;
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #C9A96E;
	margin: 0 0 0.2rem;
}

.voucher-widget .voucher-widget__summary-name {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 1rem;
	font-weight: 300;
	color: #2A3D2B;
	margin: 0;
	min-height: 1.4em;
}

.voucher-widget .voucher-widget__summary-meta {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.78rem;
	font-weight: 300;
	color: #9a9a8e;
	margin: 0.2rem 0 0;
	letter-spacing: 0.02em;
}

.voucher-widget .voucher-widget__summary-meta[hidden] {
	display: none;
}

.voucher-widget .voucher-widget__summary-price {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 1.25rem;
	font-weight: 500;
	color: #2A3D2B;
	white-space: nowrap;
	padding-left: 1rem;
}

/* ── Action buttons ─────────────────────────────────────────────── */

.voucher-widget .voucher-widget__actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: 1.5rem;
}

.voucher-widget .voucher-widget__btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 24px;
	padding: 0.7rem 1.75rem;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.95rem;
	font-weight: 300;
	cursor: pointer;
	border: 1px solid #2A3D2B;
	box-shadow: none;
	outline: none;
	transition: background-color 0.2s, color 0.2s;
	white-space: nowrap;
	line-height: 1;
	text-decoration: none;
}

.voucher-widget .voucher-widget__btn:focus {
	outline: none;
	box-shadow: none;
}

.voucher-widget .voucher-widget__btn--primary {
	background-color: #2A3D2B;
	color: #fff;
}

.voucher-widget .voucher-widget__btn--primary:hover {
	background-color: #1e2e1f;
	color: #fff;
}

.voucher-widget .voucher-widget__btn--secondary {
	background-color: transparent;
	color: #2A3D2B;
}

.voucher-widget .voucher-widget__btn--secondary:hover {
	background-color: #2A3D2B;
	color: #fff;
}

.voucher-widget .voucher-widget__btn--full {
	width: 100%;
}

.voucher-widget .voucher-widget__actions--single .voucher-widget__btn--primary {
	width: 100%;
}

/* Hidden duration/option buttons — explicit rule for theme compat */
.voucher-widget .voucher-widget__option-btn[hidden] {
	display: none;
}

.voucher-widget .voucher-widget__btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* ── Error ──────────────────────────────────────────────────────── */

.voucher-widget .voucher-widget__error {
	color: #b94040;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.85rem;
	font-weight: 300;
	margin-top: 0.75rem;
}

.voucher-widget .voucher-widget__error[hidden] {
	display: none;
}

/* ── Treatment price info (cross-widget sync) ───────────────────── */
/* Uses .voucher-widget__summary styles — only [hidden] override needed */

.voucher-widget .voucher-widget__treatment-price-info[hidden] {
	display: none;
}

/* ── Thank you page — download button ──────────────────────────── */

.voucher-widget-thankyou__download {
	margin-top: 1.25rem;
	text-align: center;
}

.voucher-widget-thankyou__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	background-color: #2A3D2B;
	color: #ffffff;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.9rem;
	font-weight: 300;
	letter-spacing: 0.03em;
	text-decoration: none;
	padding: 0.65rem 1.75rem;
	border-radius: 24px;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s;
}

.voucher-widget-thankyou__btn:hover {
	background-color: #1e2e1f;
	color: #ffffff;
}

.voucher-widget-thankyou__btn::before {
	content: '\2193'; /* ↓ */
	font-size: 1em;
}

/* ── Thank you page ─────────────────────────────────────────────── */

.voucher-widget-thankyou {
	margin: 2rem 0;
	font-family: 'Inter', system-ui, sans-serif;
}

.voucher-widget-thankyou__heading {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.5rem;
	font-weight: 400;
	color: #2A3D2B;
	margin: 0 0 1.25rem;
	padding: 0;
	border: none;
}

.voucher-widget-thankyou__card {
	background: #FBF8F3;
	padding: 1.5rem;
	border-left: 3px solid #C9A96E;
	margin-bottom: 1rem;
}

.voucher-widget-thankyou__row {
	display: flex;
	flex-direction: column;
	margin-bottom: 0.75rem;
}

.voucher-widget-thankyou__row:last-child {
	margin-bottom: 0;
}

.voucher-widget-thankyou__label {
	font-size: 0.72rem;
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #C9A96E;
	margin-bottom: 0.2rem;
}

.voucher-widget-thankyou__value {
	font-size: 1rem;
	font-weight: 300;
	color: #2A3D2B;
}

.voucher-widget-thankyou__message {
	font-size: 0.95rem;
	font-weight: 300;
	font-style: italic;
	color: #2A3D2B;
	margin: 0;
	padding: 0;
}

/* ── Mobile ─────────────────────────────────────────────────────── */

@media (max-width: 480px) {
	.voucher-widget {
		padding: 1.5rem;
	}

	.voucher-widget .voucher-widget__actions {
		flex-direction: column;
	}

	.voucher-widget .voucher-widget__btn {
		width: 100%;
	}
}
