.fwma-plans {
	margin: 2rem 0;
}

.fwma-plans__inner {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin: 0 auto;
}

.fwma-plans__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 1.25rem;
}

.fwma-plan-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid currentColor;
	border-color: rgba(127, 127, 127, 0.22);
	border-color: color-mix(in srgb, currentColor 16%, transparent);
	border-radius: var(--wp--custom--border-radius, 6px);
	background: transparent;
	overflow: hidden;
}

.fwma-plan-card__media img,
.fwma-plan-card__image {
	width: 100%;
	display: block;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.fwma-plan-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 1rem;
	padding: 1.25rem;
}

.fwma-plan-card__badge {
	align-self: flex-start;
	padding: 0.25rem 0.5rem;
	border: 1px solid currentColor;
	border-color: rgba(127, 127, 127, 0.26);
	border-color: color-mix(in srgb, currentColor 20%, transparent);
	border-radius: 999px;
	font-size: 0.8em;
	line-height: 1.4;
}

.fwma-plan-card__title {
	margin: 0;
	font-size: 1.2em;
	line-height: 1.35;
	color: inherit;
}

.fwma-plan-card__summary {
	margin: 0;
	color: inherit;
	opacity: 0.82;
	line-height: 1.6;
}

.fwma-plan-card__meta {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	padding: 1rem 0;
	border-top: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	border-color: rgba(127, 127, 127, 0.2);
	border-color: color-mix(in srgb, currentColor 14%, transparent);
}

.fwma-plan-card__meta-label {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.78em;
	opacity: 0.68;
}

.fwma-plan-card__meta strong {
	display: block;
	font-size: 0.94em;
	line-height: 1.35;
	color: inherit;
	overflow-wrap: anywhere;
}

.fwma-plan-card__features {
	margin: 0;
	padding-inline-start: 1.1rem;
	line-height: 1.7;
	color: inherit;
	opacity: 0.88;
}

.fwma-plan-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: auto;
}

.fwma-plan-card__purchase {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem;
	margin: 0;
}

.fwma-plan-card__option {
	display: grid;
	gap: 0.35rem;
	min-width: min(16rem, 100%);
	margin: 0;
}

.fwma-plan-card__option span {
	font-size: 0.82em;
	opacity: 0.72;
}

.fwma-plan-card__option select {
	width: 100%;
	min-height: 2.75rem;
	border: 1px solid currentColor;
	border-color: rgba(127, 127, 127, 0.28);
	border-color: color-mix(in srgb, currentColor 20%, transparent);
	border-radius: var(--wp--custom--button--border--radius, 4px);
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 1.3;
}

.fwma-plan-card__option-description {
	flex-basis: 100%;
	margin-top: -0.2rem;
	padding: 0.75rem 0 0;
	border-top: 1px solid currentColor;
	border-color: rgba(127, 127, 127, 0.18);
	border-color: color-mix(in srgb, currentColor 14%, transparent);
	color: inherit;
	opacity: 0.82;
	font-size: 0.92em;
	line-height: 1.55;
}

.fwma-plan-card__option-description p {
	margin: 0 0 0.55rem;
}

.fwma-plan-card__option-description p:last-child {
	margin-bottom: 0;
}

.fwma-plan-card__price {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.fwma-plan-card__price-old {
	opacity: 0.62;
	text-decoration: line-through;
	font-size: 0.9em;
}

.fwma-plan-card__price-current {
	font-size: 1.15em;
	font-weight: 700;
	color: inherit;
}

.fwma-plan-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 8rem;
	padding: 0.65rem 1rem;
	border: 1px solid currentColor;
	border-radius: var(--wp--custom--button--border--radius, 4px);
	background: var(--wp--preset--color--contrast, #111111);
	color: var(--wp--preset--color--base, #ffffff);
	text-decoration: none;
	font: inherit;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
}

.fwma-plan-card__button:hover,
.fwma-plan-card__button:focus {
	filter: brightness(0.92);
	color: var(--wp--preset--color--base, #ffffff);
}

.fwma-plan-card__button[disabled],
.fwma-plan-card__button[aria-disabled="true"] {
	cursor: not-allowed;
	opacity: 0.55;
	filter: none;
}

.fwma-plans__empty {
	padding: 1rem;
	border: 1px dashed currentColor;
	border-color: rgba(127, 127, 127, 0.3);
	border-color: color-mix(in srgb, currentColor 24%, transparent);
	border-radius: var(--wp--custom--border-radius, 6px);
	opacity: 0.78;
}

@media (max-width: 680px) {
	.fwma-plan-card__meta {
		grid-template-columns: 1fr;
	}

	.fwma-plan-card__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.fwma-plan-card__purchase {
		flex-direction: column;
		align-items: stretch;
	}

	.fwma-plan-card__button {
		width: 100%;
	}
}
