/* FireDrum Pricing Table – front end. Colours come from CSS variables set in the plugin's Style tab. */

.fdpt {
	--fdpt-border: rgba(16, 55, 120, .12);
	--fdpt-shadow: 0 6px 24px rgba(0, 40, 64, .07);
	--fdpt-shadow-lg: 0 18px 48px rgba(0, 40, 64, .18);
	--fdpt-sticky-top: 0px;
	max-width: 1240px;
	margin: 0 auto;
	color: var(--fdpt-body);
	font-size: 16px;
	line-height: 1.5;
}
.fdpt *, .fdpt *::before, .fdpt *::after { box-sizing: border-box; }
.fdpt .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.fdpt [hidden] { display: none !important; }
.fdpt a { color: inherit; }

/* ---------- promo banner ---------- */
.fdpt-promo {
	margin: 0 0 24px;
	padding: 18px 24px;
	border-radius: var(--fdpt-radius);
	background: var(--fdpt-featured-bg);
	color: var(--fdpt-featured-text);
	text-align: center;
}
.fdpt-promo__headline { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.fdpt-promo__sub { margin: 4px 0 0; opacity: .85; }
.fdpt-promo__headline:empty, .fdpt-promo__sub:empty { display: none; }

/* ---------- controls ---------- */
.fdpt-controls {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas: "cycle options" "contacts contacts";
	gap: 22px 32px;
	align-items: center;
	margin: 0 0 40px;
	padding: 26px 30px 30px;
	background: #fff;
	border: 1px solid var(--fdpt-border);
	border-radius: var(--fdpt-radius);
	box-shadow: var(--fdpt-shadow);
}
.fdpt-control--cycle { grid-area: cycle; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fdpt-control--options { grid-area: options; display: flex; justify-content: flex-end; gap: 12px 28px; flex-wrap: wrap; }
.fdpt-control--contacts { grid-area: contacts; }
.fdpt-label { font-weight: 600; color: var(--fdpt-heading); }

.fdpt-segmented {
	display: inline-flex;
	padding: 4px;
	gap: 4px;
	background: var(--fdpt-group-bg);
	border-radius: 999px;
}
.fdpt-segmented button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 9px 18px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--fdpt-heading);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background .2s, color .2s, box-shadow .2s;
}
.fdpt-segmented button[aria-checked="true"] { background: #fff; box-shadow: 0 2px 8px rgba(0, 40, 64, .14); }
.fdpt-segmented button:focus-visible { outline: 3px solid var(--fdpt-accent); outline-offset: 2px; }
.fdpt-pill {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--fdpt-accent);
	color: var(--fdpt-accent-text);
	font-size: 12px;
	font-style: normal;
	font-weight: 700;
	white-space: nowrap;
}

.fdpt-contacts-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.fdpt-contacts-value { font-size: 1.6rem; font-weight: 800; color: var(--fdpt-accent); line-height: 1; }

.fdpt-range {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	height: 28px;
	margin: 0;
	background: transparent;
	cursor: pointer;
}
.fdpt-range::-webkit-slider-runnable-track {
	height: 8px;
	border-radius: 8px;
	background: linear-gradient(to right, var(--fdpt-accent) var(--fdpt-fill, 0%), var(--fdpt-group-bg) var(--fdpt-fill, 0%));
}
.fdpt-range::-moz-range-track { height: 8px; border-radius: 8px; background: var(--fdpt-group-bg); }
.fdpt-range::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--fdpt-accent); }
.fdpt-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 28px;
	height: 28px;
	margin-top: -10px;
	border: 4px solid var(--fdpt-accent);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 40, 64, .25);
}
.fdpt-range::-moz-range-thumb { width: 20px; height: 20px; border: 4px solid var(--fdpt-accent); border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 40, 64, .25); }
.fdpt-range:focus-visible { outline: none; }
.fdpt-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(245, 130, 32, .3); }
.fdpt-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px rgba(245, 130, 32, .3); }

.fdpt-ticks { position: relative; height: 22px; margin: 6px 14px 0; }
.fdpt-ticks span {
	position: absolute;
	transform: translateX(-50%);
	font-size: 13px;
	color: var(--fdpt-body);
	opacity: .75;
	cursor: pointer;
	white-space: nowrap;
	transition: color .15s, opacity .15s;
}
.fdpt-ticks span.is-active { color: var(--fdpt-accent); opacity: 1; font-weight: 700; }

.fdpt-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; color: var(--fdpt-heading); }
.fdpt-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fdpt-switch__track {
	position: relative;
	flex: 0 0 auto;
	width: 46px;
	height: 26px;
	border-radius: 26px;
	background: #c9d2de;
	transition: background .2s;
}
.fdpt-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
	transition: transform .2s;
}
.fdpt-switch input:checked + .fdpt-switch__track { background: var(--fdpt-accent); }
.fdpt-switch input:checked + .fdpt-switch__track::after { transform: translateX(20px); }
.fdpt-switch input:focus-visible + .fdpt-switch__track { outline: 3px solid var(--fdpt-accent); outline-offset: 2px; }
.fdpt-switch__text a { color: var(--fdpt-heading); text-decoration: underline; text-decoration-color: rgba(16, 55, 120, .3); text-underline-offset: 3px; }
.fdpt-switch small { font-weight: 500; opacity: .7; }

/* ---------- plan cards ---------- */
.fdpt-plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 28px;
	align-items: stretch;
}
.fdpt-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 34px 30px 30px;
	background: #fff;
	border: 1px solid var(--fdpt-border);
	border-radius: var(--fdpt-radius);
	box-shadow: var(--fdpt-shadow);
}
.fdpt-plan.is-featured {
	background: var(--fdpt-featured-bg);
	border-color: transparent;
	color: var(--fdpt-featured-text);
	box-shadow: var(--fdpt-shadow-lg);
}
@media (min-width: 900px) {
	.fdpt-plan.is-featured { transform: translateY(-12px); }
}
.fdpt-plan__badge {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
	padding: 6px 16px;
	border-radius: 999px;
	background: var(--fdpt-accent);
	color: var(--fdpt-accent-text);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
}
.fdpt .fdpt-plan__title { margin: 0 0 6px; font-size: 1.45rem; line-height: 1.25; color: var(--fdpt-heading); text-transform: none; }
.fdpt-plan.is-featured .fdpt-plan__title { color: var(--fdpt-featured-text); }
.fdpt-plan__tagline { margin: 0 0 18px; font-size: 15px; opacity: .85; min-height: 2.9em; }

.fdpt-plan__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-height: 64px; }
.fdpt-price { display: inline-flex; align-items: flex-start; font-weight: 800; color: var(--fdpt-heading); line-height: 1; }
.fdpt-plan.is-featured .fdpt-price { color: var(--fdpt-featured-text); }
.fdpt-price__main { font-size: 3.25rem; letter-spacing: -.02em; }
.fdpt-price__cents { font-size: 1.4rem; margin-top: .3em; }
.fdpt-price--text { font-size: 2.6rem; letter-spacing: -.01em; padding-top: .15em; }
.fdpt-price__suffix { font-size: 15px; opacity: .8; }

.fdpt-plan__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 28px; margin: 8px 0 20px; font-size: 14px; }
.fdpt-save { padding: 3px 10px; border-radius: 999px; background: rgba(79, 154, 18, .14); color: var(--fdpt-check); font-weight: 700; }
.fdpt-plan.is-featured .fdpt-save { background: var(--fdpt-accent); color: var(--fdpt-accent-text); }
.fdpt-billing { opacity: .75; }

.fdpt-cta {
	display: block;
	margin: 0 0 24px;
	padding: 14px 18px;
	border: 2px solid var(--fdpt-heading);
	border-radius: 10px;
	color: var(--fdpt-heading) !important;
	font-weight: 700;
	text-align: center;
	text-decoration: none !important;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.fdpt-cta:hover, .fdpt-cta:focus-visible { background: var(--fdpt-heading); color: #fff !important; }
.fdpt-plan.is-featured .fdpt-cta { background: var(--fdpt-accent); border-color: var(--fdpt-accent); color: var(--fdpt-accent-text) !important; }
.fdpt-plan.is-featured .fdpt-cta:hover, .fdpt-plan.is-featured .fdpt-cta:focus-visible { filter: brightness(1.07); transform: translateY(-1px); }

.fdpt-features { margin: 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--fdpt-border); }
.fdpt-plan.is-featured .fdpt-features { border-top-color: rgba(255, 255, 255, .16); }
.fdpt-feature { position: relative; display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 6px 0; font-size: 15px; line-height: 1.45; }
.fdpt-feature__icon { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--fdpt-check); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fdpt-plan.is-featured .fdpt-feature__icon { stroke: var(--fdpt-accent); }
.fdpt-feature.is-bold { font-weight: 700; }
.fdpt-feature.is-highlight .fdpt-feature__text { color: var(--fdpt-highlight); }
.fdpt-plan.is-featured .fdpt-feature.is-highlight .fdpt-feature__text { color: var(--fdpt-accent); }
.fdpt-feature.is-accent .fdpt-feature__text { color: var(--fdpt-accent); }
.fdpt-feature.is-custom .fdpt-feature__text { color: var(--fdpt-fcolor); }
.fdpt-feature__text a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.fdpt-more-wrap { margin-top: 26px; text-align: center; }
.fdpt-more {
	margin: 0;
	padding: 10px 22px;
	border: 1px solid var(--fdpt-border);
	border-radius: 999px;
	background: #fff;
	color: var(--fdpt-heading);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.fdpt-more::after { content: " +"; }
.fdpt-more[aria-expanded="true"]::after { content: " –"; }
.fdpt-more:hover, .fdpt-more:focus-visible { border-color: var(--fdpt-accent); color: var(--fdpt-accent); }

/* ---------- tooltips ---------- */
.fdpt-tip { position: relative; display: inline-flex; margin-left: 6px; vertical-align: middle; }
.fdpt-tip__btn {
	display: inline-flex;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	color: inherit;
	opacity: .55;
	cursor: help;
	line-height: 1;
}
.fdpt-tip__btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.fdpt-tip__btn:hover, .fdpt-tip__btn:focus-visible { opacity: 1; }
.fdpt-tip__bubble {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	z-index: 20;
	width: 260px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #13233a;
	color: #fff;
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 4px);
	transition: opacity .15s, transform .15s, visibility .15s;
	pointer-events: none;
}
.fdpt-tip__bubble::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: #13233a; }
.fdpt-tip:hover .fdpt-tip__bubble, .fdpt-tip__btn:focus-visible + .fdpt-tip__bubble, .fdpt-tip.is-open .fdpt-tip__bubble { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- comparison table ---------- */
.fdpt-compare { margin-top: 72px; }
.fdpt .fdpt-compare__title { margin: 0 0 8px; text-align: center; color: var(--fdpt-heading); text-transform: none; }
.fdpt-compare__intro { margin: 0 auto 24px; max-width: 640px; text-align: center; }
.fdpt-compare__scroll { margin-top: 24px; }
.fdpt-table {
	width: 100%;
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	border: 1px solid var(--fdpt-border);
	border-radius: var(--fdpt-radius);
	font-size: 15px;
}
.fdpt-table th, .fdpt-table td { padding: 13px 16px; border: 0; border-bottom: 1px solid var(--fdpt-border); text-align: center; vertical-align: middle; text-transform: none; }
.fdpt-table thead th {
	position: sticky;
	top: var(--fdpt-sticky-top);
	z-index: 3;
	background: #fff;
	color: var(--fdpt-heading);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	border-bottom: 2px solid var(--fdpt-border);
}
.fdpt-table thead th:first-child { border-top-left-radius: var(--fdpt-radius); }
.fdpt-table thead th:last-child { border-top-right-radius: var(--fdpt-radius); }
.fdpt-table thead th.is-featured { background: var(--fdpt-featured-bg); color: var(--fdpt-featured-text); }
.fdpt-table tbody th[scope="row"] { text-align: left; font-weight: 500; color: var(--fdpt-body); width: 38%; }
.fdpt-table__group th {
	padding: 11px 16px;
	background: var(--fdpt-group-bg);
	color: var(--fdpt-heading);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .06em;
	text-align: left !important;
	text-transform: uppercase;
}
.fdpt-table td.is-featured { background: rgba(245, 130, 32, .05); }
.fdpt-table tbody:last-child tr:last-child > * { border-bottom: 0; }
.fdpt-table tbody tr:not(.fdpt-table__group):hover > * { background-color: rgba(16, 55, 120, .03); }
.fdpt-yes svg, .fdpt-no svg { width: 22px; height: 22px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.fdpt-yes svg { stroke: var(--fdpt-check); }
.fdpt-no svg { width: 18px; height: 18px; stroke: var(--fdpt-cross); }
.fdpt-na { color: var(--fdpt-cross); }
.fdpt-text { font-weight: 700; color: var(--fdpt-heading); }
.fdpt-compare__footnote { margin: 14px 0 0; font-size: 14px; opacity: .8; }

/* ---------- responsive ---------- */
@media (max-width: 899px) {
	.fdpt-controls { grid-template-columns: 1fr; grid-template-areas: "cycle" "contacts" "options"; padding: 22px 20px 24px; }
	.fdpt-control--options { justify-content: flex-start; }
	.fdpt-plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 34px; }
	.fdpt-plan__tagline { min-height: 0; }
}
@media (max-width: 599px) {
	.fdpt-control--cycle { flex-direction: column; align-items: stretch; }
	.fdpt-segmented { display: flex; }
	.fdpt-segmented button { flex: 1; flex-direction: column; gap: 3px; padding: 8px 6px; font-size: 14px; }
	.fdpt-ticks span:nth-child(even) { display: none; }
	.fdpt-ticks span.is-active { display: block; }
	.fdpt-plan { padding: 30px 22px 24px; }
	.fdpt-price__main { font-size: 2.8rem; }
	.fdpt-tip__bubble { width: 220px; }

	/* Comparison: scroll sideways with the feature column pinned. */
	.fdpt-compare__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--fdpt-radius); }
	.fdpt-table { min-width: 560px; font-size: 14px; }
	.fdpt-table th, .fdpt-table td { padding: 11px 10px; }
	.fdpt-table thead th { position: static; font-size: 13px; }
	.fdpt-table tbody th[scope="row"], .fdpt-table thead th:first-child { position: sticky; left: 0; z-index: 2; background: #fff; width: 170px; min-width: 170px; box-shadow: 1px 0 0 var(--fdpt-border); }
	.fdpt-table__group th { position: sticky; left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.fdpt *, .fdpt *::before, .fdpt *::after { transition: none !important; }
	.fdpt-plan.is-featured { transform: none; }
}
