/**
 * Subscription plans — toggle and cards. Figma 10647:679.
 *
 * Every rule starts from .rwaq-plans (0-2-0 and up), which outranks the
 * element-qualified rules themes and Elementor kits ship for buttons, links and
 * headings (`.elementor-kit-N button`, `.site-main a`: 0-1-1) without needing
 * !important.
 */

.rwaq-plans {
	--rwaq-plans-text: #242424;
	--rwaq-plans-body: #424242;
	--rwaq-plans-muted: #616161;
	--rwaq-plans-border: #d1d1d1;
	--rwaq-plans-divider: #e0e0e0;
	--rwaq-plans-brand: #6c98c9;
	--rwaq-plans-brand-hover: #5a86b8;
	--rwaq-plans-tint: #f6fbff;

	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	box-sizing: border-box;
	max-width: 1232px;
	margin: 0 auto;
	/* The design's section spacing: 64px above the heading, so the block
	   stands clear of the site header, and 64px below the cards. */
	padding: 64px 16px;
	font-family: 'IBM Plex Sans Arabic', sans-serif;
	color: var(--rwaq-plans-text);
}

/* ---- Heading ----
   560px column, 40/56 title over an 18/28 subtitle, 12px apart. The block's
   32px gap plus this margin puts the toggle the design's 40px below it. */
.rwaq-plans .rwaq-plans__header {
	box-sizing: border-box;
	width: 100%;
	max-width: 560px;
	margin: 0 0 8px;
	text-align: center;
}

.rwaq-plans .rwaq-plans__title {
	margin: 0 0 12px;
	padding: 0;
	font-family: inherit;
	font-size: 40px;
	font-weight: 600;
	line-height: 56px;
	color: var(--rwaq-plans-text);
}

.rwaq-plans .rwaq-plans__subtitle {
	margin: 0;
	font-size: 18px;
	line-height: 28px;
	color: var(--rwaq-plans-body);
}

.rwaq-plans .rwaq-plans__header :last-child {
	margin-bottom: 0;
}

/* ---- Toggle ---- */
.rwaq-plans .rwaq-plans__toggle {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px;
	border: 1px solid var(--rwaq-plans-border);
	border-radius: 999px;
	background: #fff;
}

.rwaq-plans .rwaq-plans__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 56px;
	height: 32px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: #f5f5f5;
	color: var(--rwaq-plans-body);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.rwaq-plans .rwaq-plans__tab:hover {
	background: #ebebeb;
	color: var(--rwaq-plans-text);
}

.rwaq-plans .rwaq-plans__tab[aria-selected='true'] {
	background: var(--rwaq-plans-brand);
	color: #fff;
	font-weight: 600;
}

.rwaq-plans .rwaq-plans__tab:focus-visible {
	outline: 2px solid var(--rwaq-plans-brand);
	outline-offset: 2px;
}

/* ---- Cards ---- */
.rwaq-plans .rwaq-plans__group {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 24px;
	width: 100%;
}

.rwaq-plans .rwaq-plans__group[hidden] {
	display: none;
}

.rwaq-plans .rwaq-plan {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	flex: 0 1 440px;
	min-width: 0;
	padding: 32px;
	border: 1px solid var(--rwaq-plans-border);
	border-radius: 10px;
	background: #fff;
	text-align: start;
}

.rwaq-plans .rwaq-plan__name {
	margin: 0 0 12px;
	padding: 0;
	font-family: inherit;
	font-size: 24px;
	font-weight: 600;
	line-height: 32px;
	color: var(--rwaq-plans-text);
}

.rwaq-plans .rwaq-plan__desc {
	margin: 0 0 32px;
	font-size: 16px;
	line-height: 28px;
	color: var(--rwaq-plans-body);
}

.rwaq-plans .rwaq-plan__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 24px;
	color: var(--rwaq-plans-text);
}

.rwaq-plans .rwaq-plan__amount {
	font-size: 64px;
	font-weight: 600;
	line-height: 1;
}

.rwaq-plans .rwaq-plan__currency {
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
}

.rwaq-plans .rwaq-plan__per {
	font-size: 14px;
	line-height: 20px;
	color: var(--rwaq-plans-muted);
}

.rwaq-plans .rwaq-plan__was {
	font-size: 14px;
	line-height: 20px;
	color: var(--rwaq-plans-muted);
	text-decoration: line-through;
}

/* The button sits at the same height in every card of a row, whatever the
   length of each card's description. */
.rwaq-plans .rwaq-plan__cta,
.rwaq-plans .rwaq-plan__subscribed {
	margin-top: auto;
}

.rwaq-plans .rwaq-plan__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 8px 16px;
	border: 0;
	border-radius: 8px;
	background: var(--rwaq-plans-brand);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.rwaq-plans .rwaq-plan__cta:hover,
.rwaq-plans .rwaq-plan__cta:focus {
	background: var(--rwaq-plans-brand-hover);
	color: #fff;
	text-decoration: none;
}

.rwaq-plans .rwaq-plan__cta:focus-visible {
	outline: 2px solid var(--rwaq-plans-brand);
	outline-offset: 2px;
}

/* Already subscribed: no buy button, just where they stand. */
.rwaq-plans .rwaq-plan__subscribed {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	box-sizing: border-box;
	min-height: 44px;
	padding: 10px 16px;
	border-radius: 8px;
	background: var(--rwaq-plans-tint);
	color: var(--rwaq-plans-brand);
	font-size: 14px;
	font-weight: 600;
	line-height: 22px;
}

.rwaq-plans .rwaq-plan__subscribed a {
	color: var(--rwaq-plans-brand);
	text-decoration: underline;
}

.rwaq-plans .rwaq-plan__note {
	margin: 12px 0 0;
	font-size: 12px;
	line-height: 18px;
	text-align: center;
	color: var(--rwaq-plans-muted);
}

.rwaq-plans .rwaq-plan__divider {
	height: 0;
	margin: 24px 0;
	border: 0;
	border-top: 1px solid var(--rwaq-plans-divider);
	background: none;
}

.rwaq-plans .rwaq-plan__features-title {
	margin: 0 0 16px;
	padding: 0;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: var(--rwaq-plans-text);
}

.rwaq-plans .rwaq-plan__features {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rwaq-plans .rwaq-plan__features li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	font-size: 16px;
	line-height: 24px;
	color: var(--rwaq-plans-text);
}

.rwaq-plans .rwaq-plan__check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--rwaq-plans-tint);
	color: var(--rwaq-plans-brand);
}

/* ---- Small screens ---- */
@media (max-width: 600px) {
	.rwaq-plans {
		padding-top: 40px;
	}

	.rwaq-plans .rwaq-plans__title {
		font-size: 28px;
		line-height: 40px;
	}

	.rwaq-plans .rwaq-plans__subtitle {
		font-size: 16px;
		line-height: 26px;
	}

	.rwaq-plans .rwaq-plan {
		flex-basis: 100%;
		padding: 24px 20px;
	}

	.rwaq-plans .rwaq-plan__amount {
		font-size: 52px;
	}
}
