/* Campaign Manager: the ribbon, the campaign pricing bits and the giveaway
   banner. Loaded only while a campaign is active, so nothing here costs anything
   for the other fifty weeks of the year.

   The palette is campaign-local on purpose: the brand is blue, seasonal
   campaigns are not. --ml-campaign-mid defaults to --color-primary; PHP
   overrides it only when the campaign colour field is set. Pricing plan
   recolors run only then (body.has-ml-campaign-color). Everything else is
   derived here so the next campaign is a one-swatch repaint.
--------------------------------------------- */

:root {
	--ml-campaign-mid: var(--color-primary);
	--ml-campaign-dark: color-mix(in srgb, var(--ml-campaign-mid) 25%, #000000);
	--ml-campaign-bright: color-mix(in srgb, var(--ml-campaign-mid) 88%, #ffffff);
	--ml-campaign-accent: color-mix(in srgb, var(--ml-campaign-mid) 92%, #000000);
	--ml-campaign-deep: color-mix(in srgb, var(--ml-campaign-mid) 78%, #000000);
	--ml-campaign-fg: #ffffff;
	/* Text on a campaign-coloured fill, and the campaign colour used as text on
	   white. Both follow the defaults; PHP darkens them for a light campaign
	   colour (multilogin_campaign_color_is_light()). */
	--ml-campaign-ink: var(--ml-campaign-fg);
	--ml-campaign-on-light: var(--ml-campaign-mid);
	--ml-campaign-fg-muted: color-mix(in srgb, var(--ml-campaign-fg) 92%, transparent);
	--ml-campaign-fg-soft: color-mix(in srgb, var(--ml-campaign-fg) 70%, transparent);
	--ml-campaign-fg-border: color-mix(in srgb, var(--ml-campaign-fg) 60%, transparent);
	--ml-campaign-surface: #ffffff;
	--ml-ribbon-fallback: linear-gradient(90deg, var(--ml-campaign-dark) 0%, var(--ml-campaign-mid) 42%, var(--ml-campaign-bright) 100%);
}

.ml-ribbon {
	position: relative;
	z-index: 1;
	display: block;
	background-color: var(--ml-ribbon-bg, var(--ml-campaign-mid));
	background-image: var(--ml-ribbon-image, var(--ml-ribbon-fallback));
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	color: var(--ml-campaign-fg);
	text-decoration: none;
}

/* Beat theme/base `a` / `a:visited` / `a:active` (royal / midnight blue).
   !important: after a click on pricing the ribbon stays :focus/:visited and
   base.css would otherwise paint the strip purple. Do not touch background
   here — the image/gradient lives on `.ml-ribbon`. */
a.ml-ribbon,
a.ml-ribbon:link,
a.ml-ribbon:visited,
a.ml-ribbon:hover,
a.ml-ribbon:focus,
a.ml-ribbon:focus-visible,
a.ml-ribbon:active {
	color: var(--ml-campaign-fg) !important;
	text-decoration: none;
}

.ml-ribbon__text,
.ml-ribbon__countdown {
	color: var(--ml-campaign-fg);
}

a.ml-ribbon:link .ml-ribbon__text,
a.ml-ribbon:visited .ml-ribbon__text,
a.ml-ribbon:hover .ml-ribbon__text,
a.ml-ribbon:focus .ml-ribbon__text,
a.ml-ribbon:active .ml-ribbon__text,
a.ml-ribbon:link .ml-ribbon__countdown,
a.ml-ribbon:visited .ml-ribbon__countdown,
a.ml-ribbon:hover .ml-ribbon__countdown,
a.ml-ribbon:focus .ml-ribbon__countdown,
a.ml-ribbon:active .ml-ribbon__countdown {
	color: var(--ml-campaign-fg) !important;
}

a.ml-ribbon:link .ml-ribbon__pill,
a.ml-ribbon:visited .ml-ribbon__pill,
a.ml-ribbon:hover .ml-ribbon__pill,
a.ml-ribbon:focus .ml-ribbon__pill,
a.ml-ribbon:active .ml-ribbon__pill {
	color: var(--ml-campaign-on-light) !important;
	background: var(--ml-campaign-surface) !important;
}

/* Pointer cursor and a brightening on hover are the only click hints: the
   ribbon has no arrow, per the approved design. */
a.ml-ribbon:hover,
a.ml-ribbon:focus-visible {
	filter: brightness(1.08);
}

a.ml-ribbon:focus-visible {
	outline: 2px solid var(--ml-campaign-fg);
	outline-offset: -4px;
}

.ml-ribbon__inner {
	display: flex;
	flex-wrap: nowrap;
	gap: 12px;
	align-items: center;
	justify-content: center;
	width: min(100% - 32px, var(--site-width));
	min-height: 48px;
	margin: 0 auto;
}

.ml-ribbon__text {
	font-size: 16px;
	font-weight: 500;
	line-height: 20px;
	white-space: nowrap;
}

.ml-ribbon__pill {
	padding: 4px 8px;
	border-radius: 8px;
	background: var(--ml-campaign-surface);
	font-size: 16px;
	font-weight: 800;
	line-height: 20px;
	color: var(--ml-campaign-on-light);
	white-space: nowrap;
}

/* One visual line of ribbon content: text, a pill, more text. A campaign can
   swap it for a shorter `--mobile` line on phones, see the media query below. */
.ml-ribbon__line {
	display: inline-flex;
	gap: inherit;
	align-items: center;
	min-width: 0;
}

.ml-ribbon__line--mobile {
	display: none;
}

/* <strong> in the ribbon copy is the part painted in the campaign colour. */
.ml-ribbon__text strong {
	color: var(--ml-campaign-mid);
	font-weight: 700;
}

.ml-ribbon__countdown {
	padding: 4px 8px;
	border: 1px solid var(--ml-campaign-fg-border);
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	line-height: 20px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* The ribbon reserves its own height for the sticky header it lives in, and the
   mobile panel is positioned from the header's bottom edge — see
   css/header.css, which reads this variable. */
body.has-ml-ribbon {
	--ml-ribbon-h: 48px;
}

/* Coupon code in the pricing hero
--------------------------------------------- */

.ml-campaign-code {
	display: inline-flex;
	align-items: center;
	margin: 24px 0 0;
	padding: 4px;
	border: 0;
	border-radius: 999px;
	background: var(--ml-campaign-mid);
	color: var(--ml-campaign-fg);
	font: inherit;
	text-align: left;
	cursor: pointer;
	appearance: none;
	transform-origin: center center;
	/* Kill the global `body * { transition: transform }` so the pulse
	   keyframes are not fighting a 0.2s tween on the same property. */
	transition: filter 0.2s ease;
}

.ml-campaign-code:hover,
.ml-campaign-code:focus-visible {
	filter: brightness(1.06);
	color: var(--ml-campaign-fg);
}

.ml-campaign-code:focus-visible {
	outline: 2px solid var(--ml-campaign-mid);
	outline-offset: 3px;
}

.ml-campaign-code.is-pulsing {
	animation: ml-campaign-code-pulse 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ml-campaign-code-pulse {

	0%,
	100% {
		transform: scale(1);
	}

	40% {
		transform: scale(0.92);
	}
}

.ml-campaign-code__value {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 16px;
	font-weight: 700;
	height: 100%;
	padding: 6px 14px 6px 12px;
	line-height: 20px;
	letter-spacing: 0.04em;
	color: var(--ml-campaign-mid);
	background: var(--ml-campaign-surface);
	border-radius: 100px;
	pointer-events: none;
}

.ml-campaign-code__icon {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
}

.ml-campaign-code__copy {
	display: block;
	padding: 6px 12px;
	color: var(--ml-campaign-fg);
	font-size: 16px;
	height: 100%;
	font-weight: 500;
	line-height: 20px;
	pointer-events: none;
}

/* Clip the sliding labels. Width comes from the active label via the
   0fr → 1fr grid trick below — no JS measuring. */
.ml-campaign-code__copy-viewport {
	display: block;
	overflow: hidden;
	height: 20px;
	width: max-content;
}

.ml-campaign-code__copy-track {
	display: flex;
	flex-direction: column;
	align-items: start;
	width: max-content;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ml-campaign-code.is-copied .ml-campaign-code__copy-track {
	transform: translateY(-20px);
}

/* Only the open slot (1fr) contributes intrinsic width; the closed one
   (0fr) collapses, so the pill grows/shrinks with the label swap. */
.ml-campaign-code__copy-idle,
.ml-campaign-code__copy-done {
	display: grid;
	grid-template-columns: 0fr;
	overflow: hidden;
	height: 20px;
	line-height: 20px;
	transition: grid-template-columns 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ml-campaign-code__copy-idle {
	grid-template-columns: 1fr;
}

.ml-campaign-code.is-copied .ml-campaign-code__copy-idle {
	grid-template-columns: 0fr;
}

.ml-campaign-code.is-copied .ml-campaign-code__copy-done {
	grid-template-columns: 1fr;
}

.ml-campaign-code__copy-label {
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	.ml-campaign-code.is-pulsing {
		animation: none;
	}

	.ml-campaign-code__copy-track,
	.ml-campaign-code__copy-idle,
	.ml-campaign-code__copy-done {
		transition: none;
	}
}


/* Campaign artwork behind the pricing hero
--------------------------------------------- */

.ml-pricing-hero.is-campaign {
	background-image: var(--ml-hero-image, none);
	background-position: center top;
	background-repeat: no-repeat;
	background-size: contain;
}

.ml-pricing-hero.is-campaign .ml-pricing-hero__title {
	font-weight: 400;
	text-wrap: balance;
}

.ml-pricing-hero.is-campaign .ml-pricing-hero__title strong {
	font-weight: 900;
}

/* Campaign pricing on the plan cards
--------------------------------------------- */

/* The campaign badge is a second .ml-plan__badge next to "Most popular", on
   the card's top edge (markup in template-parts/pricing-hero.php). */
.ml-plan .ml-plan__badge.ml-plan__campaign-badge {
	background: var(--ml-campaign-accent);
	color: var(--ml-campaign-ink);
}

/* It belongs to the offer period: yearly, or monthly for a first-month offer.
   The slot is a one-column grid tweened 1fr <-> 0fr (same trick as the code
   chip), so the row narrows smoothly and "Most popular" glides back to the
   centre while the badge fades and shrinks out. */
.ml-plan__campaign-slot {
	flex: none;
	display: grid;
	grid-template-columns: 1fr;
	overflow: hidden;
	transition: grid-template-columns 0.35s cubic-bezier(0.22, 1, 0.36, 1), padding 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ml-plan__badge + .ml-plan__campaign-slot {
	padding-left: 8px;
}

.ml-plan .ml-plan__campaign-slot .ml-plan__campaign-badge {
	min-width: 0;
	overflow: hidden;
	opacity: 1;
	transform: scale(1);
	transition: opacity 0.25s ease 0.1s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s;
}

.ml-pricing:not(.has-monthly-offer)[data-billing="monthly"] .ml-plan__campaign-slot,
.ml-pricing.has-monthly-offer[data-billing="yearly"] .ml-plan__campaign-slot {
	grid-template-columns: 0fr;
	padding-left: 0;
}

.ml-pricing:not(.has-monthly-offer)[data-billing="monthly"] .ml-plan__campaign-slot .ml-plan__campaign-badge,
.ml-pricing.has-monthly-offer[data-billing="yearly"] .ml-plan__campaign-slot .ml-plan__campaign-badge {
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 0.15s ease, transform 0.2s ease;
}

.ml-plan__was {
	display: flex;
	flex: 0 0 100%;
	gap: 4px;
	align-items: baseline;
	justify-content: center;
	font-size: 24px;
	font-weight: 800;
	line-height: 1;
	color: var(--ml-plan-muted);
	overflow: hidden;
	max-height: 32px;
	opacity: 1;
	transition: opacity 0.2s ease, max-height 0.2s ease;
}

.ml-plan__was.is-collapsed {
	max-height: 0;
	opacity: 0;
	pointer-events: none;
}

.ml-plan__was-amount {
	text-decoration-thickness: 2px;
}

.ml-plan__was-per {
	font-size: 15px;
	font-weight: 700;
}

/* With JS the "was" line is hoisted into a persistent element next to the
   amount, so the copy left inside each swapped price node is redundant —
   the same treatment the amount and the note already get. */
.ml-pricing.is-enhanced .ml-plan__price .ml-plan__was {
	display: none;
}

/* During a campaign the yearly badge advertises the campaign offer. Colours
   match the seasonal mid, and the badge collapses while yearly is selected —
   the orange thumb already says "this is the deal". max-width/opacity (not
   display) so the hide can tween with the thumb width.

   `data-ml-badge` + `.is-measuring` are JS-only: pricing.js freezes transitions,
   forces the destination badge layout, reads the thumb box, then lets CSS tween. */
.ml-pricing.has-campaign .ml-pricing-switch__thumb {
	transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.ml-pricing.has-campaign .ml-pricing-switch__option {
	gap: 0;
	justify-content: center;
	transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

/* max-width is only for the collapse tween — keep it roomy so long i18n
   badges ("40% OFF", "GIẢM 40%", "立减 40%") never clip while visible. */
.ml-pricing.has-campaign .ml-pricing-switch__badge {
	max-width: 160px;
	margin-left: 8px;
	overflow: hidden;
	white-space: nowrap;
	background: var(--ml-campaign-mid);
	color: var(--ml-campaign-ink);
	transition: max-width 0.2s ease, margin 0.2s ease, padding 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

/* The badge collapses once its own option is picked: Yearly for an annual
   campaign, Monthly for a first-month offer. */
.ml-pricing.has-campaign:not(.has-monthly-offer)[data-billing="yearly"] .ml-pricing-switch__badge,
.ml-pricing.has-campaign.has-monthly-offer[data-billing="monthly"] .ml-pricing-switch__badge,
.ml-pricing.has-campaign .ml-pricing-switch[data-ml-badge="hidden"] .ml-pricing-switch__badge {
	max-width: 0;
	margin-left: 0;
	padding-left: 0;
	padding-right: 0;
	opacity: 0;
}

/* Must beat the yearly collapse rule while measuring the monthly layout. */
.ml-pricing.has-campaign .ml-pricing-switch[data-ml-badge="shown"] .ml-pricing-switch__badge {
	max-width: 160px;
	margin-left: 8px;
	padding-left: 4px;
	padding-right: 6px;
	opacity: 1;
}

.ml-pricing.has-campaign .ml-pricing-switch.is-measuring,
.ml-pricing.has-campaign .ml-pricing-switch.is-measuring * {
	transition: none !important;
}

.ml-pricing.has-campaign:not(.has-monthly-offer)[data-billing="yearly"] .ml-pricing-switch__thumb {
	background: var(--ml-campaign-mid);
	box-shadow: none;
}

.ml-pricing.has-campaign:not(.has-monthly-offer)[data-billing="yearly"] .ml-pricing-switch__option[aria-pressed="true"] {
	color: var(--ml-campaign-fg);
}

/* No-JS fallback: same orange pill when the sliding thumb has not measured yet. */
.ml-pricing.has-campaign:not(.has-monthly-offer)[data-billing="yearly"] .ml-pricing-switch__thumb:not([style])~.ml-pricing-switch__option[aria-pressed="true"] {
	background: var(--ml-campaign-mid);
	box-shadow: none;
	color: var(--ml-campaign-fg);
}

@media (prefers-reduced-motion: reduce) {

	.ml-pricing.has-campaign .ml-pricing-switch__thumb,
	.ml-pricing.has-campaign .ml-pricing-switch__option,
	.ml-pricing.has-campaign .ml-pricing-switch__badge,
	.ml-plan__campaign-slot,
	.ml-plan .ml-plan__campaign-slot .ml-plan__campaign-badge,
	.ml-plan__was {
		transition: none;
	}
}

/* Giveaway banner under the plans table
--------------------------------------------- */

.ml-campaign-giveaway {
	padding: 0 0 64px;
}

.ml-campaign-giveaway__card {
	position: relative;
	padding: 32px;
	border-radius: 16px;
	background-color: var(--ml-campaign-deep);
	background-image: var(--ml-giveaway-image, none);
	background-position: right center;
	background-repeat: no-repeat;
	background-size: cover;
	color: var(--ml-campaign-fg);
	overflow: hidden;
	max-width: 1000px;
	margin: 0 auto;
}

/* Keeps the copy off the artwork, which in the approved design carries the
   discount and giveaway cards on the right-hand side. */
.ml-campaign-giveaway__content {
	position: relative;
	z-index: 1;
	max-width: 560px;
}

.ml-campaign-giveaway__title {
	margin: 0;
	font-size: 32px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--ml-campaign-fg);
	text-wrap: balance;
}

.ml-campaign-giveaway__description {
	margin: 12px 0 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--ml-campaign-fg-muted);
}

.ml-campaign-giveaway__description p {
	margin: 0;
}

.ml-campaign-giveaway__description p+p {
	margin-top: 8px;
}

.ml-campaign-giveaway__description strong {
	font-weight: 700;
	color: var(--ml-campaign-fg);
}

.ml-campaign-giveaway__actions {
	/* Campaign mid becomes the button primary so Fill / Inverse / Soft track the
	   seasonal swatch without per-style overrides. */
	--color-primary: var(--ml-campaign-mid);
	--color-primary-hover: color-mix(in srgb, var(--ml-campaign-mid) 90%, #000000);
	--button-shadow-color: var(--ml-campaign-mid);

	display: flex;
	flex-wrap: wrap;
	gap: 12px !important;
	margin: 24px 0 0;
}

.ml-campaign-giveaway__actions .wp-block-button.is-style-fill .wp-block-button__link:not(.has-text-color),
.ml-campaign-giveaway__actions .wp-block-button:not([class*="is-style-"]) .wp-block-button__link:not(.has-text-color) {
	color: var(--ml-campaign-ink);
}

.ml-campaign-giveaway__actions .wp-block-button.is-style-fill .wp-block-button__link:not(.has-text-color):hover,
.ml-campaign-giveaway__actions .wp-block-button.is-style-fill .wp-block-button__link:not(.has-text-color):focus,
.ml-campaign-giveaway__actions .wp-block-button:not([class*="is-style-"]) .wp-block-button__link:not(.has-text-color):hover,
.ml-campaign-giveaway__actions .wp-block-button:not([class*="is-style-"]) .wp-block-button__link:not(.has-text-color):focus {
	color: var(--ml-campaign-ink);
}

.ml-campaign-giveaway__note {
	margin: 12px 0 0;
	font-size: 12px;
	font-weight: 400;
	line-height: 16px;
	color: var(--ml-campaign-fg-soft);
}


/* Elements recolor — only when the campaign picked a colour. Without one the
   plans keep the brand palette from pricing.css.

   The gate is wrapped in :where() so it contributes no specificity. It is a
   condition, not a target: without it every rule below would score one class
   higher than the pricing.css rule it overrides, and the campaign's own Pricing
   CSS field — which is written against the selectors you read in DevTools —
   would lose to it and need !important to win anything. With :where() these
   rules tie with pricing.css and are decided by source order, which campaign.css
   wins because it is enqueued after it (see multilogin_scripts()). */

:where(.has-ml-campaign-color) {

	.ml-pricing-plans,
	.ml-pricing-switch {
		--color-primary: var(--ml-campaign-accent);
	}

	.ml-plan__badge {
		background: var(--ml-campaign-accent);
		color: var(--ml-campaign-fg);
	}

	.ml-plan.is-featured {
		border-color: var(--ml-campaign-accent);
	}

	.ml-plan__feature-icon--yes,
	.ml-plan__bonus-icon {
		color: var(--ml-campaign-accent);
	}

	.ml-plan__bonus-label {
		color: var(--ml-campaign-accent);
	}

	.ml-plan--free .ml-plan__badge {
		background: #7588a3;
	}

	.ml-plan[data-accent="primary"] .ml-plan__name {
		background: linear-gradient(90deg, var(--ml-campaign-mid) 0%, var(--ml-campaign-mid) 100%);
		background-clip: text;
		-webkit-background-clip: text;
		color: transparent;
	}

	.ml-plan__actions .wp-block-button.is-style-fill .wp-block-button__link:not(.has-background) {
		background: var(--ml-campaign-accent);
		color: var(--ml-campaign-fg);

		&:hover,
		&:focus-visible {
			background: color-mix(in srgb, var(--ml-campaign-accent) 90%, #000000);
			color: var(--ml-campaign-fg);
		}
	}

	.ml-plan--free .ml-plan__actions .wp-block-button .wp-block-button__link:not(.has-background) {
		background: transparent;
		color: var(--ml-campaign-accent);
		border-color: var(--ml-campaign-accent);

		&:hover,
		&:focus-visible {
			background: var(--ml-campaign-accent);
			color: var(--ml-campaign-fg);
		}
	}

	.ml-plan__tier-option[aria-pressed="true"],
	.ml-plan__step:hover:not(:disabled) {
		background: color-mix(in srgb, var(--ml-campaign-accent) 10%, transparent);
	}

	.ml-plan__tier-badge {
		background: var(--ml-campaign-accent);
	}
}

@media (max-width: 1023px) {
	.ml-campaign-giveaway__content {
		max-width: 100%;
	}
}

@media (max-width: 767px) {
	body.has-ml-ribbon {
		--ml-ribbon-h: 44px;
	}

	.ml-ribbon__inner {
		gap: 8px;
		min-height: 44px;
	}

	.ml-ribbon__text,
	.ml-ribbon__pill {
		font-size: 12px;
		line-height: 16px;
	}

	/* One line at a minimum of 12px is the brief's requirement, and the
	   countdown does not fit next to the offer on a 375px screen — the approved
	   mobile design drops it. */
	.ml-ribbon__countdown {
		display: none;
	}

	/* Mobile hero art is an illustration under the intro, not a full-section
	   backdrop — clear the section image and park it in the intro's padding so
	   the coupon pulse/width tween cannot move the leaves. */
	.ml-pricing-hero.is-campaign {
		background-image: none;
	}

	.ml-campaign-code {
		margin-top: 20px;
	}

	.ml-pricing-hero.is-campaign.has-art .ml-pricing-hero__intro {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 100%;
		padding-bottom: 200px;
	}

	.ml-pricing-hero.is-campaign.has-art .ml-pricing-hero__intro::after {
		content: "";
		position: absolute;
		left: 50%;
		bottom: 0;
		width: 100vw;
		height: 176px;
		transform: translateX(-50%);
		background-image: var(--ml-hero-image-mobile, var(--ml-hero-image, none));
		background-position: center bottom;
		background-size: contain;
		background-repeat: no-repeat;
		pointer-events: none;
	}

	.ml-campaign-code__value,
	.ml-campaign-code__copy {
		font-size: 14px;
	}

	.ml-campaign-giveaway__card {
		padding: 24px;
		background-image: var(--ml-giveaway-image-mobile, var(--ml-giveaway-image, none));
		background-position: center bottom;
	}

	.ml-campaign-giveaway__title {
		font-size: 24px;
	}

	/* Leave a clear band under the CTAs so the mobile artwork (discount /
	   giveaway cards) in the background image can show through. The deadline
	   sits under that band, matching the approved mobile layout. */
	.ml-campaign-giveaway__note {
		margin-top: 250px;
		text-align: center;
	}

	.ml-campaign-giveaway__actions .wp-block-button {
		flex: 1 1 100%;
	}

	.ml-campaign-giveaway__actions .wp-block-button__link {
		width: 100%;
		/* Tap targets stay at the brief's 44px floor. */
		min-height: 44px;
	}

	.ml-plan__was {
		font-size: 20px;
	}
}

/* A combo offer in one pill (Black Friday: "80% OFF first month + 10% OFF
   minutes & proxy") plus the countdown overflows a tablet; the offer wins. */
@media (min-width: 768px) and (max-width: 1023px) {
	.ml-ribbon__countdown {
		display: none;
	}
}

/* Phone line of the ribbon
--------------------------------------------- */

@media (max-width: 767px) {

	/* A campaign with a phone line swaps the desktop line for it. */
	.ml-ribbon.has-mobile-line .ml-ribbon__line {
		display: none;
	}

	.ml-ribbon.has-mobile-line .ml-ribbon__line--mobile {
		display: inline-flex;
	}
}

/* Giveaway banner — stat cards
   Drawn in HTML on the right instead of baked into the artwork, stacked one
   over the other. Without an image the card paints the brand glows itself.
--------------------------------------------- */

.ml-campaign-giveaway__card.has-stats {
	display: flex;
	gap: 32px;
	align-items: center;
	background-image: var(--ml-giveaway-image,
			radial-gradient(ellipse 70% 120% at 0 0, rgba(33, 56, 128, 0.85) 0%, transparent 60%),
			radial-gradient(ellipse 60% 110% at 100% 100%, rgba(74, 49, 140, 0.85) 0%, transparent 60%));
}

.ml-campaign-giveaway__card.has-stats .ml-campaign-giveaway__content {
	flex: 1 1 auto;
}

/* Same convention as the ribbon: <strong> is painted in the campaign colour. */
.ml-campaign-giveaway__title strong {
	color: var(--ml-campaign-mid);
}

.ml-campaign-giveaway__actions .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color) {
	color: var(--ml-campaign-fg);
}

.ml-campaign-giveaway__stats {
	display: flex;
	flex: none;
	flex-direction: column;
	gap: 16px;
	margin: 0 0 0 auto;
	padding: 0;
	list-style: none;
}

.ml-campaign-giveaway__stat {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 256px;
	min-height: 120px;
	margin: 0;
	padding: 16px 20px;
	border: 1.5px dashed rgba(255, 255, 255, 0.3);
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.55);
}

.ml-campaign-giveaway__stat.is-highlight {
	border-color: var(--ml-campaign-mid);
	box-shadow: 0 0 24px color-mix(in srgb, var(--ml-campaign-mid) 30%, transparent);
}

.ml-campaign-giveaway__stat-value {
	font-size: 40px;
	font-weight: 800;
	line-height: 1;
	color: var(--ml-campaign-fg);
}

.ml-campaign-giveaway__stat.is-highlight .ml-campaign-giveaway__stat-value {
	color: var(--ml-campaign-mid);
}

.ml-campaign-giveaway__stat-label {
	margin-top: 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ml-campaign-fg);
}

/* Optional second line under the label, in the banner's muted text. */
.ml-campaign-giveaway__stat-note {
	margin-top: 2px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--ml-campaign-fg-muted);
}

@media (max-width: 1023px) {
	.ml-campaign-giveaway__card.has-stats {
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
	}

	.ml-campaign-giveaway__stats {
		margin: 0;
	}

	.ml-campaign-giveaway__stat {
		width: auto;
		min-width: 0;
	}
}

@media (max-width: 767px) {

	/* No artwork to keep clear, so the deadline sits right under the CTAs. */
	.ml-campaign-giveaway__card.has-stats .ml-campaign-giveaway__note {
		margin-top: 12px;
		text-align: left;
	}

	.ml-campaign-giveaway__stat {
		min-height: 100px;
		padding: 16px;
	}

	.ml-campaign-giveaway__stat-value {
		font-size: 32px;
	}

	.ml-campaign-giveaway__stat-label,
	.ml-campaign-giveaway__stat-note {
		font-size: 12px;
	}
}

/* Dark scheme
   A light campaign colour (Black Friday's lime) only reads as an accent, so
   the plans and the banner under them go dark and turn to glass, and the
   colour marks the featured plan, the badges, the checks and the CTAs. The
   body class comes from multilogin_campaign_body_class(). Rules are gated by
   :where() so the campaign's own Pricing CSS field can still override them
   with the selectors seen in DevTools.
--------------------------------------------- */

:where(.has-ml-campaign-dark) .ml-pricing-stage {
	--ml-dark-bg: #090a1a;

	/* Navy base, a big brand-blue glow from the top left and a purple one
	   low on the right, behind the plans. */
	background:
		radial-gradient(ellipse 55% 520px at 8% 0, rgba(0, 82, 230, 0.46) 0%, rgba(0, 82, 230, 0) 100%),
		radial-gradient(ellipse 32% 480px at 100% 62%, rgba(124, 58, 214, 0.34) 0%, rgba(124, 58, 214, 0) 100%),
		radial-gradient(ellipse 30% 360px at 0 85%, rgba(60, 40, 160, 0.18) 0%, rgba(60, 40, 160, 0) 100%),
		var(--ml-dark-bg);
	border-bottom: 1px solid #ffffff33;
}

:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-pricing-hero.is-campaign .ml-landing-block__inner {
	position: relative;
	z-index: 1;
}

/* One line on desktop: the headline runs wider than the static 900px cap. At
   64px it takes about 18.3em, so narrower desktops scale it down to keep the
   line. Phones keep their size and wrap. */
:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-pricing-hero.is-campaign .ml-pricing-hero__title {
	max-width: none;
	color: #ffffff;
	font-weight: 800;
}

@media (min-width: 1025px) {
	:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-pricing-hero.is-campaign .ml-pricing-hero__title {
		font-size: clamp(40px, calc((100vw - 80px) / 19.5), 64px);
	}
}

/* An inline-block with a 1em line box, so the padding frames the glyphs
   rather than the font's tall ascent, which left the text sitting low. */
:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-pricing-hero.is-campaign .ml-pricing-hero__title strong,
:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-pricing-hero.is-campaign .ml-pricing-hero__title b {
	display: inline-block;
	padding: 0.12em 0.26em 0.08em;
	border-radius: 0.18em;
	line-height: 1;
	background: var(--ml-campaign-mid);
	color: var(--ml-campaign-ink);
	font-weight: 800;
	white-space: nowrap;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-pricing-hero__copy {
	color: rgba(255, 255, 255, 0.86);
}

:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-pricing-hero__copy p {
	margin: 0;
}

:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-pricing-hero__copy strong {
	color: var(--ml-campaign-mid);
}

:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-pricing-hero__note {
	color: #98a2b3;
}

:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-pricing-switch {
	border: 1px solid color-mix(in srgb, var(--ml-campaign-mid) 30%, transparent);
	background: rgba(255, 255, 255, 0.06);
}

:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-pricing-switch__option,
:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-pricing-switch__option:hover {
	color: #ffffff;
}

:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-pricing-switch__option[aria-pressed="true"] {
	color: var(--ml-campaign-ink);
}

/* On the offer period (Monthly) the pill is the campaign colour with ink text.
   Yearly keeps the white pill. */
:where(.has-ml-campaign-dark) .ml-pricing.has-monthly-offer[data-billing="monthly"] .ml-pricing-switch__thumb,
:where(.has-ml-campaign-dark) .ml-pricing.has-monthly-offer[data-billing="monthly"] .ml-pricing-switch__thumb:not([style])~.ml-pricing-switch__option[aria-pressed="true"] {
	background: var(--ml-campaign-mid);
	box-shadow: 0 0 24px color-mix(in srgb, var(--ml-campaign-mid) 35%, transparent);
}

:where(.has-ml-campaign-dark) .ml-pricing.has-monthly-offer[data-billing="monthly"] .ml-pricing-switch__option[aria-pressed="true"] {
	color: var(--ml-campaign-ink);
}

/* Glass plan cards, matching the banner: a translucent tint with a sheen at
   the top, blur, a hairline border, and the card palette flipped to light text
   (every colour inside a card reads these variables). */
:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-plan {
	--ml-plan-heading: #ffffff;
	--ml-plan-body: rgba(255, 255, 255, 0.82);
	--ml-plan-muted: #9aa5b8;
	--ml-plan-label: #8b97ad;
	--ml-plan-off: #6b7690;
	--ml-plan-off-icon: #3b4458;
	--ml-plan-border: rgba(255, 255, 255, 0.12);
	--ml-plan-control-border: rgba(255, 255, 255, 0.16);
	--ml-plan-tint: rgba(255, 255, 255, 0.08);
	--ml-glass-purple: #c39bff;
	--color-surface-soft: rgba(255, 255, 255, 0.06);

	border-width: 1px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 38%),
		rgba(255, 255, 255, 0.04);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 24px 60px rgba(0, 0, 0, 0.45);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
}

/* On glass the brand blue and purple go lighter, and the interactive accents
   (checks, the picked tier, its NEW badge) take the campaign colour. */
:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-plan[data-accent="primary"] .ml-plan__name {
	background-image: linear-gradient(90deg, #a9c6ff 0%, #dcc4ff 100%);
}

:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-plan__feature-icon--yes {
	color: var(--ml-campaign-mid);
}

:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-plan__bonus-label,
:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-plan__bonus-icon {
	color: var(--ml-glass-purple);
}

:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-plan__tier-option:hover,
:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-plan__step:hover:not(:disabled) {
	border-color: rgba(255, 255, 255, 0.4);
	color: #ffffff;
}

:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-plan__tier-option[aria-pressed="true"] {
	border-color: var(--ml-campaign-mid);
	background: color-mix(in srgb, var(--ml-campaign-mid) 14%, transparent);
	color: var(--ml-campaign-mid);
}

:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-plan__tier-badge {
	background: var(--ml-campaign-mid);
	color: var(--ml-campaign-ink);
}

/* The OS draws the dropdown list on white. */
:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-plan__step-select option {
	color: #0f172a;
}

:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-plan.is-featured {
	border-color: var(--ml-campaign-mid);
	box-shadow: 0 0 48px color-mix(in srgb, var(--ml-campaign-mid) 22%, transparent);
}

/* Only Pro is pushed: its corner badge takes the colour, while the free card
   loses its badge and trades the fill CTA for an outline one. */
:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-plan.is-featured .ml-plan__badge {
	background: var(--ml-campaign-mid);
	color: var(--ml-campaign-ink);
}

:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-plan--free .ml-plan__badge {
	display: none;
}

:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-plan--free .ml-plan__actions .wp-block-button .wp-block-button__link:not(.has-background),
:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-plan--free .ml-plan__actions .wp-block-button .wp-block-button__link:not(.has-background):visited {
	background: transparent;
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
	color: #ffffff;
}

:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-plan--free .ml-plan__actions .wp-block-button .wp-block-button__link:not(.has-background):hover,
:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-plan--free .ml-plan__actions .wp-block-button .wp-block-button__link:not(.has-background):focus-visible {
	background: rgba(255, 255, 255, 0.1);
	box-shadow: inset 0 0 0 1.5px #ffffff;
	color: #ffffff;
}

:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-plan .ml-plan__badge.ml-plan__campaign-badge {
	background: var(--ml-campaign-mid);
	color: var(--ml-campaign-ink);
}

/* Paid plans: campaign-coloured fill with ink text, the one bright button on
   the glass cards. */
:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-plan:not(.ml-plan--free) .ml-plan__actions .wp-block-button.is-style-fill .wp-block-button__link:not(.has-background),
:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-plan:not(.ml-plan--free) .ml-plan__actions .wp-block-button.is-style-fill .wp-block-button__link:not(.has-background):visited {
	background: var(--ml-campaign-mid);
	box-shadow: 0 8px 24px color-mix(in srgb, var(--ml-campaign-mid) 25%, transparent);
	color: var(--ml-campaign-ink);
}

:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-plan:not(.ml-plan--free) .ml-plan__actions .wp-block-button.is-style-fill .wp-block-button__link:not(.has-background):hover,
:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-plan:not(.ml-plan--free) .ml-plan__actions .wp-block-button.is-style-fill .wp-block-button__link:not(.has-background):focus-visible {
	background: color-mix(in srgb, var(--ml-campaign-mid) 85%, #ffffff);
	color: var(--ml-campaign-ink);
}

/* The banner turns to glass over the grid: translucent tint, faint glows,
   blur, a hairline border and a top highlight. */
:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-campaign-giveaway__card.has-stats {
	border: 1px solid rgba(255, 255, 255, 0.12);
	background-color: rgba(255, 255, 255, 0.04);
	background-image: var(--ml-giveaway-image,
			linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 45%));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 24px 60px rgba(0, 0, 0, 0.45);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
}

/* Colour behind the glass for it to blur: brand blue and purple, and a touch
   of the campaign colour behind the stat cards. */
:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-campaign-giveaway .ml-landing-block__inner:has(> .has-stats) {
	position: relative;
}

:where(.has-ml-campaign-dark) .ml-pricing-stage .ml-campaign-giveaway .ml-landing-block__inner:has(> .has-stats)::before {
	position: absolute;
	inset: -40px 4%;
	z-index: 0;
	content: "";
	pointer-events: none;
	background:
		radial-gradient(ellipse 45% 70% at 14% 25%, rgba(0, 95, 249, 0.28) 0%, transparent 100%),
		radial-gradient(ellipse 45% 70% at 86% 78%, rgba(150, 71, 219, 0.28) 0%, transparent 100%),
		radial-gradient(ellipse 28% 45% at 70% 45%, color-mix(in srgb, var(--ml-campaign-mid) 14%, transparent) 0%, transparent 100%);
	filter: blur(40px);
}

/* Dark ribbon: a near-black strip with a soft glow of the campaign colour in
   the middle, the pill in the colour with ink text, the countdown as plain
   bold text after "Ends in", and an arrow icon. */
.has-ml-campaign-dark .ml-ribbon {
	--ml-ribbon-bg: #07090f;
	--ml-ribbon-image: none;
	--ml-campaign-surface: var(--ml-campaign-mid);
	--ml-campaign-on-light: var(--ml-campaign-ink);

	overflow: hidden;
}

.has-ml-campaign-dark .ml-ribbon::after {
	position: absolute;
	inset: 0 auto 0 50%;
	width: min(760px, 70%);
	content: "";
	pointer-events: none;
	transform: translateX(-50%);
	background: radial-gradient(ellipse 50% 90% at 50% 50%, color-mix(in srgb, var(--ml-campaign-mid) 16%, transparent) 0%, transparent 100%);
}

.has-ml-campaign-dark .ml-ribbon__inner {
	position: relative;
	z-index: 1;
}

.has-ml-campaign-dark .ml-ribbon__text strong {
	font-weight: 900;
	letter-spacing: 0.04em;
}

.has-ml-campaign-dark .ml-ribbon__pill {
	padding: 4px 12px;
	border-radius: 999px;
}

/* The text after the pill is secondary. */
.has-ml-campaign-dark .ml-ribbon__pill~.ml-ribbon__text {
	opacity: 0.72;
}

.has-ml-campaign-dark .ml-ribbon__countdown {
	padding: 0;
	border: 0;
	font-weight: 800;
}

/* "Ends in", translated, from the template's data-label. */
.has-ml-campaign-dark .ml-ribbon__countdown::before {
	content: attr(data-label) " ";
}

.has-ml-campaign-dark .ml-ribbon__inner::after {
	flex: none;
	width: 20px;
	height: 20px;
	margin-left: -2px;
	content: "";
	background-color: var(--ml-campaign-mid);
	-webkit-mask: url("../icons/material-symbols-arrow-forward.svg") center / contain no-repeat;
	mask: url("../icons/material-symbols-arrow-forward.svg") center / contain no-repeat;
	transition: transform 0.2s ease;
}

.has-ml-campaign-dark a.ml-ribbon:hover .ml-ribbon__inner::after {
	transform: translateX(4px);
}

@media (max-width: 767px) {

	.has-ml-campaign-dark .ml-ribbon__countdown::before,
	.has-ml-campaign-dark .ml-ribbon__inner::after {
		content: none;
	}

	.has-ml-campaign-dark .ml-ribbon__pill {
		padding: 4px 8px;
	}
}

/* Mobile minutes table — campaign prices
   Markup in template-parts/pricing-addons.php, numbers in
   inc/campaigns/campaign-packages.php.
--------------------------------------------- */

/* The coloured half of the heading on a campaign pill: the regular heading's
   gradient span, or the <strong> in the campaign's own heading. */
.ml-pricing-packages.is-campaign .ml-pricing-section__title strong {
	font-weight: inherit;
}

.ml-pricing-packages.is-campaign .ml-pricing-section__title strong,
.ml-pricing-packages.is-campaign .ml-pricing-section__title .ml-grad {
	display: inline-block !important;
	padding: 4px 16px;
	border-radius: 16px;
	background: var(--ml-campaign-mid);
	-webkit-background-clip: border-box;
	background-clip: border-box;
	color: var(--ml-campaign-ink);
}

/* The campaign row: a campaign-tinted band with a hairline of the colour above
   and below. The line and the code share one cell, so the chip resizing on
   copy cannot move the columns. The class is doubled to outrank the zebra
   (`tbody tr:nth-child(odd) td`), and the lines are inset shadows because the
   collapsed table borders would let the header's rule win. */
.ml-pricing-table tbody tr.ml-pricing-table__promo.ml-pricing-table__promo td {
	height: 60px;
	padding: 12px 24px;
	background: color-mix(in srgb, var(--ml-campaign-mid) 20%, #ffffff);
	box-shadow: inset 0 1px 0 var(--ml-campaign-mid), inset 0 -1px 0 var(--ml-campaign-mid);
	font-weight: 700;
	line-height: 20px;
	color: #1d192b;
	text-align: left;
}

.ml-pricing-table__promo-inner {
	display: flex;
	gap: 8px 16px;
	align-items: center;
	justify-content: space-between;
}

.ml-pricing-table__promo-inner > span {
	flex: 1 1 auto;
	min-width: 0;
}

/* The stripes start on the first package, under the campaign row. */
.ml-pricing-table tbody .ml-pricing-table__promo ~ tr:nth-child(odd) th,
.ml-pricing-table tbody .ml-pricing-table__promo ~ tr:nth-child(odd) td {
	background: var(--color-surface);
}

.ml-pricing-table tbody .ml-pricing-table__promo ~ tr:nth-child(even) th,
.ml-pricing-table tbody .ml-pricing-table__promo ~ tr:nth-child(even) td {
	background: var(--ml-pt-zebra);
}

.ml-pricing-table__save.ml-pricing-table__save--campaign {
	background: var(--ml-campaign-mid);
	color: var(--ml-campaign-ink);
}

/* The table's coupon chip: a small dark plate, tag + code in the campaign
   colour, then a copy icon. Markup in multilogin_campaign_table_code_button(),
   the copying in js/campaign.js. On copy the code slides up and out, "Copied!"
   slides in from below, the tag folds away and the copy icon pops into a
   check. Both labels share one grid cell, and only the visible one (1fr)
   gives the chip its width, so it eases between the two. */
button.ml-code {
	position: relative;
	display: inline-flex;
	flex: none;
	gap: 6px;
	align-items: center;
	margin: 0;
	padding: 4px 8px;
	border: 0;
	border-radius: 6px;
	background: #1d192b;
	color: var(--ml-campaign-mid);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	letter-spacing: 0.02em;
	white-space: nowrap;
	cursor: pointer;
	appearance: none;
	/* Kill the global `body * { transition: transform }` so the pulse
	   keyframes are not fighting a tween on the same property. */
	transition: filter 0.2s ease;
}

button.ml-code:hover {
	filter: brightness(1.15);
}

button.ml-code:focus-visible {
	outline: 2px solid #1d192b;
	outline-offset: 2px;
}

button.ml-code.is-pulsing {
	animation: ml-campaign-code-pulse 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ml-code__icon {
	flex: none;
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.ml-code__icon--tag {
	transition: opacity 0.2s ease, width 0.3s cubic-bezier(0.22, 1, 0.36, 1), margin 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ml-code__swap {
	display: inline-grid;
	overflow: hidden;
}

.ml-code__idle,
.ml-code__done {
	display: grid;
	grid-area: 1 / 1;
	grid-template-columns: 0fr;
	transition:
		grid-template-columns 0.3s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.2s ease,
		transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ml-code__label {
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
}

.ml-code__idle {
	grid-template-columns: 1fr;
}

.ml-code__done {
	opacity: 0;
	transform: translateY(100%);
}

button.ml-code.is-copied .ml-code__idle {
	grid-template-columns: 0fr;
	opacity: 0;
	transform: translateY(-100%);
}

button.ml-code.is-copied .ml-code__done {
	grid-template-columns: 1fr;
	opacity: 1;
	transform: none;
}

/* The tag folds away on copy, taking the gap after it along. */
button.ml-code.is-copied .ml-code__icon--tag {
	width: 0;
	margin-inline-end: -6px;
	opacity: 0;
}

.ml-code__icon--check,
button.ml-code.is-copied .ml-code__icon--copy {
	display: none;
}

button.ml-code.is-copied .ml-code__icon--check {
	display: block;
	animation: ml-code-check-pop 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ml-code-check-pop {

	0% {
		opacity: 0;
		transform: scale(0.4);
	}

	100% {
		opacity: 1;
		transform: scale(1);
	}
}

@media (max-width: 767px) {
	.ml-pricing-table tbody tr.ml-pricing-table__promo.ml-pricing-table__promo td {
		padding: 12px 16px;
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.ml-code__idle,
	.ml-code__done,
	.ml-code__icon--tag {
		transition: none;
	}

	button.ml-code.is-pulsing,
	button.ml-code.is-copied .ml-code__icon--check {
		animation: none;
	}
}
