/* LotoFlex Venta Terminal: visual parity with Loteria Nacional. */

.lfx-vt {
	width: 100%;
	margin-top: 1rem;
}

.lfx-vt > .row.mb-4 {
	margin-bottom: .5rem !important;
}

.lfx-vt > .row {
	--tblr-gutter-y: .75rem;
}

.lfx-vt .card {
	border-radius: var(--tblr-border-radius, 4px);
}

.lfx-vt .card-header {
	min-height: 0;
	padding: .45rem .75rem;
}

.lfx-vt .lfx-vt-mode-switch {
	display: inline-flex;
	gap: .35rem;
	margin: 0 0 .7rem;
}

.lfx-vt .lfx-vt-mode-switch .btn {
	border-radius: 999px;
}

.lfx-vt .lfx-vt-coming-soon {
	display: inline-flex;
	align-items: center;
	padding: .3rem .55rem;
	border: 1px solid var(--lfx-border, #dce1e7);
	border-radius: 999px;
	background: var(--tblr-bg-surface-secondary, #f4f6f8);
	color: var(--tblr-muted, #667382);
	font-size: .75rem;
	font-weight: 600;
	white-space: nowrap;
}

.lfx-vt .lfx-vt-termination-panel {
	color: inherit;
	padding: .5rem 0 0;
}

.lfx-vt .lfx-vt-termination-heading {
	margin-bottom: 1rem;
}

.lfx-vt .lfx-vt-termination-title-row {
	display: flex;
	gap: .65rem;
	align-items: center;
}

.lfx-vt .lfx-vt-termination-mark {
	display: inline-grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border: 1px solid color-mix(in oklch, var(--lfx-primary, #206bc4) 24%, var(--lfx-border, #dce1e7));
	border-radius: var(--tblr-border-radius, 4px);
	background: color-mix(in oklch, var(--lfx-primary, #206bc4) 8%, var(--lfx-surface, #fff));
	font-size: 1.1rem;
}

.lfx-vt .lfx-vt-termination-kicker {
	display: block;
	margin-bottom: .15rem;
	color: var(--lfx-primary, #206bc4);
	font-size: .73rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.lfx-vt .lfx-vt-termination-title {
	margin: 0;
	color: inherit;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
}

.lfx-vt .lfx-vt-termination-subtitle {
	max-width: 58ch;
	margin: .6rem 0 0;
	color: var(--tblr-muted, #667382);
	font-size: .86rem;
	line-height: 1.45;
}

.lfx-vt .lfx-vt-termination-tickets {
	margin-top: 1rem;
}

.lfx-vt .lfx-vt-termination-tools {
	margin-inline: -.75rem;
	padding: 1rem;
	border-block: 1px solid var(--lfx-border, #dce1e7);
	border-inline: 0;
	border-radius: 0;
	background: color-mix(in oklch, var(--lfx-primary, #206bc4) 4%, var(--lfx-surface, #fff));
}

.lfx-vt .lfx-vt-termination-tools__intro {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: .9rem;
}

.lfx-vt .lfx-vt-termination-tools__eyebrow {
	display: block;
	margin-bottom: .15rem;
	color: var(--lfx-primary, #206bc4);
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .055em;
	text-transform: uppercase;
}

.lfx-vt .lfx-vt-termination-tools__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
}

.lfx-vt .lfx-vt-termination-tools__badge {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	min-height: 28px;
	padding: .25rem .55rem;
	border: 1px solid color-mix(in oklch, var(--lfx-primary, #206bc4) 20%, var(--lfx-border, #dce1e7));
	border-radius: 999px;
	background: var(--lfx-surface, #fff);
	color: var(--lfx-primary, #206bc4);
	font-size: .72rem;
	font-weight: 700;
	white-space: nowrap;
}

.lfx-vt .lfx-vt-termination-tools__controls {
	display: grid;
	grid-template-columns: minmax(245px, .9fr) minmax(260px, 1.1fr);
	gap: 1rem;
	align-items: start;
}

.lfx-vt .lfx-vt-termination-length {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.lfx-vt .lfx-vt-termination-length legend,
.lfx-vt .lfx-vt-termination-search-field__label {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	width: 100%;
	margin: 0 0 .4rem;
	padding: 0;
	color: var(--lfx-text, #354052);
	font-size: .77rem;
	font-weight: 700;
	line-height: 1.25;
}

.lfx-vt .lfx-vt-termination-search-field__label span {
	color: var(--lfx-text-muted, #667382);
	font-size: .68rem;
	font-weight: 600;
}

.lfx-vt .lfx-vt-termination-filter {
	display: flex;
	gap: .35rem;
	margin: 0;
	padding: .25rem;
	overflow-x: auto;
	border: 1px solid var(--lfx-border, #dce1e7);
	border-radius: var(--tblr-border-radius, 4px);
	background: var(--tblr-bg-surface-secondary, #f4f6f8);
}

.lfx-vt .lfx-vt-termination-filter__button {
	flex: 1 0 auto;
	min-height: 44px;
	padding: .45rem .8rem;
	border: 0;
	border-radius: calc(var(--tblr-border-radius, 4px) - 1px);
	background: transparent;
	color: var(--tblr-muted, #667382);
	font-size: .82rem;
	font-weight: 700;
	white-space: nowrap;
}

.lfx-vt .lfx-vt-termination-filter__button:hover:not(:disabled),
.lfx-vt .lfx-vt-termination-filter__button:focus-visible {
	color: var(--lfx-primary, #206bc4);
}

.lfx-vt .lfx-vt-termination-filter__button:focus-visible {
	outline: 2px solid var(--lfx-primary, #206bc4);
	outline-offset: 1px;
}

.lfx-vt .lfx-vt-termination-filter__button.is-active {
	background: var(--lfx-surface, #fff);
	color: var(--lfx-primary, #206bc4);
	box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}

.lfx-vt .lfx-vt-termination-filter__button:disabled {
	cursor: not-allowed;
	opacity: .42;
}

.lfx-vt .lfx-vt-termination-search-wrap {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	margin: 0;
}

.lfx-vt .lfx-vt-termination-search-wrap > .ti-search {
	position: absolute;
	left: .8rem;
	z-index: 1;
	color: var(--lfx-text-muted, #667382);
	font-size: 1.1rem;
	pointer-events: none;
}

.lfx-vt .lfx-vt-termination-search-wrap .form-control {
	min-height: 50px;
	padding-left: 2.45rem;
	padding-right: 3rem;
	border-color: var(--lfx-border, #dce1e7);
	border-radius: var(--tblr-border-radius, 4px);
	background: var(--lfx-surface, #fff);
	font-size: 1rem;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
	letter-spacing: .04em;
}

.lfx-vt .lfx-vt-termination-search-wrap .form-control:focus-visible {
	outline: 2px solid var(--lfx-primary, #206bc4);
	outline-offset: 2px;
}

.lfx-vt .lfx-vt-termination-search-clear {
	position: absolute;
	right: .25rem;
	display: inline-grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border: 0;
	border-radius: var(--tblr-border-radius, 4px);
	background: transparent;
	color: var(--lfx-text-muted, #667382);
	font-size: 1.15rem;
}

.lfx-vt .lfx-vt-termination-search-clear[hidden] {
	display: none;
}

.lfx-vt .lfx-vt-termination-search-clear:hover {
	background: color-mix(in oklch, var(--lfx-primary, #206bc4) 8%, transparent);
	color: var(--lfx-primary, #206bc4);
}

.lfx-vt .lfx-vt-termination-search-clear:focus-visible {
	outline: 2px solid var(--lfx-primary, #206bc4);
	outline-offset: -2px;
}

.lfx-vt .lfx-vt-termination-search-field__hint {
	display: block;
	margin-top: .35rem;
	color: var(--lfx-text-muted, #667382);
	font-size: .7rem;
	line-height: 1.35;
}

.lfx-vt .lfx-vt-termination-tools__status {
	display: flex;
	align-items: center;
	gap: .5rem;
	min-height: 1.5rem;
	margin-top: .8rem;
	padding-top: .75rem;
	border-top: 1px solid color-mix(in oklch, var(--lfx-border, #dce1e7) 76%, transparent);
	color: var(--lfx-text-muted, #667382);
	font-size: .75rem;
	font-weight: 600;
}

.lfx-vt .lfx-vt-termination-tools__pulse {
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--lfx-primary, #206bc4);
}

.lfx-vt .lfx-vt-termination-tools.is-loading .lfx-vt-termination-tools__pulse {
	animation: lfx-vt-status-pulse 1.1s ease-in-out infinite alternate;
}

.lfx-vt .lfx-vt-termination-tools.has-error .lfx-vt-termination-tools__status {
	color: var(--tblr-danger, #d63939);
}

.lfx-vt .lfx-vt-termination-tools.has-error .lfx-vt-termination-tools__pulse {
	background: var(--tblr-danger, #d63939);
}

.lfx-vt .lfx-vt-termination-skeleton {
	overflow: hidden;
	border: 1px solid var(--lfx-border, #dce1e7);
	border-radius: var(--tblr-border-radius, 4px);
	background: var(--lfx-surface, #fff);
	animation: lfx-vt-skeleton-pulse .85s ease-in-out infinite alternate;
}

.lfx-vt .lfx-vt-termination-skeleton__ticket,
.lfx-vt .lfx-vt-termination-skeleton__meta {
	display: block;
	background: var(--lfx-surface-2, #f4f6f8);
}

.lfx-vt .lfx-vt-termination-skeleton__ticket {
	aspect-ratio: 1.6 / 1;
}

.lfx-vt .lfx-vt-termination-skeleton__meta {
	width: 54%;
	height: 12px;
	margin: .75rem;
	border-radius: 2px;
}

@keyframes lfx-vt-status-pulse {
	to { opacity: .3; }
}

@keyframes lfx-vt-skeleton-pulse {
	to { opacity: .58; }
}

@media (prefers-reduced-motion: reduce) {
	.lfx-vt .lfx-vt-termination-tools.is-loading .lfx-vt-termination-tools__pulse,
	.lfx-vt .lfx-vt-termination-skeleton {
		animation: none;
	}
}

.lfx-vt .ticket-number.lfx-vt-termination-number {
	left: 32%;
	min-width: 150px;
	top: 19px;
	padding: .4rem .55rem;
	background: var(--lfx-surface, #fff);
	color: var(--lfx-text, #0f172a);
	border-radius: 12px;
	box-shadow: 6px 3px 3px rgba(0, 0, 0, .3);
	font-size: 1.05rem;
	letter-spacing: .04em;
	transform: none;
	white-space: nowrap;
}

.lfx-vt .lfx-vt-clovers {
	font-size: .94em;
}

.lfx-vt .lfx-vt-termination-digit {
	display: inline-block;
	margin-left: .18rem;
	color: inherit;
	font-size: 1.45em;
	font-weight: 800;
	text-shadow: none;
	vertical-align: -.08em;
}

.lfx-vt .lfx-vt-termination-controls {
	display: flex;
	gap: .5rem;
	align-items: stretch;
}

.lfx-vt .lfx-vt-termination-digits {
	width: 92px;
	margin: 0;
}

.lfx-vt .lfx-vt-termination-digits > span {
	display: block;
	margin: 0 0 .3rem;
	color: var(--tblr-muted, #667382);
	font-size: .73rem;
	font-weight: 700;
}

.lfx-vt .lfx-vt-termination-digits .form-select {
	min-height: 48px;
	padding-top: .45rem;
	padding-bottom: .45rem;
	border-color: var(--lfx-border, #dce1e7);
	background-color: var(--lfx-surface, #fff);
	color: inherit;
	font-weight: 700;
}

.lfx-vt .lfx-vt-termination-value {
	flex: 1 1 180px;
	min-width: 0;
	margin: 0;
}

.lfx-vt .lfx-vt-termination-value > span {
	display: block;
	margin: 0 0 .3rem;
	color: var(--tblr-muted, #667382);
	font-size: .73rem;
	font-weight: 700;
}

.lfx-vt .lfx-vt-termination-value .form-control {
	min-height: 48px;
	padding: .25rem .75rem;
	border-color: var(--lfx-border, #dce1e7);
	background-color: var(--lfx-surface, #fff);
	color: inherit;
	font-size: 1.55rem;
	font-weight: 700;
	letter-spacing: .2em;
	line-height: 1;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.lfx-vt .lfx-vt-termination-value .form-control::placeholder {
	color: var(--tblr-muted, #667382);
	opacity: .55;
}

.lfx-vt .lfx-vt-termination-check {
	align-self: end;
	min-height: 48px;
	border-color: var(--lfx-primary, #206bc4);
	background: var(--lfx-primary, #206bc4);
	color: var(--lfx-surface, #fff);
	padding-inline: 1rem;
	font-weight: 700;
}

.lfx-vt .lfx-vt-termination-check:hover,
.lfx-vt .lfx-vt-termination-check:focus-visible {
	border-color: var(--lfx-primary, #206bc4);
	background: var(--lfx-primary, #206bc4);
	color: var(--lfx-surface, #fff);
}


.lfx-vt .lfx-vt-termination-random-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-top: 1rem;
	padding-top: .9rem;
	border-top: 1px solid var(--lfx-border, #dce1e7);
}

.lfx-vt .lfx-vt-termination-helper-label {
	color: var(--tblr-muted, #667382);
	font-size: .76rem;
	font-weight: 600;
}

.lfx-vt .lfx-vt-termination-random {
	border-color: var(--lfx-primary, #206bc4);
	color: var(--lfx-primary, #206bc4);
	font-weight: 700;
}

.lfx-vt .lfx-vt-termination-random:hover,
.lfx-vt .lfx-vt-termination-random:focus-visible {
	border-color: var(--lfx-primary, #206bc4);
	background: var(--lfx-primary, #206bc4);
	color: var(--lfx-surface, #fff);
}

.lfx-vt .lfx-vt-termination-result {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
	margin-top: .9rem;
	padding-top: .9rem;
	border-top: 1px solid var(--lfx-border, #dce1e7);
}

.lfx-vt #lfx-vt-termination-status {
	min-height: 1.2em;
	color: var(--tblr-muted, #667382) !important;
}

.lfx-vt #lfx-vt-termination-add {
	flex: 0 0 auto;
	border-color: var(--lfx-primary, #206bc4);
	background: var(--lfx-primary, #206bc4);
	color: var(--lfx-surface, #fff);
	font-weight: 700;
}

.lfx-vt #lfx-vt-termination-add:hover:not(:disabled),
.lfx-vt #lfx-vt-termination-add:focus-visible:not(:disabled) {
	border-color: var(--lfx-primary, #206bc4);
	background: var(--lfx-primary, #206bc4);
	color: var(--lfx-surface, #fff);
}

.lfx-vt #lfx-vt-termination-add:disabled {
	border-color: var(--lfx-border, #dce1e7);
	background: var(--tblr-bg-surface-secondary, #eef2f6);
	color: var(--tblr-muted, #667382);
	opacity: 1;
}

.lfx-vt .card-body {
	padding: .75rem;
}

.lfx-vt > .row:first-child .card-header {
	display: flex;
	padding: .5rem .75rem .35rem;
	border-bottom: 0;
}

.lfx-vt > .row:first-child .card-title {
	font-size: .9rem;
	line-height: 1.2;
	margin: 0;
}

.lfx-vt > .row:first-child .card-body {
	padding: .35rem .45rem .45rem;
}

.lfx-vt > .row:first-child .card {
	box-shadow: none;
}

.lfx-vt .sweepstakes-carousel-container {
	padding-top: 0;
}

.lfx-vt .sweepstakes-carousel {
	cursor: default;
}

.lfx-vt .sweepstake-card-wrapper {
	flex-basis: 16.666%;
	padding: 0 4px;
}

.lfx-vt .sweepstake-card {
	cursor: pointer;
	border-width: 1px;
	box-shadow: none;
	min-height: 82px;
}

.lfx-vt .sweepstake-card:hover {
	transform: none;
}

.lfx-vt .sweepstake-card.selected {
	box-shadow: inset 0 0 0 1px var(--lfx-primary, #206bc4);
}

.lfx-vt .sweepstake-card .card-body.sweepstake-card-body-compact {
	gap: 7px;
	min-height: 82px;
	padding: 6px 7px;
}

.lfx-vt .sweepstake-thumb-wrap,
.lfx-vt .sweepstake-thumb {
	width: 68px;
}

.lfx-vt .sweepstake-thumb {
	height: 39px;
	border-radius: 4px;
}

.lfx-vt .sweepstake-meta {
	gap: 1px;
}

.lfx-vt .sweepstake-date-compact {
	gap: 3px;
	font-size: .62rem;
	line-height: 1.05;
}

.lfx-vt .sweepstake-date-compact .date-number {
	font-size: .7rem;
}

.lfx-vt .sweepstake-name-compact {
	font-size: .72rem;
	line-height: 1.12;
	margin: 1px 0 2px;
	-webkit-line-clamp: 2;
}

.lfx-vt .sweepstake-meta-row {
	gap: 4px;
	margin-top: 0;
}

.lfx-vt .sweepstake-card .sweepstake-meta-row .sweepstake-prize {
	font-size: .7rem;
	line-height: 1.1;
}

.lfx-vt-search-wrap {
	min-width: 190px;
}

.lfx-vt .form-control {
	min-height: 32px;
	padding-top: .35rem;
	padding-bottom: .35rem;
}

.lfx-vt .btn {
	--tblr-btn-padding-y: .35rem;
	--tblr-btn-padding-x: .65rem;
}

.lfx-vt .card-header .btn,
.lfx-vt .card-header .form-control {
	font-size: .85rem;
}

.lfx-vt #lfx-vt-stock {
	--tblr-gutter-x: .75rem;
	--tblr-gutter-y: .75rem;
	margin-bottom: 0;
}

.lfx-vt .lottery-ticket {
	background: var(--lfx-surface, #fff);
	border-color: var(--lfx-border, #dce1e7);
	box-shadow: var(--lfx-shadow-1, 0 1px 2px rgba(0, 0, 0, .05));
}

.lfx-vt .lottery-ticket-image {
	width: 100%;
	height: auto !important;
	aspect-ratio: auto;
}

.lfx-vt .lottery-ticket-image > .ticket-background-image {
	display: block;
	height: auto;
	object-fit: contain;
}

.lfx-vt .lottery-ticket-image > .ticket-background {
	position: relative;
	inset: auto;
	box-sizing: border-box;
	width: 100%;
	height: auto;
	aspect-ratio: 1.6 / 1;
}

.lfx-vt .ticket-number {
	font-size: 1.45rem;
	left: 30%;
	min-width: 120px;
	top: 15px;
	border-radius: 8px;
	box-shadow: 4px 2px 2px rgba(0, 0, 0, .24);
}

.lfx-vt .lottery-ticket-controls {
	padding: .5rem .6rem;
}

.lfx-vt .stock-number,
.lfx-vt .quantity-display {
	font-size: 1.1rem;
}

.lfx-vt .stock-label {
	font-size: .68rem;
	line-height: 1.1;
}

.lfx-vt .quantity-controls {
	gap: .35rem;
}

.lfx-vt .quantity-btn {
	aspect-ratio: 1 / 1;
	flex: 0 0 30px;
	width: 30px;
	height: auto;
	min-height: 0;
	padding: 0;
}

.lfx-vt .lottery-ticket.is-loading {
	opacity: .72;
	pointer-events: none;
}

.lfx-vt .lottery-ticket .quantity-display {
	font-variant-numeric: tabular-nums;
	min-width: 22px;
}

.lfx-vt .lottery-ticket .quantity-btn.minus {
	pointer-events: none;
}

.lfx-vt .lottery-ticket .quantity-icon {
	width: 14px;
	height: 14px;
}

.lfx-vt .selected-numbers-list {
	min-height: 70px;
	max-height: 300px;
}

.lfx-vt .empty-selection {
	padding-top: 1rem !important;
	padding-bottom: 1rem !important;
}

.lfx-vt hr {
	margin: .75rem 0;
}

.lfx-vt-cart-thumb {
	width: 36px;
	height: 48px;
	border-radius: 4px;
	overflow: hidden;
	background: #f1f5f9;
	flex: 0 0 auto;
}

.lfx-vt-cart-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lfx-vt-cart-termination {
	display: grid;
	min-width: 42px;
	height: 48px;
	place-items: center;
	padding: 0 .4rem;
	border: 1px solid var(--lfx-primary, #206bc4);
	border-radius: 4px;
	background: var(--lfx-surface, #fff);
	color: var(--lfx-primary, #206bc4);
	font-size: .95rem;
	font-weight: 700;
	letter-spacing: .08em;
	font-variant-numeric: tabular-nums;
	flex: 0 0 auto;
}

.lfx-vt #lfx-vt-checkout-btn.disabled {
	pointer-events: none;
	opacity: .65;
}

@media (max-width: 1199px) {
	.lfx-vt .sweepstake-card-wrapper {
		flex-basis: 25%;
	}
}

@media (max-width: 991px) {
	.lfx-vt .sweepstake-card-wrapper {
		flex-basis: 33.333%;
	}
}

@media (max-width: 767px) {
	.lfx-vt .lfx-vt-termination-tools__controls {
		grid-template-columns: minmax(0, 1fr);
		gap: .85rem;
	}

	.lfx-vt .lfx-vt-termination-controls {
		flex-wrap: wrap;
	}

	.lfx-vt .lfx-vt-termination-value {
		flex-basis: calc(100% - 100px);
	}

	.lfx-vt .lfx-vt-termination-check {
		width: 100%;
	}

	.lfx-vt .lfx-vt-termination-random-row {
		align-items: stretch;
		flex-direction: column;
	}

	.lfx-vt .lfx-vt-termination-random {
		width: 100%;
	}

	.lfx-vt .lfx-vt-termination-result {
		align-items: stretch;
		flex-direction: column;
	}

	.lfx-vt #lfx-vt-termination-add {
		width: 100%;
	}

	.lfx-vt-search-wrap {
		width: 100%;
	}

	.lfx-vt .lfx-vt-termination-search-wrap {
		width: 100%;
	}

	.lfx-vt .sweepstake-card-wrapper {
		flex-basis: 50%;
	}

	.lfx-vt .ticket-number.lfx-vt-termination-number {
		left: calc(35% + 8px);
		top: 15px;
	}
}

@media (max-width: 575px) {
	.lfx-vt .lfx-vt-termination-heading {
		margin-bottom: .85rem;
	}

	.lfx-vt .lfx-vt-termination-subtitle {
		font-size: .8rem;
	}

	.lfx-vt .lfx-vt-termination-tools {
		margin-inline: -.75rem;
		padding: .8rem .75rem;
	}

	.lfx-vt .lfx-vt-termination-tools__intro {
		align-items: flex-start;
		flex-direction: column;
		gap: .55rem;
		margin-bottom: .75rem;
	}

	.lfx-vt .lfx-vt-termination-tools__badge {
		min-height: 26px;
	}

	.lfx-vt .lfx-vt-termination-filter {
		display: grid;
		grid-template-columns: repeat(4, minmax(72px, 1fr));
	}

	.lfx-vt .lfx-vt-termination-filter__button {
		padding-inline: .65rem;
	}

	.lfx-vt .lfx-vt-termination-tools__status {
		align-items: flex-start;
	}

	.lfx-vt .lfx-vt-termination-tools__pulse {
		margin-top: .3rem;
	}
}

@media (max-width: 375px) {
	.lfx-vt .lfx-vt-termination-filter {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
