/*
 * Pricing table block.
 *
 * Same look as the plan cards of the new Pricing page (October 2026): white cards with
 * a light outline, the featured card in the Most popular colour, checks with the green
 * duotone icon, content at the top and the button at the very bottom.
 *
 * Rules use :is(.uap-pt, #_) so they outweigh page-wide rules such as
 * :is(.uah-s, #_) p { margin: 0 } on the pages built with Spectra.
 */

.uap-pt {
	--uap-pt-ink: #0d0f12;
	--uap-pt-text: #2b2e33;
	--uap-pt-muted: #676b6f;
	--uap-pt-subtle: #9a9ea3;
	--uap-pt-primary: #0790e8;
	--uap-pt-border: #e4e4e4;
}

.uap-pt[data-period="monthly"] [data-show="annual"],
.uap-pt[data-period="annual"] [data-show="monthly"] {
	display: none !important;
}

/* Monthly / Annual switch */
:is(.uap-pt, #_) .uap-pt__switch {
	display: flex;
	justify-content: center;
	width: max-content;
	max-width: 100%;
	margin: 0 auto 28px;
	padding: 4px;
	background: #ffffff;
	border-radius: 999px;
	box-shadow: 0 0 0 1px var(--uap-pt-border);
}

:is(.uap-pt, #_) .uap-pt__opt,
:is(.uap-pt, #_) .uap-pt__opt:hover,
:is(.uap-pt, #_) .uap-pt__opt:focus {
	margin: 0;
	padding: 6px 20px;
	border: 0;
	border-radius: 999px;
	background: none;
	box-shadow: none;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--uap-pt-text);
	cursor: pointer;
}

:is(.uap-pt, #_) .uap-pt__opt.is-on {
	background: var(--uap-pt-primary);
	color: #ffffff;
}

:is(.uap-pt, #_) .uap-pt__opt:focus-visible {
	outline: 2px solid var(--uap-pt-primary);
	outline-offset: 2px;
}

/* Cards */
:is(.uap-pt, #_) .uap-pt__grid {
	display: grid;
	grid-template-columns: repeat(var(--uap-pt-cols, 4), minmax(0, 1fr));
	gap: 20px;
}

:is(.uap-pt, #_) .uap-pt__card {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-width: 0;
	padding: 28px;
	background: #ffffff;
	border-radius: 16px;
	outline: 1px solid rgba(0, 0, 0, 0.07);
	outline-offset: 0;
}

:is(.uap-pt, #_) .uap-pt__card.is-featured {
	outline: 2px solid var(--uap-pt-feature, var(--uap-pt-primary));
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

:is(.uap-pt, #_) .uap-pt__name {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.65;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--uap-pt-muted);
}

:is(.uap-pt, #_) .uap-pt__badge {
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.65;
	letter-spacing: 0.02em;
	text-transform: none;
	color: #ffffff;
}

:is(.uap-pt, #_) .uap-pt__price {
	margin: 14px 0 0;
	font-size: 44px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--uap-pt-ink);
}

:is(.uap-pt, #_) .uap-pt__price small {
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--uap-pt-muted);
}

:is(.uap-pt, #_) .uap-pt__per {
	min-height: 22px;
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.65;
	color: var(--uap-pt-muted);
}

:is(.uap-pt, #_) .uap-pt__per s {
	color: var(--uap-pt-subtle);
}

/* The savings wrap as one piece, never leaving a single word on the second line. */
:is(.uap-pt, #_) .uap-pt__save {
	display: inline-block;
}

:is(.uap-pt, #_) .uap-pt__checks {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

:is(.uap-pt, #_) .uap-pt__checks li {
	position: relative;
	margin: 0;
	padding: 0 0 0 26px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--uap-pt-text);
}

:is(.uap-pt, #_) .uap-pt__checks li::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 0;
	width: 16px;
	height: 16px;
	background: url("https://automatorplugin.com/wp-content/uploads/2026/10/circle-check-duotone-green.svg") no-repeat center / 16px 16px;
}

:is(.uap-pt, #_) .uap-pt__incl {
	margin: 16px 0 0;
	font-size: 14px;
}

:is(.uap-pt, #_) .uap-pt__incl summary {
	font-weight: 600;
	color: var(--uap-pt-primary);
	list-style: none;
	cursor: pointer;
}

:is(.uap-pt, #_) .uap-pt__incl summary::-webkit-details-marker {
	display: none;
}

:is(.uap-pt, #_) .uap-pt__incl summary::after {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-left: 6px;
	vertical-align: -2px;
	background: url("https://automatorplugin.com/wp-content/uploads/2026/10/angle-duotone-blue.svg") no-repeat center / 14px 14px;
	transition: transform 0.15s;
}

:is(.uap-pt, #_) .uap-pt__incl[open] summary::after {
	transform: rotate(180deg);
}

:is(.uap-pt, #_) .uap-pt__incl p {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--uap-pt-muted);
}

/* The button sits at the very bottom; any white space goes between the content and it. */
:is(.uap-pt, #_) .uap-pt__cta {
	margin-top: auto;
	padding-top: 28px;
}

:is(.uap-pt, #_) .uap-pt__btn,
:is(.uap-pt, #_) .uap-pt__btn:hover,
:is(.uap-pt, #_) .uap-pt__btn:focus {
	display: block;
	padding: 6px 20px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.65;
	text-align: center;
	text-decoration: none;
}

:is(.uap-pt, #_) .uap-pt__btn:hover {
	opacity: 0.88;
}

:is(.uap-pt, #_) .uap-pt__details {
	margin: 35px 0 0;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
}

:is(.uap-pt, #_) .uap-pt__details a {
	color: var(--uap-pt-primary);
	text-decoration: none;
}

:is(.uap-pt, #_) .uap-pt__foot {
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 1.55;
	text-align: center;
	color: var(--uap-pt-muted);
}

/* In narrow columns the Monthly line takes two lines, so every card keeps room for both and the checks start together. */
@media (min-width: 1025px) {
	:is(.uap-pt, #_)[data-period="monthly"] .uap-pt__per {
		min-height: 46px;
	}
}

@media (max-width: 1024px) {
	:is(.uap-pt, #_) .uap-pt__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	:is(.uap-pt, #_) .uap-pt__grid--1 {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	:is(.uap-pt, #_) .uap-pt__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	:is(.uap-pt, #_) .uap-pt__incl summary::after {
		transition: none;
	}
}
