.tvps-showcase,
.tvps-showcase * {
	box-sizing: border-box;
}

.tvps-showcase {
	--tvps-primary: #1358c8;
	--tvps-primary-dark: #0b3f95;
	--tvps-text: #152033;
	--tvps-muted: #667085;
	--tvps-border: #e4e7ec;
	--tvps-surface: #ffffff;
	--tvps-soft: #f6f8fb;
	--tvps-offer: #e84855;
	--tvps-columns-desktop: 3;
	--tvps-columns-tablet: 2;
	--tvps-columns-mobile: 1;
	--tvps-gap: 24px;
	position: relative;
	width: 100%;
	color: var(--tvps-text);
	font-family: inherit;
}

/*
 * Some themes apply a scroll-reveal fade/slide-in animation to generic
 * headings and controls (opacity/transform starting hidden until an
 * observer marks them "in view"). That observer never runs against
 * markup this plugin renders, so titles can stay permanently invisible
 * and controls can stay unclickable. Force our own text and interactive
 * elements to always render fully visible and usable, regardless of any
 * such theme-level animation.
 */
.tvps-showcase .tvps-card-title,
.tvps-showcase .tvps-card-subtitle,
.tvps-showcase .tvps-single-title,
.tvps-showcase .tvps-single-subtitle,
.tvps-showcase .tvps-price,
.tvps-showcase .tvps-period,
.tvps-showcase .tvps-feature-text {
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
}

.tvps-showcase .tvps-sort,
.tvps-showcase .tvps-search,
.tvps-showcase .tvps-search-input,
.tvps-showcase .tvps-tab,
.tvps-showcase .tvps-button {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

.tvps-showcase .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.tvps-heading-wrap {
	margin: 0 0 28px;
	text-align: center;
}

.tvps-heading {
	margin: 0;
	font-size: clamp(1.8rem, 3vw, 2.75rem);
	line-height: 1.15;
	color: var(--tvps-text);
}

.tvps-intro {
	max-width: 760px;
	margin: 12px auto 0;
	color: var(--tvps-muted);
}

.tvps-intro > :last-child {
	margin-bottom: 0;
}

.tvps-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.tvps-tabs {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.tvps-tab {
	appearance: none;
	border: 1px solid var(--tvps-border);
	border-radius: 999px;
	background: var(--tvps-surface);
	color: var(--tvps-text);
	padding: 9px 18px;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.tvps-tab:hover,
.tvps-tab:focus-visible {
	border-color: var(--tvps-primary);
	color: var(--tvps-primary);
	outline: none;
}

.tvps-tab.is-active {
	background: var(--tvps-primary);
	border-color: var(--tvps-primary);
	color: #fff;
}

.tvps-tools {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-left: auto;
}

.tvps-search {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 220px;
	min-height: 42px;
	padding: 0 13px;
	border: 1px solid var(--tvps-border);
	border-radius: 10px;
	background: var(--tvps-surface);
	color: var(--tvps-muted);
}

.tvps-search:focus-within {
	border-color: var(--tvps-primary);
	box-shadow: 0 0 0 3px rgb(19 88 200 / 12%);
}

.tvps-search-input {
	width: 100%;
	min-width: 0;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 0 !important;
	font: inherit;
	color: var(--tvps-text);
}

.tvps-sort {
	min-height: 42px;
	border: 1px solid var(--tvps-border);
	border-radius: 10px;
	background: var(--tvps-surface);
	color: var(--tvps-text);
	padding: 0 36px 0 13px;
	font: inherit;
	cursor: pointer;
}

.tvps-sort:focus {
	border-color: var(--tvps-primary);
	box-shadow: 0 0 0 3px rgb(19 88 200 / 12%);
	outline: none;
}

.tvps-grid {
	display: grid;
	grid-template-columns: repeat(var(--tvps-columns-desktop), minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
}

.tvps-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: var(--tvps-surface);
	border: 1px solid var(--tvps-border);
	border-radius: 18px;
	box-shadow: 0 12px 35px rgb(16 24 40 / 7%);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.tvps-card:hover {
	transform: translateY(-4px);
	border-color: rgb(19 88 200 / 35%);
	box-shadow: 0 18px 45px rgb(16 24 40 / 12%);
}

.tvps-card[hidden] {
	display: none !important;
}

.tvps-slider {
	position: relative;
	outline: none;
}

.tvps-slider-viewport {
	overflow: hidden;
}

.tvps-slider-track {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	touch-action: pan-y;
}

.tvps-slider-track > .tvps-card {
	flex: 0 0 calc((100% - (var(--tvps-columns-desktop) - 1) * var(--tvps-gap)) / var(--tvps-columns-desktop));
	min-width: 0;
}

.tvps-slider-arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--tvps-border);
	border-radius: 50%;
	background: var(--tvps-surface);
	color: var(--tvps-text);
	cursor: pointer;
	transform: translateY(-50%);
	box-shadow: 0 8px 20px rgb(16 24 40 / 12%);
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease;
}

.tvps-slider-arrow:hover,
.tvps-slider-arrow:focus-visible {
	border-color: var(--tvps-primary);
	color: var(--tvps-primary);
	outline: none;
}

.tvps-slider-arrow[disabled] {
	opacity: .35;
	cursor: default;
	pointer-events: none;
}

.tvps-slider-arrow[hidden] {
	display: none !important;
}

.tvps-slider-prev {
	left: 10px;
}

.tvps-slider-next {
	right: 10px;
}

.tvps-slider-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.tvps-slider-dots[hidden] {
	display: none !important;
}

.tvps-slider-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--tvps-border);
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}

.tvps-slider-dot.is-active {
	background: var(--tvps-primary);
	transform: scale(1.2);
}

.tvps-card.is-featured {
	border-color: rgb(19 88 200 / 35%);
}

.tvps-card-image {
	height: 190px;
	overflow: hidden;
	background: var(--tvps-soft);
}

.tvps-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tvps-offer-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 74px;
	max-width: calc(100% - 28px);
	padding: 8px 12px;
	border-radius: 10px;
	background: var(--tvps-offer);
	color: #fff;
	box-shadow: 0 8px 18px rgb(232 72 85 / 28%);
	line-height: 1.1;
	text-align: center;
}

.tvps-offer-badge strong {
	font-size: .82rem;
	letter-spacing: .02em;
}

.tvps-offer-badge small {
	margin-top: 3px;
	font-size: .67rem;
	opacity: .9;
}

/*
 * When the offer badge sits inside the card body (the default package card
 * placement, right below the title/subtitle), it reads as a full-width
 * banner rather than a corner overlay. The single-page hero image still
 * uses the base overlay rule above (it is not a .tvps-card-body child).
 */
.tvps-card-body > .tvps-offer-badge {
	position: static;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	width: auto;
	min-width: 0;
	max-width: none;
	margin: 16px 0 4px;
	padding: 10px 14px;
	background: rgb(232 72 85 / 10%);
	color: var(--tvps-offer);
	box-shadow: none;
	text-align: left;
}

.tvps-card-body > .tvps-offer-badge strong {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .85rem;
	letter-spacing: 0;
}

.tvps-card-body > .tvps-offer-badge small {
	margin-top: 0;
	font-size: .72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	opacity: .85;
}

.tvps-card-body {
	padding: 24px 24px 0;
	flex: 1 1 auto;
}

.tvps-card-heading {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding-right: 4px;
}

.tvps-card-icon {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: var(--tvps-soft);
	overflow: hidden;
}

.tvps-card-icon img {
	max-width: 34px;
	max-height: 34px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/*
 * Confirmed root cause of the missing mobile title: this text column is a
 * flex item of .tvps-card-heading, and flex items default to min-width:auto
 * — they refuse to shrink below their content's natural width. A subtitle
 * with one long unbroken run of characters (no spaces to wrap at) forces
 * that natural width to balloon, dragging the whole heading row wider than
 * the card and pushing the title off-screen. min-width: 0 lets the column
 * shrink to the space actually available; overflow-wrap below makes sure
 * long unbroken text wraps instead of overflowing even if it can't shrink
 * enough on its own.
 */
.tvps-card-heading-text {
	min-width: 0;
	flex: 1 1 auto;
}

.tvps-showcase .tvps-card-title {
	display: block;
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.25;
	color: var(--tvps-text);
	overflow-wrap: anywhere;
}

.tvps-card-subtitle {
	margin: 7px 0 0;
	font-size: .92rem;
	overflow-wrap: anywhere;
	line-height: 1.55;
	color: var(--tvps-muted);
}

.tvps-price-wrap {
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-wrap: wrap;
	margin: 20px 0 12px;
}

.tvps-price {
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.1;
	color: var(--tvps-primary);
}

.tvps-price .woocommerce-Price-currencySymbol {
	font-size: .72em;
}

.tvps-period {
	font-size: .86rem;
	color: var(--tvps-muted);
}

.tvps-features {
	list-style: none;
	padding: 0;
	margin: 18px 0 0;
}

.tvps-feature {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 13px 0;
	border-bottom: 1px solid var(--tvps-border);
	color: var(--tvps-text);
}

.tvps-feature:last-child {
	border-bottom: 0;
}

.tvps-feature.is-emphasized {
	font-weight: 700;
}

.tvps-feature-icon,
.tvps-feature-check {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 11px;
	background: rgb(19 88 200 / 9%);
	color: var(--tvps-primary);
}

.tvps-feature-icon img {
	max-width: 22px;
	max-height: 22px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.tvps-feature-check {
	font-size: .95rem;
	font-weight: 800;
}

.tvps-feature-text {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	min-width: 0;
}

.tvps-feature-label {
	color: var(--tvps-muted);
}

.tvps-feature-value {
	color: inherit;
	text-align: right;
}

.tvps-card-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	padding: 20px 24px 24px;
}

.tvps-card-actions > :only-child {
	grid-column: 1 / -1;
}

.tvps-button {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid transparent;
	border-radius: 10px;
	font: inherit;
	font-size: .94rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.tvps-button:hover {
	transform: translateY(-1px);
}

.tvps-button:focus-visible {
	outline: 3px solid rgb(19 88 200 / 22%);
	outline-offset: 2px;
}

.tvps-button--primary {
	background: var(--tvps-primary);
	border-color: var(--tvps-primary);
	color: #fff;
}

.tvps-button--primary:hover,
.tvps-button--primary:focus-visible {
	background: var(--tvps-primary-dark);
	border-color: var(--tvps-primary-dark);
	color: #fff;
}

.tvps-buy-button::after {
	content: '';
	display: inline-block;
	width: 15px;
	height: 15px;
	margin-left: 8px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M9 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M9 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
}

.tvps-button--secondary {
	background: transparent;
	border-color: var(--tvps-primary);
	color: var(--tvps-primary);
}

.tvps-button--secondary:hover,
.tvps-button--secondary:focus-visible {
	background: rgb(19 88 200 / 7%);
	color: var(--tvps-primary-dark);
}

.tvps-no-results,
.tvps-empty {
	margin: 28px 0 0;
	padding: 22px;
	border: 1px dashed var(--tvps-border);
	border-radius: 12px;
	background: var(--tvps-soft);
	color: var(--tvps-muted);
	text-align: center;
}

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

.tvps-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 20px;
}

.tvps-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgb(7 13 26 / 72%);
	backdrop-filter: blur(4px);
}

.tvps-modal-dialog {
	position: relative;
	z-index: 1;
	width: min(680px, 100%);
	max-height: min(760px, calc(100vh - 40px));
	overflow: auto;
	padding: 32px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 30px 90px rgb(0 0 0 / 30%);
	outline: none;
}

.tvps-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--tvps-soft);
	color: var(--tvps-text);
	font-size: 1.65rem;
	line-height: 1;
	cursor: pointer;
}

.tvps-modal-close:hover,
.tvps-modal-close:focus-visible {
	background: #e9edf4;
	outline: none;
}

.tvps-modal-header {
	padding-right: 34px;
	text-align: center;
}

.tvps-modal-package {
	margin: 0 0 6px;
	color: var(--tvps-primary);
	font-size: .8rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.tvps-modal-header h3 {
	margin: 0;
	font-size: clamp(1.45rem, 4vw, 2rem);
	line-height: 1.2;
	color: var(--tvps-text);
}

.tvps-modal-description {
	margin: 10px auto 0;
	max-width: 500px;
	color: var(--tvps-muted);
}

.tvps-modal-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 26px;
}

.tvps-modal-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	min-height: 210px;
	padding: 22px;
	border: 1px solid var(--tvps-border);
	border-radius: 16px;
	background: #fff;
	color: var(--tvps-text);
	text-align: center;
	text-decoration: none !important;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tvps-modal-option:hover,
.tvps-modal-option:focus-visible {
	transform: translateY(-3px);
	border-color: var(--tvps-primary);
	box-shadow: 0 0 0 2px var(--tvps-primary), 0 15px 35px rgb(16 24 40 / 10%);
	outline: none;
	color: var(--tvps-text);
}

.tvps-modal-option-image {
	width: 82px;
	height: 82px;
	display: grid;
	place-items: center;
	margin-bottom: 15px;
	border-radius: 16px;
	background: var(--tvps-soft);
	overflow: hidden;
}

.tvps-modal-option-image img {
	max-width: 68px;
	max-height: 68px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.tvps-modal-option-icon {
	font-size: 2rem;
	font-weight: 800;
	color: var(--tvps-primary);
}

.tvps-modal-option-title {
	font-size: 1.16rem;
	font-weight: 800;
}

.tvps-modal-option-description {
	margin-top: 7px;
	color: var(--tvps-muted);
	font-size: .88rem;
	line-height: 1.45;
}

.tvps-modal-option-price {
	margin-top: auto;
	padding-top: 14px;
	color: var(--tvps-primary);
	font-weight: 800;
}

body.tvps-modal-open {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.tvps-grid {
		grid-template-columns: repeat(var(--tvps-columns-tablet), minmax(0, 1fr));
	}

	.tvps-slider-track > .tvps-card {
		flex-basis: calc((100% - (var(--tvps-columns-tablet) - 1) * var(--tvps-gap)) / var(--tvps-columns-tablet));
	}

	.tvps-toolbar {
		align-items: stretch;
	}

	.tvps-tools {
		width: 100%;
		margin-left: 0;
	}
}

@media (max-width: 767px) {
	.tvps-grid {
		grid-template-columns: repeat(var(--tvps-columns-mobile), minmax(0, 1fr));
		gap: 16px;
		--tvps-gap: 16px;
	}

	.tvps-slider-track > .tvps-card {
		flex-basis: calc((100% - (var(--tvps-columns-mobile) - 1) * var(--tvps-gap)) / var(--tvps-columns-mobile));
	}

	.tvps-slider-arrow {
		width: 36px;
		height: 36px;
	}

	.tvps-heading-wrap {
		margin-bottom: 22px;
	}

	.tvps-tabs {
		width: 100%;
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: thin;
	}

	.tvps-tab {
		flex: 0 0 auto;
	}

	.tvps-tools {
		display: grid;
		grid-template-columns: 1fr;
	}

	.tvps-search {
		min-width: 0;
		width: 100%;
	}

	.tvps-sort {
		width: 100%;
	}

	.tvps-card-actions {
		grid-template-columns: 1fr;
	}

	.tvps-feature-icon,
	.tvps-feature-check {
		flex: 0 0 34px;
		width: 34px;
		height: 34px;
	}

	.tvps-card-body > .tvps-offer-badge {
		flex-wrap: wrap;
		row-gap: 4px;
	}

	.tvps-modal {
		padding: 12px;
		align-items: end;
	}

	.tvps-modal-dialog {
		width: 100%;
		max-height: calc(100vh - 24px);
		padding: 27px 18px 20px;
		border-radius: 18px 18px 8px 8px;
	}

	.tvps-modal-options {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.tvps-modal-option {
		min-height: 0;
		display: grid;
		grid-template-columns: 66px 1fr;
		grid-template-areas:
			"image title"
			"image description"
			"image price";
		column-gap: 14px;
		align-items: center;
		padding: 16px;
		text-align: left;
	}

	.tvps-modal-option-image {
		grid-area: image;
		width: 66px;
		height: 66px;
		margin: 0;
	}

	.tvps-modal-option-title {
		grid-area: title;
		align-self: end;
	}

	.tvps-modal-option-description {
		grid-area: description;
		margin-top: 3px;
	}

	.tvps-modal-option-price {
		grid-area: price;
		margin-top: 4px;
		padding-top: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tvps-card,
	.tvps-button,
	.tvps-tab,
	.tvps-modal-option,
	.tvps-slider-track {
		transition: none !important;
	}
}
