/* Webify Voucher Checkout 0.1.3
 * Vizuálna nadstavba. Pôvodné WooCommerce polia a submit proces zostávajú zachované.
 */

/*
 * WoodMart a pôvodné checkout CSS môžu prepisovať natívny atribút hidden.
 * Preto skrytie krokov vynútime iba v našom vlastnom checkout kontajneri.
 */
.webify-voucher-checkout-enabled .wvc-step[hidden] {
	display: none !important;
}

.webify-voucher-checkout-enabled .wvc-step:not([hidden]) {
	display: block;
}

.webify-voucher-checkout-enabled .wvc-progress {
	max-width: 760px;
	margin: 10px auto 42px;
	display: grid;
	grid-template-columns: auto minmax(90px, 1fr) auto;
	align-items: start;
	gap: 14px;
	color: #151c19;
}

.webify-voucher-checkout-enabled .wvc-progress__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 125px;
	text-align: center;
}

.webify-voucher-checkout-enabled .wvc-progress__circle {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 2px solid #bdbdbd;
	background: #fff;
	font: 600 17px/1 "Work Sans", sans-serif;
	transition: all .25s ease;
}

.webify-voucher-checkout-enabled .wvc-progress__label {
	margin-top: 9px;
	font: 600 14px/1.25 "Work Sans", sans-serif;
	color: #848484;
}

.webify-voucher-checkout-enabled .wvc-progress__item.is-active .wvc-progress__circle {
	border-color: #ffd000;
	background: #ffd000;
	color: #000;
}

.webify-voucher-checkout-enabled .wvc-progress__item.is-active .wvc-progress__label,
.webify-voucher-checkout-enabled .wvc-progress__item.is-complete .wvc-progress__label {
	color: #151c19;
}

.webify-voucher-checkout-enabled .wvc-progress__item.is-complete .wvc-progress__circle {
	border-color: #2acdbc;
	background: #2acdbc;
	color: #000;
}

.webify-voucher-checkout-enabled .wvc-progress__item.is-complete .wvc-progress__circle {
	font-size: 0;
}

.webify-voucher-checkout-enabled .wvc-progress__item.is-complete .wvc-progress__circle::after {
	content: "✓";
	font-size: 18px;
	font-weight: 700;
}

.webify-voucher-checkout-enabled .wvc-progress__line {
	height: 2px;
	margin-top: 21px;
	background: #d9d9d9;
	position: relative;
	overflow: hidden;
}

.webify-voucher-checkout-enabled .wvc-progress__line > span {
	position: absolute;
	inset: 0;
	transform: scaleX(0);
	transform-origin: left center;
	background: #2acdbc;
	transition: transform .3s ease;
}

.webify-voucher-checkout-enabled .wvc-progress__line.is-complete > span {
	transform: scaleX(1);
}

.webify-voucher-checkout-enabled .wvc-heading {
	margin-bottom: 25px;
}

.webify-voucher-checkout-enabled .wvc-heading__eyebrow {
	margin-bottom: 4px;
	font: 600 13px/1.3 "Work Sans", sans-serif;
	letter-spacing: .06em;
	color: #848484;
}

.webify-voucher-checkout-enabled .wvc-heading__title {
	margin: 0;
	font: 600 24px/1.35 "Work Sans", sans-serif !important;
	color: #000;
}

.webify-voucher-checkout-enabled .wvc-step__fields {
	display: flow-root;
}

.webify-voucher-checkout-enabled .wvc-step__nav {
	clear: both;
	padding-top: 10px;
}

.webify-voucher-checkout-enabled .wvc-next {
	width: 100%;
	max-width: 410px;
	min-height: 50px;
	margin-top: 12px;
	border: 0 !important;
	border-radius: 10px !important;
	background: #ffd000 !important;
	color: #000 !important;
	font: 700 16px/1.2 "Work Sans", sans-serif !important;
	text-transform: none !important;
	transition: all .25s ease !important;
}

.webify-voucher-checkout-enabled .wvc-next::after {
	content: "→";
	margin-left: 12px;
	font-size: 20px;
	vertical-align: -1px;
}

.webify-voucher-checkout-enabled .wvc-next:hover {
	background: #183153 !important;
	color: #ffd000 !important;
}

.webify-voucher-checkout-enabled .wvc-back {
	padding: 8px 0;
	border: 0;
	background: transparent;
	color: #2acdbc;
	font: 600 14px/1.3 "Work Sans", sans-serif;
	text-transform: none;
	text-decoration: underline;
	cursor: pointer;
}

.webify-voucher-checkout-enabled .wvc-back::before {
	content: "←";
	margin-right: 8px;
	text-decoration: none;
}

.webify-voucher-checkout-enabled .wvc-step__actions {
	clear: both;
	margin-top: 18px;
}

.webify-voucher-checkout-enabled #wvc-step-2 .place-order {
	width: 100%;
	padding: 0 !important;
	background: transparent !important;
}

.webify-voucher-checkout-enabled #wvc-step-2 #place_order {
	width: 100%;
	margin-top: 18px;
}

.webify-voucher-checkout-enabled #wvc-step-2 .woocommerce-terms-and-conditions-wrapper,
.webify-voucher-checkout-enabled #wvc-step-2 #checkout_checkbox_field {
	margin-left: 0;
	margin-right: 0;
}

.webify-voucher-checkout-enabled .wvc-error-message {
	display: block;
	margin-top: 6px;
	color: #b81c23;
	font: 500 13px/1.35 "Work Sans", sans-serif;
}

.webify-voucher-checkout-enabled .wvc-field-error .input-text {
	border-color: #b81c23 !important;
	box-shadow: 0 0 0 1px #b81c23 !important;
}

/* Pravá rekapitulácia zostáva stále viditeľná. */
@media (min-width: 1025px) {
	.webify-voucher-checkout-enabled form.checkout > .col-12.col-md-7 {
		align-self: flex-start;
	}

	.webify-voucher-checkout-enabled .checkout-order-review {
		position: sticky;
		top: 90px;
	}
}

@media (max-width: 1024px) {
	.webify-voucher-checkout-enabled .wvc-progress {
		margin-bottom: 28px;
		padding: 0 12px;
		grid-template-columns: auto minmax(45px, 1fr) auto;
		gap: 8px;
	}

	.webify-voucher-checkout-enabled .wvc-progress__item {
		min-width: 98px;
	}

	.webify-voucher-checkout-enabled .wvc-progress__circle {
		width: 38px;
		height: 38px;
	}

	.webify-voucher-checkout-enabled .wvc-progress__line {
		margin-top: 18px;
	}

	.webify-voucher-checkout-enabled .checkout-order-review {
		margin-top: 35px;
	}
}

@media (max-width: 575px) {
	.webify-voucher-checkout-enabled .wvc-progress__label {
		font-size: 12px;
	}

	.webify-voucher-checkout-enabled .wvc-heading__title {
		font-size: 21px !important;
	}

	.webify-voucher-checkout-enabled .wvc-next {
		max-width: none;
	}
}


/* Obsah prvého kroku */
.webify-voucher-checkout-enabled .wvc-step-info {
	clear: both;
	display: grid;
	grid-template-columns: 25px 1fr;
	gap: 14px;
	align-items: start;
	margin: 72px 0 28px;
	color: #555;
}

.webify-voucher-checkout-enabled .wvc-step-info__icon {
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #7fded9;
	color: #17313a;
	font: 700 15px/1 "Work Sans", sans-serif;
}

.webify-voucher-checkout-enabled .wvc-step-info__content p {
	margin: 0 0 9px;
	font: 400 14px/1.45 "Work Sans", sans-serif;
}

.webify-voucher-checkout-enabled .wvc-step-info__content p:last-child {
	margin-bottom: 0;
	color: #151515;
}

/* Centrovanie oboch hlavných tlačidiel */
.webify-voucher-checkout-enabled .wvc-step__nav {
	display: flex;
	justify-content: center;
}

.webify-voucher-checkout-enabled .wvc-next {
	width: min(100%, 665px);
	max-width: 665px;
	text-transform: uppercase !important;
}

.webify-voucher-checkout-enabled #wvc-step-2 .wvc-step__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.webify-voucher-checkout-enabled #wvc-step-2 .place-order {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: min(100%, 665px) !important;
}

.webify-voucher-checkout-enabled #wvc-step-2 #place_order {
	width: 100% !important;
	float: none !important;
	text-transform: uppercase !important;
}

/* Tooltip POD kódu sa v prvom kroku nesmie zobrazovať. */
.webify-voucher-checkout-enabled form.wvc-current-step-1 .hover-text,
.webify-voucher-checkout-enabled form.wvc-current-step-1 .hover-text_adresa,
.webify-voucher-checkout-enabled form.wvc-current-step-1 .otaznik,
.webify-voucher-checkout-enabled form.wvc-current-step-1 .otaznik_adresa {
	display: none !important;
}

/* V druhom kroku je POD tooltip zarovno priamo pri názve poľa. */
.webify-voucher-checkout-enabled #order_wcj_checkout_field_1_field > label {
	display: inline-flex !important;
	align-items: center;
	gap: 9px;
}

.webify-voucher-checkout-enabled #order_wcj_checkout_field_1_field .wvc-pod-tooltip {
	display: inline-flex;
	position: relative;
	margin: 0;
	vertical-align: middle;
}

.webify-voucher-checkout-enabled #order_wcj_checkout_field_1_field .otaznik {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
}

/* Pravá rekapitulácia */
.webify-voucher-checkout-enabled .checkout-order-review {
	padding-top: 38px;
}

.webify-voucher-checkout-enabled .wvc-review-heading {
	margin: 0 30px 28px !important;
	text-align: center;
	font: 700 25px/1.22 "Work Sans", sans-serif !important;
	color: #000;
	text-transform: uppercase;
}

.webify-voucher-checkout-enabled .woocommerce-checkout-review-order-table .cart_item {
	position: relative;
}

.webify-voucher-checkout-enabled .woocommerce-checkout-review-order-table .cart_item .wd-checkout-prod {
	display: grid;
	grid-template-columns: 110px 75px minmax(0, 1fr);
	align-items: center;
	column-gap: 18px;
	padding-top: 28px !important;
	padding-bottom: 28px !important;
}

.webify-voucher-checkout-enabled .wvc-review-product-label {
	grid-column: 1;
	align-self: start;
	padding-top: 9px;
	font: 400 16px/1.3 "Work Sans", sans-serif;
	color: #555;
}

.webify-voucher-checkout-enabled .woocommerce-checkout-review-order-table .wd-checkout-prod-img {
	grid-column: 2;
}

.webify-voucher-checkout-enabled .woocommerce-checkout-review-order-table .wd-checkout-prod-cont {
	grid-column: 3;
}

.webify-voucher-checkout-enabled .woocommerce-checkout-review-order-table .order-total th {
	width: 145px;
	padding: 26px 14px 26px 12px !important;
	text-align: left !important;
	white-space: normal;
	font: 400 16px/1.15 "Work Sans", sans-serif !important;
	color: #555;
}

.webify-voucher-checkout-enabled .woocommerce-checkout-review-order-table .order-total td {
	padding: 26px 12px 26px 14px !important;
	text-align: left !important;
}

.webify-voucher-checkout-enabled .woocommerce-checkout-review-order-table .order-total td .amount {
	font: 700 32px/1 "Work Sans", sans-serif !important;
	color: #000;
}

/* Skrytie starého anglického nadpisu a nepotrebných hlavičiek tabuľky. */
.webify-voucher-checkout-enabled #order_review_heading,
.webify-voucher-checkout-enabled .woocommerce-checkout-review-order-table thead,
.webify-voucher-checkout-enabled .woocommerce-checkout-review-order-table .cart-subtotal {
	display: none !important;
}

@media (max-width: 767px) {
	.webify-voucher-checkout-enabled .wvc-step-info {
		margin-top: 38px;
	}

	.webify-voucher-checkout-enabled .wvc-review-heading {
		margin-left: 15px !important;
		margin-right: 15px !important;
		font-size: 21px !important;
	}

	.webify-voucher-checkout-enabled .woocommerce-checkout-review-order-table .cart_item .wd-checkout-prod {
		grid-template-columns: 1fr 60px minmax(0, 2fr);
		column-gap: 10px;
	}

	.webify-voucher-checkout-enabled .wvc-review-product-label {
		font-size: 14px;
	}
}


/* =========================================================
 * 0.1.5 – vlastná vizuálna rekapitulácia a globálne akcie
 * ======================================================= */

.webify-voucher-checkout-enabled .checkout-order-review.wvc-has-custom-review {
	padding: 0 !important;
	background: #f5f5f5;
}

.webify-voucher-checkout-enabled .checkout-order-review.wvc-has-custom-review > #order_review,
.webify-voucher-checkout-enabled .checkout-order-review.wvc-has-custom-review > #order_review_heading,
.webify-voucher-checkout-enabled .checkout-order-review.wvc-has-custom-review > .wvc-review-heading {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.webify-voucher-checkout-enabled .wvc-custom-review {
	padding: 42px 28px 46px;
	background: #f5f5f5;
}

.webify-voucher-checkout-enabled .wvc-custom-review__heading {
	margin: 0 0 30px !important;
	text-align: center;
	font: 700 25px/1.25 "Work Sans", sans-serif !important;
	color: #000;
	text-transform: uppercase;
}

.webify-voucher-checkout-enabled .wvc-custom-review__card {
	padding: 30px 28px;
	background: #fff;
}

.webify-voucher-checkout-enabled .wvc-custom-review__row {
	display: grid;
	align-items: center;
}

.webify-voucher-checkout-enabled .wvc-custom-review__row--product {
	grid-template-columns: 112px 88px minmax(0, 1fr);
	column-gap: 20px;
	min-height: 132px;
}

.webify-voucher-checkout-enabled .wvc-custom-review__row--value {
	grid-template-columns: 112px minmax(0, 1fr);
	column-gap: 20px;
	min-height: 86px;
}

.webify-voucher-checkout-enabled .wvc-custom-review__label {
	text-align: left !important;
	justify-self: start;
	font: 400 16px/1.25 "Work Sans", sans-serif;
	color: #555;
}

.webify-voucher-checkout-enabled .wvc-custom-review__image {
	display: flex;
	align-items: center;
	justify-content: center;
}

.webify-voucher-checkout-enabled .wvc-custom-review__image img {
	display: block;
	width: auto;
	max-width: 72px;
	max-height: 120px;
	margin: 0;
	object-fit: contain;
}

.webify-voucher-checkout-enabled .wvc-custom-review__title {
	text-align: left;
	font: 700 17px/1.3 "Work Sans", sans-serif;
	color: #000;
}

.webify-voucher-checkout-enabled .wvc-custom-review__divider {
	height: 1px;
	margin: 0;
	background: #dedede;
}

.webify-voucher-checkout-enabled .wvc-custom-review__value {
	text-align: left;
	font: 700 34px/1 "Work Sans", sans-serif;
	color: #000;
}

.webify-voucher-checkout-enabled .wvc-custom-review__value .amount,
.webify-voucher-checkout-enabled .wvc-custom-review__value strong {
	font: inherit !important;
	color: inherit !important;
}

/* Hlavné akcie sú mimo oboch stĺpcov a centrujú sa podľa celej stránky. */
.webify-voucher-checkout-enabled .wvc-global-actions {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	clear: both;
	margin: 34px auto 0;
	padding: 0 15px;
}

.webify-voucher-checkout-enabled .wvc-global-actions .wvc-next,
.webify-voucher-checkout-enabled .wvc-global-actions .place-order {
	width: min(665px, 100%) !important;
	max-width: 665px !important;
	margin: 0 auto !important;
}

.webify-voucher-checkout-enabled .wvc-global-actions .place-order {
	padding: 0 !important;
	background: transparent !important;
}

.webify-voucher-checkout-enabled .wvc-global-actions .place-order #place_order {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
}

.webify-voucher-checkout-enabled .wvc-global-actions[data-active-step="1"] .place-order {
	display: none !important;
}

.webify-voucher-checkout-enabled .wvc-global-actions[data-active-step="2"] .wvc-next {
	display: none !important;
}

/* Pôvodné prázdne navigačné kontajnery už nemajú zaberať miesto. */
.webify-voucher-checkout-enabled #wvc-step-1 > .wvc-step__nav:empty,
.webify-voucher-checkout-enabled #wvc-step-2 > .wvc-step__actions:empty {
	display: none !important;
}

/* POD tooltip musí byť priamo za textom labelu. */
.webify-voucher-checkout-enabled #order_wcj_checkout_field_1_field > label {
	display: inline-flex !important;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	width: auto !important;
}

.webify-voucher-checkout-enabled #order_wcj_checkout_field_1_field > label .wvc-pod-tooltip {
	display: inline-flex !important;
	align-items: center;
	position: relative !important;
	inset: auto !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	transform: none !important;
}

.webify-voucher-checkout-enabled #order_wcj_checkout_field_1_field > label .wvc-pod-tooltip .otaznik {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	position: static !important;
	margin: 0 !important;
	transform: none !important;
}

.webify-voucher-checkout-enabled #order_wcj_checkout_field_1_field > label .wvc-pod-tooltip .tooltip-text {
	top: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
}

@media (max-width: 767px) {
	.webify-voucher-checkout-enabled .wvc-custom-review {
		padding: 30px 15px 34px;
	}

	.webify-voucher-checkout-enabled .wvc-custom-review__card {
		padding: 22px 16px;
	}

	.webify-voucher-checkout-enabled .wvc-custom-review__row--product {
		grid-template-columns: 78px 62px minmax(0, 1fr);
		column-gap: 10px;
	}

	.webify-voucher-checkout-enabled .wvc-custom-review__row--value {
		grid-template-columns: 78px minmax(0, 1fr);
		column-gap: 10px;
	}

	.webify-voucher-checkout-enabled .wvc-custom-review__heading {
		font-size: 21px !important;
	}

	.webify-voucher-checkout-enabled .wvc-custom-review__label {
		font-size: 14px;
	}

	.webify-voucher-checkout-enabled .wvc-custom-review__title {
		font-size: 15px;
	}

	.webify-voucher-checkout-enabled .wvc-custom-review__value {
		font-size: 28px;
	}
}


/* 0.1.5 – iba oprava POD tooltipu a duplicitného place-order bloku */
.webify-voucher-checkout-enabled #order_wcj_checkout_field_1_field > label {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 7px !important;
	width: auto !important;
	position: relative !important;
}

.webify-voucher-checkout-enabled .wvc-pod-tooltip-clean {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: relative !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	inset: auto !important;
	transform: none !important;
	vertical-align: middle !important;
}

.webify-voucher-checkout-enabled .wvc-pod-tooltip-clean .otaznik {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: static !important;
	inset: auto !important;
	margin: 0 !important;
	transform: none !important;
}

.webify-voucher-checkout-enabled .wvc-pod-tooltip-clean .tooltip-text {
	position: absolute !important;
	top: calc(100% + 8px) !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
	z-index: 9999 !important;
}


/* 0.1.6 – konečná oprava umiestnenia POD tooltipu.
 * Pozíciu zároveň vynucuje JavaScript inline štýlmi s !important,
 * aby ju neprepísalo pôvodné CSS načítané po plugine.
 */


/* =========================================================
 * 0.1.7 – POD tooltip + súhlasy v ľavom stĺpci
 * ======================================================= */

/* Staré custom CSS malo na ikonke margin-left: 90px a na wrapperi margin-top: -93px. */
.webify-voucher-checkout-enabled #order_wcj_checkout_field_1_field .otaznik,
.webify-voucher-checkout-enabled #order_wcj_checkout_field_1_field .wvc-pod-tooltip-clean,
.webify-voucher-checkout-enabled #order_wcj_checkout_field_1_field .hover-text {
	margin-left: 0 !important;
	margin-right: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.webify-voucher-checkout-enabled #order_wcj_checkout_field_1_field > label {
	display: inline-flex !important;
	align-items: center !important;
	gap: 7px !important;
	margin-left: 16px !important;
	width: auto !important;
}

.webify-voucher-checkout-enabled #order_wcj_checkout_field_1_field > label .wvc-pod-tooltip-clean {
	display: inline-flex !important;
	position: relative !important;
	inset: auto !important;
	transform: none !important;
}

.webify-voucher-checkout-enabled #order_wcj_checkout_field_1_field > label .otaznik {
	display: inline-flex !important;
	position: static !important;
	inset: auto !important;
	transform: none !important;
}

/* Súhlasy zostávajú v druhom kroku v ľavom stĺpci. */
.webify-voucher-checkout-enabled .wvc-step2-consents {
	clear: both;
	width: 100%;
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid #dedede;
	text-align: left;
}

.webify-voucher-checkout-enabled .wvc-step2-consents .woocommerce-terms-and-conditions-wrapper,
.webify-voucher-checkout-enabled .wvc-step2-consents #checkout_checkbox_field {
	width: 100%;
	margin-left: 0 !important;
	margin-right: 0 !important;
	text-align: left !important;
}

.webify-voucher-checkout-enabled .wvc-step2-consents .form-row {
	float: none !important;
	clear: both !important;
}

.webify-voucher-checkout-enabled .wvc-step2-consents label {
	display: flex !important;
	align-items: flex-start;
	text-align: left !important;
	margin-left: 0 !important;
}

.webify-voucher-checkout-enabled .wvc-step2-consents input[type="checkbox"] {
	flex: 0 0 auto;
	margin-top: 3px;
	margin-right: 9px;
}

/* Globálny akčný blok obsahuje už iba centrované finálne tlačidlo. */
.webify-voucher-checkout-enabled .wvc-global-actions .place-order .woocommerce-terms-and-conditions-wrapper,
.webify-voucher-checkout-enabled .wvc-global-actions .place-order #checkout_checkbox_field {
	display: none !important;
}


/* =========================================================
 * 0.1.8 – iba tooltip POD a hrúbka textov pri súhlasoch
 * ======================================================= */

/* Wrapper ostáva priamo v labeli, ale znovu používa pôvodné hover správanie. */
.webify-voucher-checkout-enabled #order_wcj_checkout_field_1_field > label .wvc-pod-tooltip-clean.hover-text {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: relative !important;
	margin: 0 !important;
	padding: 0 !important;
	inset: auto !important;
	transform: none !important;
	vertical-align: middle !important;
}

.webify-voucher-checkout-enabled #order_wcj_checkout_field_1_field > label .wvc-pod-tooltip-clean.hover-text:hover .tooltip-text {
	visibility: visible !important;
	opacity: 1 !important;
}

/* Texty za checkboxami bez boldového rezu. */
.webify-voucher-checkout-enabled .wvc-step2-consents label,
.webify-voucher-checkout-enabled .wvc-step2-consents label span,
.webify-voucher-checkout-enabled .wvc-step2-consents label strong,
.webify-voucher-checkout-enabled .wvc-step2-consents .potvrdzujem,
.webify-voucher-checkout-enabled .wvc-step2-consents .woocommerce-terms-and-conditions-checkbox-text {
	font-weight: 400 !important;
}


/* =========================================================
 * 0.1.9 – čistý POD tooltip, poloha spätného odkazu, 14 px súhlasy
 * ======================================================= */

.webify-voucher-checkout-enabled #order_wcj_checkout_field_1_field > label {
	display: inline-flex !important;
	align-items: center !important;
	gap: 7px !important;
	position: relative !important;
	width: auto !important;
}

.webify-voucher-checkout-enabled .wvc-pod-help {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	margin: 0;
	padding: 0;
	line-height: 1;
	cursor: help;
	outline: none;
}

.webify-voucher-checkout-enabled .wvc-pod-help__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: linear-gradient(315deg, #63e6be 0%, #8be0ff 100%);
	color: #151c19;
	font: 700 12px/1 "Work Sans", sans-serif;
}

.webify-voucher-checkout-enabled .wvc-pod-help__content {
	visibility: hidden;
	opacity: 0;
	position: absolute;
	left: 50%;
	top: calc(100% + 10px);
	z-index: 9999;
	width: 270px;
	padding: 14px;
	transform: translateX(-50%);
	border-radius: 10px;
	background: #47d7c6;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .20);
	color: #151c19;
	text-align: center;
	transition: opacity .18s ease, visibility .18s ease;
}

.webify-voucher-checkout-enabled .wvc-pod-help__content strong {
	display: block;
	margin-bottom: 10px;
	font: 700 14px/1.3 "Work Sans", sans-serif;
}

.webify-voucher-checkout-enabled .wvc-pod-help__content img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}

.webify-voucher-checkout-enabled .wvc-pod-help:hover .wvc-pod-help__content,
.webify-voucher-checkout-enabled .wvc-pod-help:focus .wvc-pod-help__content,
.webify-voucher-checkout-enabled .wvc-pod-help:focus-within .wvc-pod-help__content {
	visibility: visible;
	opacity: 1;
}

.webify-voucher-checkout-enabled .wvc-heading + .wvc-step__nav--back {
	display: flex;
	justify-content: flex-start;
	margin: -14px 0 22px;
	padding: 0;
}

.webify-voucher-checkout-enabled .wvc-heading + .wvc-step__nav--back .wvc-back {
	padding: 0;
}

.webify-voucher-checkout-enabled .wvc-step2-consents,
.webify-voucher-checkout-enabled .wvc-step2-consents label,
.webify-voucher-checkout-enabled .wvc-step2-consents label span,
.webify-voucher-checkout-enabled .wvc-step2-consents label strong,
.webify-voucher-checkout-enabled .wvc-step2-consents .potvrdzujem,
.webify-voucher-checkout-enabled .wvc-step2-consents .woocommerce-terms-and-conditions-checkbox-text {
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;
}

@media (max-width: 575px) {
	.webify-voucher-checkout-enabled .wvc-pod-help__content {
		left: 0;
		width: min(270px, calc(100vw - 40px));
		transform: none;
	}
}


/* =========================================================
 * 0.2.0 – spätný odkaz iba v druhom kroku + odstránenie zvyšnej ikonky
 * ======================================================= */

/* Odkaz na návrat sa nesmie zobrazovať v prvom kroku. */
.webify-voucher-checkout-enabled form.wvc-current-step-1 .wvc-step__nav--back {
	display: none !important;
}

/* V druhom kroku zostáva na dohodnutom mieste pod nadpisom. */
.webify-voucher-checkout-enabled form.wvc-current-step-2 .wvc-heading + .wvc-step__nav--back {
	display: flex !important;
}


/* =========================================================
 * 0.2.1 – stabilný layout validácie + funkčný WooCommerce submit
 * ======================================================= */

/*
 * Prvý krok používa grid namiesto floatov. Chybové hlásenie tak zväčší
 * výšku celého riadku a neposunie susedné polia do nesprávnych pozícií.
 */
.webify-voucher-checkout-enabled #wvc-step-1 .wvc-step__fields {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 24px;
	row-gap: 22px;
	align-items: start;
}

.webify-voucher-checkout-enabled #wvc-step-1 .wvc-step__fields > .form-row {
	float: none !important;
	clear: none !important;
	width: 100% !important;
	margin: 0 !important;
	min-width: 0;
}

.webify-voucher-checkout-enabled #wvc-step-1 .wvc-error-message {
	position: static !important;
	top: auto !important;
	margin: 8px 0 0 !important;
}

.webify-voucher-checkout-enabled #wvc-step-1 .woocommerce-invalid {
	margin-bottom: 0 !important;
}

@media (max-width: 767px) {
	.webify-voucher-checkout-enabled #wvc-step-1 .wvc-step__fields {
		grid-template-columns: 1fr;
		row-gap: 18px;
	}
}


/* =========================================================
 * 0.2.2 – lokálne validačné chyby v druhom kroku
 * ======================================================= */

/* Globálny WooCommerce error box je iba vizuálne skrytý.
 * Backend validácia WooCommerce zostáva aktívna.
 */
.webify-voucher-checkout-enabled .woocommerce-NoticeGroup-checkout .woocommerce-error,
.webify-voucher-checkout-enabled form.checkout > .woocommerce-NoticeGroup .woocommerce-error,
.webify-voucher-checkout-enabled .wvc-hidden-global-error {
	display: none !important;
}

/* Textové polia */
.webify-voucher-checkout-enabled #wvc-step-2 .wvc-invalid-control,
.webify-voucher-checkout-enabled #wvc-step-2 .wvc-second-step-error .input-text {
	border-color: #b72b2b !important;
	box-shadow: 0 0 0 1px #b72b2b !important;
}

.webify-voucher-checkout-enabled .wvc-second-step-error-message {
	display: block;
	width: 100%;
	margin-top: 7px;
	color: #b72b2b;
	font: 400 14px/1.35 "Work Sans", sans-serif;
	text-align: left;
}

/* Checkboxy */
.webify-voucher-checkout-enabled .wvc-step2-consents .wvc-second-step-error {
	padding: 10px 12px;
	border: 1px solid #b72b2b;
	border-radius: 8px;
}

.webify-voucher-checkout-enabled .wvc-step2-consents .wvc-second-step-error input[type="checkbox"] {
	outline: 1px solid #b72b2b;
	outline-offset: 1px;
}

.webify-voucher-checkout-enabled .wvc-step2-consents .wvc-second-step-error-message {
	margin-left: 25px;
}


/* =========================================================
 * 1.0.0-beta.8 – klientské úpravy
 * ======================================================= */

/* V TIP bloku zatiaľ iba vizuálny text bez odkazu. */
.webify-voucher-checkout-enabled .wvc-invoice-sample {
	margin-top: 8px !important;
}

.webify-voucher-checkout-enabled .wvc-invoice-sample__link {
	color: #2acdbc;
	font-weight: 700;
	text-decoration: underline;
	cursor: default;
}

/* Tooltip obsahuje iba samotný obrázok, aby sa nadpis nezobrazil dvakrát. */
.webify-voucher-checkout-enabled .wvc-pod-help__content {
	padding: 0;
	overflow: hidden;
	background: transparent;
}

.webify-voucher-checkout-enabled .wvc-pod-help__content img {
	border-radius: 10px;
}

/* Formát POD. */
.webify-voucher-checkout-enabled .wvc-pod-format-hint {
	display: block;
	margin-top: 6px;
	color: #777;
	font: 400 12px/1.35 "Work Sans", sans-serif;
}

.webify-voucher-checkout-enabled #order_wcj_checkout_field_1_field.wvc-second-step-error .wvc-pod-format-hint {
	display: none;
}

/* Chyba POD zostáva vždy priamo pod POD poľom a vždy červená. */
.webify-voucher-checkout-enabled #order_wcj_checkout_field_1_field {
	position: relative;
}

.webify-voucher-checkout-enabled #order_wcj_checkout_field_1_field > .wvc-second-step-error-message {
	position: static !important;
	display: block !important;
	margin: 7px 0 0 !important;
	color: #b72b2b !important;
	font: 400 14px/1.35 "Work Sans", sans-serif !important;
	opacity: 1 !important;
}

/* Odstránenie jednej z dvoch deliacich čiar pred súhlasmi. */
.webify-voucher-checkout-enabled .wvc-step2-consents {
	border-top: 0 !important;
	padding-top: 0 !important;
}

/* Popup podmienok akcie. */
body.wvc-terms-modal-open {
	overflow: hidden;
}

.wvc-terms-modal[hidden] {
	display: none !important;
}

.wvc-terms-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 24px;
}

.wvc-terms-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, .72);
	backdrop-filter: blur(8px);
}

.wvc-terms-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(920px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: 70px 85px 72px;
	border-radius: 28px;
	background: #f7f7f7;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .16);
	text-align: center;
}

.wvc-terms-modal__text {
	color: #151515;
	font: 400 26px/1.32 "Work Sans", sans-serif;
}

.wvc-terms-modal__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: min(395px, 100%);
	min-height: 108px;
	margin-top: 60px;
	padding: 18px 34px;
	border: 0;
	border-radius: 24px;
	background: #ffd000;
	color: #000;
	font: 700 34px/1 "Work Sans", sans-serif;
	text-transform: uppercase;
	cursor: pointer;
}

.wvc-terms-modal__button:hover,
.wvc-terms-modal__button:focus {
	background: #183153;
	color: #ffd000;
}

@media (max-width: 767px) {
	.wvc-terms-modal {
		padding: 12px;
	}

	.wvc-terms-modal__dialog {
		padding: 34px 22px 28px;
		border-radius: 18px;
	}

	.wvc-terms-modal__text {
		font-size: 17px;
		line-height: 1.45;
	}

	.wvc-terms-modal__button {
		min-height: 58px;
		margin-top: 28px;
		border-radius: 12px;
		font-size: 19px;
	}
}


/* 1.0.0-beta.9 */
.webify-voucher-checkout-enabled .wvc-pod-format-hint {
	display: none !important;
}

.webify-voucher-checkout-enabled .wvc-pod-help__content {
	padding: 0 !important;
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}

.webify-voucher-checkout-enabled .wvc-pod-help__content::before,
.webify-voucher-checkout-enabled .wvc-pod-help__content::after {
	display: none !important;
	content: none !important;
}

.webify-voucher-checkout-enabled .wvc-pod-help__content img {
	display: block;
	margin: 0;
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}

.webify-voucher-checkout-enabled .wvc-lead-modal__submit,
.webify-voucher-checkout-enabled .wvc-lead-modal__done {
	font-size: 15px !important;
	line-height: 1.2 !important;
}

.wvc-terms-modal {
	padding: 20px !important;
}

.wvc-terms-modal__backdrop {
	background: rgba(0, 0, 0, .62) !important;
	backdrop-filter: none !important;
}

.wvc-terms-modal__dialog {
	width: min(820px, calc(100% - 40px)) !important;
	max-height: calc(100vh - 40px) !important;
	padding: 58px 56px 48px !important;
	border-radius: 20px !important;
	background: #fff !important;
	box-shadow: 0 18px 60px rgba(0,0,0,.22) !important;
	text-align: left !important;
}

.wvc-terms-modal__text {
	color: #6f6f6f !important;
	font: 400 18px/1.5 "Work Sans", sans-serif !important;
	text-align: left !important;
}

.wvc-terms-modal__button {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	min-height: 64px !important;
	margin-top: 34px !important;
	padding: 18px 28px !important;
	border-radius: 10px !important;
	background: #ffd000 !important;
	color: #000 !important;
	font: 700 15px/1.2 "Work Sans", sans-serif !important;
	text-align: center !important;
}

.wvc-terms-modal__button:hover,
.wvc-terms-modal__button:focus {
	background: #ffd000 !important;
	color: #000 !important;
}

@media (max-width: 767px) {
	.wvc-terms-modal__dialog {
		width: calc(100% - 24px) !important;
		padding: 34px 24px 26px !important;
		border-radius: 16px !important;
	}

	.wvc-terms-modal__text {
		font-size: 16px !important;
		line-height: 1.45 !important;
	}

	.wvc-terms-modal__button {
		min-height: 56px !important;
		margin-top: 26px !important;
		font-size: 15px !important;
	}
}
