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

.voucher-widget {
	background: #F7F3EF;
	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: #C49A7C;
	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 #7A5A44;
	border-radius: 0;
	outline: none;
	box-shadow: none;
	/* Tło i kolor */
	background: transparent;
	background-color: transparent;
	background-image: none;
	color: #7A5A44;
	/* 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 #7A5A44;
	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: #7A5A44;
	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 #7A5A44;
	background: transparent;
	background-color: transparent;
	color: #7A5A44;
	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: #7A5A44;
	background-color: #7A5A44;
	color: #fff;
	border-color: #7A5A44;
}

.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(122, 90, 68, 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: #C49A7C;
	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: #7A5A44;
	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: #7A5A44;
	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 #7A5A44;
	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: #7A5A44;
	color: #fff;
}

.voucher-widget .voucher-widget__btn--primary:hover {
	background-color: #0F0C0A;
	color: #fff;
}

.voucher-widget .voucher-widget__btn--secondary {
	background-color: transparent;
	color: #7A5A44;
}

.voucher-widget .voucher-widget__btn--secondary:hover {
	background-color: #7A5A44;
	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: #7A5A44;
	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: #0F0C0A;
	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: #7A5A44;
	margin: 0 0 1.25rem;
	padding: 0;
	border: none;
}

.voucher-widget-thankyou__card {
	background: #F7F3EF;
	padding: 1.5rem;
	border-left: 3px solid #C49A7C;
	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: #C49A7C;
	margin-bottom: 0.2rem;
}

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

.voucher-widget-thankyou__message {
	font-size: 0.95rem;
	font-weight: 300;
	font-style: italic;
	color: #7A5A44;
	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%;
	}
}

/* ── Lumira: usuń spinner number (custom amount) ── */
.voucher-widget .voucher-widget__custom-amount::-webkit-outer-spin-button,
.voucher-widget .voucher-widget__custom-amount::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.voucher-widget .voucher-widget__custom-amount { -moz-appearance: textfield; appearance: textfield; }

/* ── Lumira: wybrana kwota (giftcard summary) ── */
.voucher-widget .voucher-widget__gc-summary {
	display: flex; justify-content: space-between; align-items: center;
	padding: 0.9rem 0 0.2rem; margin-top: 0.4rem;
	border-top: 1px solid rgba(196, 154, 124, 0.35);
}
.voucher-widget .voucher-widget__gc-summary[hidden] { display: none; }
.voucher-widget .voucher-widget__gc-summary-label {
	margin: 0; font-size: 0.75rem; font-weight: 600;
	text-transform: uppercase; letter-spacing: 0.12em;
}
.voucher-widget .voucher-widget__gc-summary-value {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.5rem; font-weight: 600; color: #C49A7C; white-space: nowrap;
}

/* ── Lumira: slider kategorii (filtr zabiegów) ── */
.voucher-widget .voucher-widget__cats {
	display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem;
	margin-bottom: 1.25rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.voucher-widget .voucher-widget__cats::-webkit-scrollbar { height: 4px; }
.voucher-widget .voucher-widget__cats::-webkit-scrollbar-thumb { background: rgba(196,154,124,0.4); border-radius: 2px; }
.voucher-widget .voucher-widget__cat {
	flex: 0 0 auto; display: inline-flex; flex-direction: column; align-items: center; gap: 0.4rem;
	min-width: 88px; padding: 0.75rem 0.6rem; cursor: pointer;
	background: transparent; border: 1px solid rgba(196,154,124,0.35); border-radius: 10px;
	transition: all .2s ease;
}
.voucher-widget .voucher-widget__cat:hover { border-color: #C49A7C; }
.voucher-widget .voucher-widget__cat.is-active { background: #C49A7C; border-color: #C49A7C; }
.voucher-widget .voucher-widget__cat-icon { font-size: 20px; line-height: 1; color: #7A5A44; }
.voucher-widget .voucher-widget__cat-icon svg { width: 20px; height: 20px; fill: currentColor; }
.voucher-widget .voucher-widget__cat-label { font-size: 11px; font-weight: 600; letter-spacing: .03em; text-align: center; line-height: 1.25; text-transform: uppercase; color: #7A5A44; }
.voucher-widget .voucher-widget__cat.is-active .voucher-widget__cat-icon,
.voucher-widget .voucher-widget__cat.is-active .voucher-widget__cat-label { color: #2A1E16; }

/* ── Lumira: tryb tiles (reveal) + dodatek + lokalizacja ── */
.voucher-widget .voucher-widget__config.is-hidden { display: none; }
.voucher-widget .voucher-widget__cats.is-hidden { display: none; }

.voucher-widget .voucher-widget__cats--tiles {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; overflow: visible;
}
.voucher-widget .voucher-widget__cats--tiles .voucher-widget__cat {
	min-width: 0; padding: 1.4rem 0.8rem; gap: 0.6rem;
}
@media (max-width: 520px) {
	.voucher-widget .voucher-widget__cats--tiles { grid-template-columns: repeat(2, 1fr); }
}
.voucher-widget .voucher-widget__cats-back {
	background: none; border: none; cursor: pointer; color: #7A5A44;
	font-size: 0.85rem; font-weight: 600; padding: 0 0 0.9rem; letter-spacing: .02em;
}
.voucher-widget .voucher-widget__cats-back:hover { color: #C49A7C; }

.voucher-widget .voucher-widget__addon {
	display: flex; align-items: center; gap: 0.6rem; cursor: pointer;
	padding: 0.8rem 1rem; border: 1px solid rgba(196,154,124,0.35); border-radius: 8px;
}
.voucher-widget .voucher-widget__addon-check { width: 18px; height: 18px; accent-color: #C49A7C; cursor: pointer; flex: 0 0 auto; }
.voucher-widget .voucher-widget__addon-text { flex: 1; font-size: 0.92rem; }
.voucher-widget .voucher-widget__addon-price { font-weight: 600; color: #C49A7C; white-space: nowrap; }

/* ── Lumira: layout sidebar (kategorie lewa kolumna + konfigurator obok) ── */
.voucher-widget .voucher-widget__form--treatment:has(.voucher-widget__cats--sidebar) {
	display: grid; grid-template-columns: 32% 1fr; gap: 2.2rem; align-items: start;
}
@media (max-width: 768px) {
	.voucher-widget .voucher-widget__form--treatment:has(.voucher-widget__cats--sidebar) { grid-template-columns: 1fr; gap: 1.4rem; }
}
.voucher-widget .voucher-widget__cats--sidebar {
	display: flex; flex-direction: column; gap: 0.3rem; overflow: visible; margin: 0; padding: 0;
}
@media (max-width: 768px) {
	.voucher-widget .voucher-widget__cats--sidebar { flex-direction: row; overflow-x: auto; padding-bottom: 0.5rem; }
}
.voucher-widget .voucher-widget__cats--sidebar .voucher-widget__cat {
	flex-direction: row; align-items: center; gap: 0.8rem; min-width: 0; width: 100%;
	border: none; background: none; padding: 0.5rem 0.3rem; text-align: left;
}
@media (max-width: 768px) {
	.voucher-widget .voucher-widget__cats--sidebar .voucher-widget__cat { flex-direction: column; width: auto; flex: 0 0 auto; gap: 0.4rem; }
}
.voucher-widget .voucher-widget__cats--sidebar .voucher-widget__cat-icon {
	width: 52px; height: 52px; flex: 0 0 52px; border: 1px solid rgba(196,154,124,0.5); border-radius: 50%;
	display: flex; align-items: center; justify-content: center; font-size: 19px; transition: all .2s ease; color: #7A5A44;
}
.voucher-widget .voucher-widget__cats--sidebar .voucher-widget__cat:hover .voucher-widget__cat-icon { border-color: #C49A7C; }
.voucher-widget .voucher-widget__cats--sidebar .voucher-widget__cat.is-active .voucher-widget__cat-icon { background: #C49A7C; border-color: #C49A7C; color: #2A1E16; }
.voucher-widget .voucher-widget__cats--sidebar .voucher-widget__cat.is-active .voucher-widget__cat-label { color: #C49A7C; }
.voucher-widget .voucher-widget__cats--sidebar .voucher-widget__cat-label { text-align: left; font-size: 12px; line-height: 1.3; }

/* ════════════════════════════════════════════════════════════
   SUBTELNY INLINE LAYOUT (Lumira) — ikona+label lewo / kontrolka prawo
   ════════════════════════════════════════════════════════════ */
.voucher-widget__form--inline .voucher-widget__field{
	display:grid;grid-template-columns:minmax(120px,38%) 1fr;align-items:center;
	gap:18px;padding:16px 0;margin:0;border-bottom:1px solid rgba(196,154,124,.18);
}
.voucher-widget__form--inline .voucher-widget__field:first-of-type{padding-top:4px}
.voucher-widget__form--inline .voucher-widget__label{
	display:flex;align-items:center;gap:11px;margin:0;
	font-size:12px;letter-spacing:1px;text-transform:uppercase;color:#7A5A44;font-weight:600;line-height:1.3;
}
.voucher-widget__form--inline .voucher-widget__label::before{
	font-family:"Font Awesome 5 Free";font-weight:900;color:#C49A7C;font-size:15px;
	width:22px;text-align:center;flex:0 0 auto;
}
.voucher-widget__form--inline .voucher-widget__field:has(.voucher-widget__select-wrap) .voucher-widget__label::before{content:"\f06c"}      /* leaf */
.voucher-widget__form--inline .voucher-widget__field:has(.voucher-widget__options--duration) .voucher-widget__label::before{content:"\f017"} /* clock */
.voucher-widget__form--inline .voucher-widget__field:has(.voucher-widget__options--people) .voucher-widget__label::before{content:"\f0c0"}   /* users */
.voucher-widget__form--inline .voucher-widget__field:has(.voucher-widget__options--location) .voucher-widget__label::before{content:"\f3c5"} /* map-marker-alt */
.voucher-widget__form--inline .voucher-widget__field:has(input[name="recipient"]) .voucher-widget__label::before{content:"\f06b"}            /* gift */

/* kontrolki: wyrównane do prawej */
.voucher-widget__form--inline .voucher-widget__options{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.voucher-widget__form--inline .voucher-widget__select-wrap{width:100%}
.voucher-widget__form--inline .voucher-widget__input{width:100%;text-align:left}
.voucher-widget__form--inline .voucher-widget__option-btn{padding:8px 16px;font-size:12.5px}

/* dodatek (Shea) — pełny rząd */
.voucher-widget__form--inline .voucher-widget__field--addon{grid-template-columns:1fr}
.voucher-widget__form--inline .voucher-widget__addon{justify-content:flex-start}

/* footer: cena duża lewa | button prawa */
.voucher-widget__form--inline .voucher-widget__footer{
	display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;
	margin-top:20px;padding-top:20px;
}
.voucher-widget__form--inline .voucher-widget__summary{border:0;padding:0;margin:0;display:block;background:none}
.voucher-widget__form--inline .voucher-widget__summary-eyebrow,
.voucher-widget__form--inline .voucher-widget__summary-name,
.voucher-widget__form--inline .voucher-widget__summary-meta{display:none}
.voucher-widget__form--inline .voucher-widget__summary-price{
	font-family:"Playfair Display",serif;font-size:34px;line-height:1;color:#7A5A44;font-weight:600;
}
.voucher-widget__form--inline .voucher-widget__summary-price:empty::before{content:"—";opacity:.4}
.voucher-widget__form--inline .voucher-widget__actions{margin:0;flex:0 0 auto}

@media(max-width:600px){
	.voucher-widget__form--inline .voucher-widget__field{grid-template-columns:1fr;gap:8px}
	.voucher-widget__form--inline .voucher-widget__options{justify-content:flex-start}
	.voucher-widget__form--inline .voucher-widget__footer{justify-content:center;text-align:center}
}

/* hidden fields muszą znikać mimo display:grid */
.voucher-widget__form--inline .voucher-widget__field[hidden]{display:none}
