/*
 * buy-all.css
 * Minimal, scoped styling for the [nexio_buy_all] shortcode.
 * Every rule is nested under .nexio-buy-all so nothing here can
 * ever leak onto unrelated markup. Only loaded on pages where the
 * shortcode actually renders.
 *
 * Colors intentionally lean on currentColor / inherited values so
 * the widget adapts to whatever palette the theme or Elementor
 * controls set — only semantic success/error hues are fixed.
 */

.nexio-buy-all {
	display: inline-flex;
	flex-direction: column;
	/* No gap: a flex gap applies between children whether or not the
	   second one has any size, so the 8px meant for a visible status
	   message was reserved under every button that had nothing to
	   say. The message supplies its own spacing when it appears. */
}

/* Written at .nexio-buy-all button.… strength (0,2,1) on purpose:
 * this is a <button>, so theme/Elementor-kit global button skins
 * (e.g. `.elementor-kit-6 button { color: #fdfdff }`, written for
 * solid dark buttons) apply to it at 0,1,1 — and since this default
 * is an OUTLINE style on a transparent background, inheriting a
 * white button-skin text color rendered it invisible on light pages.
 * color: inherit re-anchors text (and the currentColor border) to
 * the surrounding page text color instead of the kit's button skin.
 */
.nexio-buy-all button.nexio-buy-all__button,
.nexio-buy-all__button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--nexio-buy-all-icon-gap, 8px);
	cursor: pointer;
	color: inherit;
	border: 1px solid currentColor;
	border-radius: 8px;
	padding: 11px 22px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.01em;
	background: transparent;
	transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease, opacity 0.18s ease;
}

/* Icon sits inline with the label; inherits the button's text color
 * unless the Icon Color control overrides it. */
.nexio-buy-all__button-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	color: inherit;
}

.nexio-buy-all__button-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.nexio-buy-all__button-label:empty {
	display: none;
}

/* Hover tint drawn from the button's own text color, so it works on
   any background. Older browsers without color-mix() simply skip it. */
.nexio-buy-all__button:hover:not(:disabled):not(.nexio-buy-all__button--loading) {
	background-color: color-mix(in srgb, currentColor 8%, transparent);
}

.nexio-buy-all__button:active:not(:disabled):not(.nexio-buy-all__button--loading) {
	transform: translateY(1px);
}

.nexio-buy-all__button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.nexio-buy-all__button:disabled,
.nexio-buy-all__button--loading {
	cursor: default;
	opacity: 0.55;
}

/* Owned state — the visitor already has access to every product this
   button would add, so it renders disabled as "Already Purchased". */
.nexio-buy-all button.nexio-buy-all__button--owned {
	cursor: not-allowed;
	opacity: 0.6;
}

/* Loading spinner, drawn with the button's own text color. */

.nexio-buy-all__button--loading {
	opacity: 0.8;
}

.nexio-buy-all__button--loading::after {
	content: "";
	display: inline-block;
	width: 13px;
	height: 13px;
	/* The button is flex with a `gap`, which already spaces the
	 * spinner from the label — so no explicit margin here (a
	 * margin-left would double up against the gap). */
	vertical-align: -2px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: nexio-buy-all-spin 0.7s linear infinite;
}

@keyframes nexio-buy-all-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Result messages — icon + short fade/rise so feedback registers
   without shouting. */

.nexio-buy-all__message {
	display: inline-flex;
	margin-top: 8px;
	align-items: baseline;
	gap: 6px;
	font-size: 13px;
	line-height: 1.5;
	animation: nexio-buy-all-message-in 0.22s ease-out both;
}

@keyframes nexio-buy-all-message-in {
	from {
		opacity: 0;
		transform: translateY(3px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.nexio-buy-all__message::before {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	align-self: center;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.nexio-buy-all__message--success {
	color: #15803d;
}

.nexio-buy-all__message--success::before {
	content: "";
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8.5 12.5 2.5 2.5 4.5-5.5'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8.5 12.5 2.5 2.5 4.5-5.5'/%3E%3C/svg%3E");
}

.nexio-buy-all__message--error {
	color: #b42318;
}

.nexio-buy-all__message--error::before {
	content: "";
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 7v6'/%3E%3Cpath d='M12 16.5v.5'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 7v6'/%3E%3Cpath d='M12 16.5v.5'/%3E%3C/svg%3E");
}

.nexio-buy-all__admin-notice {
	font-size: 13px;
	color: #b42318;
	background: #fef3f2;
	border: 1px dashed #f9a8a1;
	padding: 10px 14px;
	border-radius: 8px;
	line-height: 1.5;
}

/* Phase 8.3 — Download Now button on included-product single pages. */
.nexio-download-now {
	margin: 12px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nexio-download-now__button {
	display: inline-block;
}

/* Phase 12 — Elementor Bundle Card widget. */

.nexio-bundle-card {
	display: block;
}

.nexio-bundle-card__title {
	margin: 0 0 8px;
}

.nexio-bundle-card__description {
	margin: 0 0 10px;
	opacity: 0.85;
}

.nexio-bundle-card__count,
.nexio-bundle-card__total-value,
.nexio-bundle-card__bundle-price,
.nexio-bundle-card__savings {
	margin: 0 0 4px;
	font-variant-numeric: tabular-nums;
}

.nexio-bundle-card__savings span {
	color: #15803d;
	font-weight: 600;
}

.nexio-bundle-card .nexio-buy-all {
	margin-top: 12px;
}

/* Phase 12 — Elementor editor/preview-only notice, both widgets. */
.nexio-elementor-widget-notice {
	padding: 10px 14px;
	border: 1px dashed #f9a8a1;
	border-radius: 8px;
	color: #b42318;
	font-size: 13px;
	line-height: 1.5;
	background: #fef3f2;
}

/* Phase 13.1 — button width + view cart link.
 *
 * Full width has to widen the WRAPPER as well: .nexio-buy-all is
 * inline-flex (shrinks to its content), so a button at width:100%
 * would only fill that shrunk wrapper. Stretch both. The button stays
 * flex (not block) so an icon + label still align via gap. */

.nexio-buy-all--full-width {
	display: flex;
	width: 100%;
}

.nexio-buy-all--full-width .nexio-buy-all__button {
	width: 100%;
}

.nexio-buy-all__message__view-cart {
	text-decoration: underline;
	text-underline-offset: 2px;
	margin-left: 4px;
	font-weight: 600;
	color: inherit;
}

.nexio-buy-all__message__view-cart:hover,
.nexio-buy-all__message__view-cart:focus {
	text-decoration-thickness: 2px;
}

/* Reduced motion: keep feedback, drop the movement. */

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

	.nexio-buy-all__button,
	.nexio-buy-all__message {
		transition: none;
		animation: none;
	}

	.nexio-buy-all__button--loading::after {
		animation-duration: 1.5s;
	}
}

/* ---- Owned states ---- */

/* Disabled cart control on a product owned through a bundle. */
.nexio-cart-owned,
.nexio-cart-owned:hover {
	opacity: 0.55;
	cursor: not-allowed;
	margin-right: 10px;
}

/* Grid card action button in its download form. */
.nexio-product-card__fab--download {
	cursor: pointer;
}

.nexio-product-card__fab--download[data-nexio-busy] {
	opacity: 0.6;
	pointer-events: none;
}

/* The download form of the button is fully alive — never dimmed, never
   the not-allowed cursor, whatever other modifiers ride along. */
.nexio-buy-all .nexio-buy-all__button--download,
.nexio-buy-all a.nexio-buy-all__button--download,
.nexio-buy-all button.nexio-buy-all__button--download {
	cursor: pointer;
	opacity: 1;
}

/* Same neutral treatment for the Buy All button's owned fallback and
   the classic-theme disabled cart control — one visual language for
   "you already have this" everywhere. */
.nexio-buy-all button.nexio-buy-all__button--owned,
.nexio-cart-owned,
.nexio-cart-owned:hover {
	opacity: 1;
	background: #f2f4f7 !important;
	background-image: none !important;
	border: 1px solid #d0d5dd !important;
	color: #667085 !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

/* Owner's shop link: a normal, fully alive button. */
.nexio-buy-all .nexio-buy-all__button--shop-link {
	cursor: pointer;
	opacity: 1;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

/* ---- Hover animations ----
   Chosen per widget; the wrapper carries nexio-buy-all-anim-<name>.
   Speed comes from --nexio-anim-speed (Animation Speed control). */

.nexio-buy-all__button {
	--nexio-anim-speed: 260ms;
	position: relative;
	overflow: hidden;
	transition:
		transform var(--nexio-anim-speed) cubic-bezier(0.34, 1.4, 0.64, 1),
		box-shadow var(--nexio-anim-speed) ease,
		filter var(--nexio-anim-speed) ease,
		background-position var(--nexio-anim-speed) ease;
}

/* Lift */
.nexio-buy-all-anim-lift .nexio-buy-all__button:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 22px -8px rgba(16, 24, 40, 0.45);
}

/* Grow */
.nexio-buy-all-anim-grow .nexio-buy-all__button:hover {
	transform: scale(1.035);
}

/* Shine sweep — a highlight crossing the face of the button. The
   pseudo-element is skewed so the edge reads as a light sweep rather
   than a moving rectangle. */
.nexio-buy-all-anim-shine .nexio-buy-all__button::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -120%;
	width: 55%;
	transform: skewX(-22deg);
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
	transition: left calc(var(--nexio-anim-speed) * 2.2) ease;
	pointer-events: none;
}

.nexio-buy-all-anim-shine .nexio-buy-all__button:hover::after {
	left: 130%;
}

/* Gradient slide — needs a gradient background to have anything to
   move; on a flat colour it simply does nothing. */
.nexio-buy-all-anim-slide .nexio-buy-all__button {
	background-size: 200% 100%;
	background-position: 0% 50%;
}

.nexio-buy-all-anim-slide .nexio-buy-all__button:hover {
	background-position: 100% 50%;
}

/* Pulse */
@keyframes nexio-buy-all-pulse {
	0%   { transform: scale(1); }
	50%  { transform: scale(1.04); }
	100% { transform: scale(1); }
}

.nexio-buy-all-anim-pulse .nexio-buy-all__button:hover {
	animation: nexio-buy-all-pulse calc(var(--nexio-anim-speed) * 3) ease-in-out infinite;
}

/* Focus keeps the same feedback as hover for keyboard users. */
.nexio-buy-all-anim-lift .nexio-buy-all__button:focus-visible { transform: translateY(-3px); }
.nexio-buy-all-anim-grow .nexio-buy-all__button:focus-visible { transform: scale(1.035); }

/* An inert owned button never animates. */
.nexio-buy-all__button--owned,
.nexio-buy-all__button--owned:hover {
	transform: none !important;
	animation: none !important;
	box-shadow: none !important;
}

.nexio-buy-all__button--owned::after {
	content: none !important;
}

@media ( prefers-reduced-motion: reduce ) {
	.nexio-buy-all__button,
	.nexio-buy-all__button:hover,
	.nexio-buy-all__button::after {
		transition: none !important;
		animation: none !important;
		transform: none !important;
	}
}

/* The status message renders on every button so the aria-live region
   exists before JS writes to it — but while empty it was still an
   inline-flex box with a 1.5 line-height, reserving ~20px under every
   button. Collapsed to nothing until it has something to say.

   Deliberately NOT display:none: a live region has to stay in the
   accessibility tree for changes to it to be announced. Zero height
   plus overflow:hidden keeps it rendered but invisible, and :empty
   stops matching the moment JS sets any text. */
.nexio-buy-all__message:empty {
	display: block;
	height: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	animation: none;
}

.nexio-buy-all__message:empty::before {
	content: none;
}

/* ==========================================================================
 * Access passes — plan picker and the pass panel on My Account → Downloads.
 * Neutral by design: borders and accents follow currentColor, so the picker
 * takes on whatever text colour the surrounding section uses, exactly like
 * the outline Buy All button it sits beside.
 * ======================================================================= */

.nexio-pass-picker {
	display: flex;
	width: 100%;
	max-width: 640px;
}

.nexio-pass-picker__status {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.5;
}

.nexio-pass-picker__options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 10px;
	margin-bottom: 14px;
}

.nexio-pass-option {
	position: relative;
	display: block;
	cursor: pointer;
}

/* Visually hidden but still focusable and announced as a radio. */
.nexio-pass-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}

.nexio-pass-option__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 14px 16px;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: 10px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nexio-pass-option:hover .nexio-pass-option__body {
	border-color: rgba(0, 0, 0, 0.32);
}

.nexio-pass-option input:checked + .nexio-pass-option__body {
	border-color: currentColor;
	box-shadow: inset 0 0 0 1px currentColor;
}

.nexio-pass-option input:focus-visible + .nexio-pass-option__body {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.nexio-pass-option__title {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.75;
}

.nexio-pass-option__price {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}

.nexio-pass-option__suffix {
	font-size: 13px;
	font-weight: 500;
	opacity: 0.7;
}

.nexio-pass-option__meta {
	font-size: 12.5px;
	line-height: 1.45;
	opacity: 0.75;
}

.nexio-pass-picker .nexio-buy-all__button {
	align-self: flex-start;
}

.nexio-pass-picker--lifetime .nexio-buy-all__button {
	text-decoration: none;
}

/* Plans popup -------------------------------------------------------------
 * Only the Buy button shows on the page; clicking it opens the plans in
 * a dialog (moved to <body> by the script). The dialog's colours follow
 * the site's Elementor primary colour when there is one. */

.nexio-pass-picker.nexio-pass-picker--popup {
	display: inline-flex;
	flex-direction: column;
	width: auto;
	max-width: none;
}

.nexio-pass-picker.nexio-pass-picker--popup.nexio-buy-all--full-width {
	width: 100%;
}

html.nexio-plans-modal-open {
	overflow: hidden;
}

.nexio-plans-modal {
	--nexio-plans-accent: var(--e-global-color-primary, #4338ca);
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.nexio-plans-modal[hidden] {
	display: none;
}

.nexio-plans-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 17, 35, 0.55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.nexio-plans-modal .nexio-plans-modal__dialog {
	position: relative;
	display: block;
	box-sizing: border-box;
	width: min(760px, 100%);
	max-width: none;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 36px 32px 28px;
	border-radius: 24px;
	background: #ffffff;
	color: #111827;
	box-shadow: 0 30px 80px -20px rgba(15, 17, 35, 0.45), 0 0 0 1px rgba(15, 17, 35, 0.04);
	opacity: 0;
	transform: translateY(24px) scale(0.97);
	transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nexio-plans-modal.is-open .nexio-plans-modal__backdrop {
	opacity: 1;
}

.nexio-plans-modal.is-open .nexio-plans-modal__dialog {
	opacity: 1;
	transform: none;
}

.nexio-plans-modal .nexio-plans-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #f3f4f6;
	color: #374151;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.nexio-plans-modal .nexio-plans-modal__close:hover {
	background: #e5e7eb;
	transform: rotate(90deg);
}

.nexio-plans-modal .nexio-plans-modal__eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nexio-plans-accent);
}

.nexio-plans-modal .nexio-plans-modal__title {
	margin: 0 48px 22px 0;
	padding: 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	color: #111827;
}

.nexio-plans-modal .nexio-pass-picker__status {
	margin: -8px 0 18px;
	color: #4b5563;
}

.nexio-plans-modal .nexio-pass-picker__options {
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 14px;
	margin-bottom: 22px;
}

.nexio-plans-modal .nexio-pass-option__body {
	position: relative;
	gap: 6px;
	padding: 20px 18px 18px;
	border: 1.5px solid #e5e7eb;
	border-radius: 16px;
	background: #ffffff;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

/* Radio dot, top right. */
.nexio-plans-modal .nexio-pass-option__body::after {
	content: "";
	position: absolute;
	top: 18px;
	right: 18px;
	width: 20px;
	height: 20px;
	box-sizing: border-box;
	border: 2px solid #d1d5db;
	border-radius: 999px;
	background: #ffffff;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.nexio-plans-modal .nexio-pass-option:hover .nexio-pass-option__body {
	border-color: #c7cad1;
	transform: translateY(-2px);
}

/* Selected plan: a 2px accent outline (drawn with a shadow so the card
   does not shift), a tinted fill, accent title and a filled tick. */
.nexio-plans-modal .nexio-pass-option input:checked + .nexio-pass-option__body {
	border-color: var(--nexio-plans-accent);
	background: color-mix(in srgb, var(--nexio-plans-accent) 7%, #ffffff);
	box-shadow: 0 0 0 1px var(--nexio-plans-accent), 0 12px 28px -14px color-mix(in srgb, var(--nexio-plans-accent) 60%, transparent);
	transform: translateY(-2px);
}

.nexio-plans-modal .nexio-pass-option input:checked + .nexio-pass-option__body::after {
	border-color: var(--nexio-plans-accent);
	background: var(--nexio-plans-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.nexio-plans-modal .nexio-pass-option input:checked + .nexio-pass-option__body .nexio-pass-option__title {
	color: var(--nexio-plans-accent);
}

.nexio-plans-modal .nexio-pass-option input:focus-visible + .nexio-pass-option__body {
	outline: 2px solid var(--nexio-plans-accent);
	outline-offset: 3px;
}

.nexio-plans-modal .nexio-pass-option__title {
	padding-right: 26px;
	color: #6b7280;
	opacity: 1;
}

.nexio-plans-modal .nexio-pass-option__price {
	font-size: 28px;
	color: #111827;
}

.nexio-plans-modal .nexio-pass-option__meta {
	color: #6b7280;
	opacity: 1;
}

/* Cards rise in one after another as the dialog opens. */
.nexio-plans-modal.is-open .nexio-pass-option {
	animation: nexio-plan-in 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.nexio-plans-modal.is-open .nexio-pass-option:nth-child(2) { animation-delay: 0.06s; }
.nexio-plans-modal.is-open .nexio-pass-option:nth-child(3) { animation-delay: 0.12s; }

@keyframes nexio-plan-in {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: none; }
}

.nexio-plans-modal .nexio-plans-modal__dialog .nexio-plans-modal__confirm {
	display: flex;
	width: 100%;
	gap: 10px;
	padding: 15px 24px;
	border: 0;
	border-radius: 14px;
	background: var(--nexio-plans-accent);
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
	box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--nexio-plans-accent) 70%, transparent);
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.nexio-plans-modal .nexio-plans-modal__dialog .nexio-plans-modal__confirm:hover:not(:disabled):not(.nexio-buy-all__button--loading) {
	background: var(--nexio-plans-accent);
	color: #ffffff;
	filter: brightness(1.08);
	transform: translateY(-1px);
	box-shadow: 0 14px 28px -10px color-mix(in srgb, var(--nexio-plans-accent) 75%, transparent);
}

.nexio-plans-modal .nexio-plans-modal__confirm .nexio-buy-all__button-icon {
	transition: transform 0.18s ease;
}

.nexio-plans-modal .nexio-plans-modal__confirm:hover .nexio-buy-all__button-icon {
	transform: translateX(3px);
}

.nexio-plans-modal .nexio-buy-all__message:not(:empty) {
	margin-top: 12px;
	text-align: center;
}

/* Phones: a bottom sheet. */
@media (max-width: 600px) {
	.nexio-plans-modal {
		align-items: flex-end;
		padding: 0;
	}

	.nexio-plans-modal .nexio-plans-modal__dialog {
		width: 100%;
		max-height: 92vh;
		padding: 28px 20px 22px;
		border-radius: 24px 24px 0 0;
		transform: translateY(100%);
	}

	.nexio-plans-modal .nexio-plans-modal__title {
		font-size: 22px;
	}

	.nexio-plans-modal .nexio-pass-picker__options {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nexio-plans-modal__backdrop,
	.nexio-plans-modal .nexio-plans-modal__dialog,
	.nexio-plans-modal .nexio-pass-option__body {
		transition: none;
	}

	.nexio-plans-modal.is-open .nexio-pass-option {
		animation: none;
	}
}

/* Pass panel ------------------------------------------------------------- */

.nexio-pass-panel {
	margin: 0 0 24px;
	padding: 20px 22px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
}

.nexio-pass-panel__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 8px;
}

.nexio-pass-panel__title {
	margin: 0;
	font-size: 18px;
}

.nexio-pass-panel__badge {
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	color: #067647;
	background: #ecfdf3;
}

.nexio-pass-panel--ended .nexio-pass-panel__badge {
	color: #b54708;
	background: #fffaeb;
}

.nexio-pass-panel__usage {
	margin: 0 0 14px;
	font-size: 14px;
}

.nexio-pass-panel__hint {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	opacity: 0.7;
}

/* Search: one rounded field with the submit inside it — the same shape
   as the Downloads search above it on the account page. */
.nexio-pass-panel__search {
	display: block;
	margin: 14px 0 12px;
}

.nexio-pass-panel__search-field {
	position: relative;
	display: block;
}

.nexio-pass-panel .nexio-pass-panel__search input[type="search"] {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 50px;
	margin: 0;
	padding: 0 56px 0 16px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: 15px;
	box-shadow: none;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nexio-pass-panel .nexio-pass-panel__search input[type="search"]:focus {
	border-color: #1b1b1f;
	box-shadow: 0 0 0 3px rgba(27, 27, 31, 0.08);
}

.nexio-pass-panel .nexio-pass-panel__search input[type="search"]::-webkit-search-cancel-button {
	margin-right: 4px;
}

.nexio-pass-panel .nexio-pass-panel__search .nexio-pass-panel__search-submit {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 9px;
	background: #1b1b1f;
	color: #fff;
	cursor: pointer;
	box-shadow: none;
	transition: opacity 0.15s ease;
}

.nexio-pass-panel .nexio-pass-panel__search .nexio-pass-panel__search-submit:hover {
	opacity: 0.88;
}

.nexio-pass-panel__search-submit svg {
	width: 17px;
	height: 17px;
}

.nexio-pass-panel__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nexio-pass-item {
	display: grid;
	grid-template-columns: 48px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.nexio-pass-item__thumb img {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 6px;
}

.nexio-pass-item__name {
	font-weight: 600;
	text-decoration: none;
}

.nexio-pass-item__files {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
}

.nexio-pass-item__file {
	padding: 6px 12px;
	border: 1px solid currentColor;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.nexio-pass-item__file.is-downloaded::after {
	content: " \2713";
}

.nexio-pass-panel__pages {
	margin-top: 12px;
}

.nexio-pass-panel__pages .page-numbers {
	display: inline-block;
	padding: 4px 9px;
	text-decoration: none;
}

.nexio-pass-panel__pages .page-numbers.current {
	font-weight: 700;
}

.nexio-pass-panel__renew {
	margin-top: 16px;
}

.nexio-pass-panel__renew > summary {
	cursor: pointer;
	font-weight: 600;
	margin-bottom: 12px;
}

@media (max-width: 600px) {
	.nexio-pass-item {
		grid-template-columns: 40px 1fr;
	}

	.nexio-pass-item__files {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}
}

/* =============================================================
 * Pricing Plans widget
 *
 * Grid and card defaults sit inside :where() (one class of weight);
 * text defaults use two classes so they beat theme/kit heading and
 * paragraph rules (e.g. `.elementor-kit-6 h3`, 0,1,1). The widget's
 * style controls are written one class stronger still
 * ({{WRAPPER}} .nexio-plans .…), so they win whichever stylesheet
 * loads last. Button colours are custom properties set by the widget,
 * applied here at 0,3,0 / 0,5,0 — above the Buy All base button
 * (0,2,1), its tinted hover (0,4,0) and theme button skins.
 * ========================================================== */

.nexio-plans {
	--nexio-plan-btn-color: #ffffff;
	--nexio-plan-btn-bg: #4338ca;
	--nexio-plan-btn-border: #4338ca;
	--nexio-plan-btn-color-hover: #ffffff;
	--nexio-plan-btn-bg-hover: #3730a3;
	--nexio-plan-btn-border-hover: #3730a3;
	width: 100%;
}

:where(.nexio-plans) .nexio-plans__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	align-items: start;
}

@media (max-width: 1024px) {
	:where(.nexio-plans) .nexio-plans__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	:where(.nexio-plans) .nexio-plans__grid { grid-template-columns: minmax(0, 1fr); }
}

.nexio-plans .nexio-plans__status {
	margin: 0 0 16px;
	font-size: 14px;
	color: #4b5563;
}

/* The card carries .nexio-buy-all so the shared button script finds
   its message box; undo that wrapper's inline-flex here. */
.nexio-plans .nexio-plan-card.nexio-buy-all {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

:where(.nexio-plans) .nexio-plan-card {
	position: relative;
	box-sizing: border-box;
	padding: 28px;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 20px;
	color: #111827;
	text-align: left;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

:where(.nexio-plans .nexio-plan-card).is-highlighted {
	background-color: #f9fafb;
}

.nexio-plans .nexio-plan-card__badge {
	position: absolute;
	top: 16px;
	right: 16px;
	padding: 4px 10px;
	border-radius: 999px;
	background-color: #4338ca;
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.nexio-plans .nexio-plan-card__title {
	margin: 0 0 16px;
	padding: 0;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
	color: #6b7280;
}

.nexio-plans .nexio-plan-card__divider {
	width: 100%;
	height: 1px;
	margin: 0 0 20px;
	align-self: var(--nexio-plan-justify, flex-start);
	background-color: #e5e7eb;
}

.nexio-plans .nexio-plan-card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: var(--nexio-plan-justify, flex-start);
	margin: 0 0 16px;
	line-height: 1.1;
}

.nexio-plans .nexio-plan-card__amount {
	font-size: 40px;
	font-weight: 700;
	color: #111827;
}

.nexio-plans .nexio-plan-card__amount .woocommerce-Price-amount,
.nexio-plans .nexio-plan-card__amount bdi {
	font: inherit;
	color: inherit;
}

.nexio-plans .nexio-plan-card__suffix {
	margin-left: 4px;
	font-size: 16px;
	font-weight: 500;
	color: #6b7280;
}

.nexio-plans .nexio-plan-card__description {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.6;
	color: #6b7280;
}

.nexio-plans .nexio-plan-card__features {
	display: flex;
	flex-direction: column;
	row-gap: 12px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
	font-size: 15px;
	color: #374151;
}

.nexio-plans .nexio-plan-card__features li {
	display: flex;
	align-items: center;
	justify-content: var(--nexio-plan-justify, flex-start);
	gap: 10px;
	margin: 0;
	padding: 0;
}

.nexio-plans .nexio-plan-card__feature-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	line-height: 1;
	color: #111827;
}

.nexio-plans .nexio-plan-card__feature-icon svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.nexio-plans .nexio-plan-card .nexio-plan-card__button {
	margin-top: auto;
	box-sizing: border-box;
	max-width: 100%;
	padding: 14px 24px;
	border: 1px solid var(--nexio-plan-btn-border);
	border-radius: 999px;
	background-color: var(--nexio-plan-btn-bg);
	color: var(--nexio-plan-btn-color);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
}

.nexio-plans .nexio-plan-card .nexio-plan-card__button:hover:not(:disabled):not(.nexio-buy-all__button--loading),
.nexio-plans .nexio-plan-card .nexio-plan-card__button:focus-visible {
	background-color: var(--nexio-plan-btn-bg-hover);
	border-color: var(--nexio-plan-btn-border-hover);
	color: var(--nexio-plan-btn-color-hover);
}

.nexio-plans .nexio-plan-card .nexio-plan-card__button .nexio-buy-all__button-icon svg {
	fill: currentColor;
}

.nexio-plans .nexio-plan-card .nexio-buy-all__message:not(:empty) {
	margin-top: 10px;
}
