/* WeTraks Pricing Table widget */

.wpt-pricing-table {
	width: 100%;
}

/* ---- Toggle ---- */

.wpt-toggle-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 40px;
}

.wpt-toggle {
	position: relative;
	display: inline-flex;
	background-color: #e7e8ea;
	border-radius: 999px;
	padding: 4px;
}

.wpt-toggle__pill {
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 4px;
	width: calc(50% - 4px);
	background-color: #ffffff;
	border-radius: 999px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
	transition: transform 0.25s ease;
}

.wpt-toggle__pill[data-active="yearly"] {
	transform: translateX(100%);
}

/*
 * Specificity note: this is a real <button> element, and Elementor's
 * site-wide "Default Colors/Fonts" kit style targets bare `button` tags
 * (e.g. `.elementor-kit-X button { background-color: ...; color: ...;
 * border-radius: ...; }`) so every native button on the site inherits the
 * kit's look unless overridden. That kit selector is one class + one type
 * (specificity 0,0,1,1), which beats a plain `.wpt-toggle__btn` (0,0,1,0)
 * on tie-break. Nesting under `.wpt-toggle` here (two real classes,
 * 0,0,2,0) keeps this always ahead of it regardless of stylesheet order.
 */
.wpt-toggle .wpt-toggle__btn {
	position: relative;
	z-index: 1;
	flex: 1 1 0;
	border: 0;
	background: transparent;
	border-radius: 999px;
	box-shadow: none;
	cursor: pointer;
	padding: 10px 28px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	color: #6b7280;
	transition: color 0.25s ease, background-color 0.25s ease;
}

.wpt-toggle .wpt-toggle__btn.wpt-is-active {
	color: #111111;
}

/* ---- Header ---- */

.wpt-header {
	text-align: center;
	margin-bottom: 40px;
}

.wpt-header__heading {
	margin: 0 0 12px;
	font-size: 40px;
	font-weight: 800;
	line-height: 1.2;
	color: #111111;
}

.wpt-header__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: #4b5563;
}

/* ---- Cards ---- */

.wpt-cards {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 24px;
}

.wpt-card {
	position: relative;
	flex: 1 1 260px;
	display: flex;
	flex-direction: column;
	background-color: #f2f3f5;
	color: #111111;
	border-radius: 16px;
	padding: 32px;
	transition: transform 0.2s ease;
}

.wpt-card.wpt-is-featured {
	z-index: 2;
}

.wpt-card__icon {
	position: absolute;
	top: 32px;
	right: 32px;
	line-height: 1;
	opacity: 0.85;
}

.wpt-card__icon svg,
.wpt-card__icon i {
	width: 1.4em;
	height: 1.4em;
	font-size: 22px;
	fill: currentColor;
}

/* Recolor uploaded/inline SVG icons: many exported SVGs (Illustrator,
   Figma, etc.) bake their color into a `class="cls-1"` + an embedded
   <defs><style>.cls-1{fill:#fff}</style></defs> block rather than a plain
   fill="" attribute, and that embedded stylesheet cascades in *after* this
   one, so it wins on equal specificity. `!important` is required to make
   the Icon Color control override it. Elements explicitly painted
   fill="none"/stroke="none" (outline or negative-space shapes) are left
   alone so the icon's shape isn't distorted. */
.wpt-card__icon svg *:not([fill="none"]) {
	fill: currentColor !important;
}

.wpt-card__icon svg [stroke]:not([stroke="none"]) {
	stroke: currentColor !important;
}

.wpt-card__title {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	padding-right: 40px;
}

.wpt-card__billed {
	margin: 0 0 20px;
	font-size: 14px;
	opacity: 0.75;
}

.wpt-card__price {
	margin-bottom: 24px;
}

.wpt-price-currency,
.wpt-price-amount {
	font-size: 38px;
	font-weight: 800;
	line-height: 1;
}

.wpt-price-suffix {
	font-size: 14px;
	font-weight: 400;
	opacity: 0.75;
}

.wpt-card__benefits {
	flex: 1 1 auto;
	margin-bottom: 28px;
}

.wpt-card__benefits-heading {
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 12px;
}

.wpt-card__benefits ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpt-card__benefits li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 12px;
}

.wpt-card__benefits li:last-child {
	margin-bottom: 0;
}

.wpt-check {
	flex: 0 0 auto;
	margin-top: 3px;
	color: currentColor;
}

.wpt-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	background-color: #e14b4b;
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 999px;
	padding: 14px 24px;
	transition: opacity 0.2s ease;
}

.wpt-card__button:hover,
.wpt-card__button:focus {
	opacity: 0.9;
	color: inherit;
}

.wpt-card.wpt-is-featured {
	background-color: #e14b4b;
	color: #ffffff;
}

.wpt-card.wpt-is-featured .wpt-card__button {
	background-color: #ffffff;
	color: #e14b4b;
}

/* ---- Period visibility ---- */

.wpt-pricing-table[data-period="monthly"] .wpt-period-yearly {
	display: none;
}

.wpt-pricing-table[data-period="yearly"] .wpt-period-monthly {
	display: none;
}

@media (max-width: 767px) {
	.wpt-cards {
		flex-direction: column;
	}

	.wpt-card {
		flex-basis: auto;
	}
}
