/* Members Area and Pricing Plans: comparison table, paywall, plan
 * confirmation, account tabs (tickets, subscriptions, settings, profile
 * photo) and Follow. Colours, radii and spacing are the storefront design
 * tokens (wixhc-tokens.css). Mobile first: everything fits 360 px without
 * sideways scrolling. */

/* ---------- Comparison table ---------- */
.wixhc-compare { width: 100%; border-collapse: collapse; margin: 1em 0; font-variant-numeric: tabular-nums; }
.wixhc-compare caption { text-align: start; }
.wixhc-compare th,
.wixhc-compare td { padding: 0.75em 0.9em; border-bottom: 1px solid var(--wixhc-border); text-align: center; vertical-align: middle; }
.wixhc-compare tbody th { text-align: start; font-weight: 500; }
.wixhc-compare thead th { vertical-align: bottom; }
.wixhc-compare thead th.wixhc-compare__plan { position: relative; padding-top: 2.75em; padding-bottom: 1em; }
.wixhc-compare__name { display: block; font-weight: 700; font-size: 1.05em; line-height: 1.3; text-wrap: balance; }
.wixhc-compare__price { display: block; margin-top: 0.3em; font-size: 1.15em; font-weight: 600; font-variant-numeric: tabular-nums; }
.wixhc-compare .is-primary { background: var(--wixhc-surface-alt); }
.wixhc-compare thead .is-primary { border-radius: var(--wixhc-radius-l) var(--wixhc-radius-l) 0 0; }
.wixhc-compare .wixhc-plan__ribbon { position: absolute; top: 0.9em; left: 50%; transform: translateX(-50%); white-space: nowrap; }
/* The header already names each plan's price: the "Price" row (always the
   first) repeats it, so it only shows in the stacked phone layout, which has
   no header. */
@media (min-width: 601px) {
	.wixhc-compare tbody tr:first-child { display: none; }
	.wixhc-compare tfoot td { padding-top: 1em; }
	.wixhc-compare tfoot .wixhc-card__btn { width: 100%; max-width: 220px; padding-inline: var(--wixhc-space-3); }
	.wixhc-compare tfoot td.is-primary,
	.wixhc-compare tfoot td:has(.is-primary) { background: var(--wixhc-surface-alt); border-radius: 0 0 var(--wixhc-radius-l) var(--wixhc-radius-l); }
}
.wixhc-compare__mark { font-weight: 700; }
.wixhc-compare__mark.is-yes { color: var(--wixhc-success); }
.wixhc-compare__mark.is-no { color: var(--wixhc-muted); }
.wixhc-compare tfoot td { border-bottom: 0; }
.wixhc-compare .wixhc-card__btn { background: var(--wixhc-surface); border-color: var(--wixhc-border-strong); color: var(--wixhc-ink); }
.wixhc-compare .wixhc-card__btn.is-primary,
.wixhc-compare .wixhc-card__btn.is-primary:hover { background: var(--wixhc-brand); border-color: var(--wixhc-brand); color: var(--wixhc-on-brand); }
@media (max-width: 600px) {
	/* Stack: each plan's cells read as "Plan: value" lines. */
	.wixhc-compare,
	.wixhc-compare tbody,
	.wixhc-compare tfoot,
	.wixhc-compare tr { display: block; width: 100%; }
	.wixhc-compare thead { display: none; }
	.wixhc-compare tbody tr { padding: 0.5em 0; border-bottom: 1px solid var(--wixhc-border); }
	.wixhc-compare tbody th { display: block; border: 0; padding: 0.25em 0; font-weight: 700; }
	.wixhc-compare td { display: flex; justify-content: space-between; gap: 1em; border: 0; padding: 0.2em 0; text-align: end; }
	.wixhc-compare td::before { content: attr(data-label); font-weight: 500; text-align: start; }
	.wixhc-compare tfoot td { justify-content: space-between; align-items: center; padding: 0.4em 0; }
	.wixhc-compare tfoot .wixhc-card__btn { flex: 0 0 11em; max-width: 60%; }
}

/* ---------- Paywall ---------- */
.wixhc-paywall { margin: 1.5em 0; }
.wixhc-paywall__teaser { position: relative; max-height: 9em; overflow: hidden; }
.wixhc-paywall__teaser::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 3em;
	background: linear-gradient(to bottom, transparent, var(--wixhc-paywall-bg, var(--wixhc-surface)));
}
.wixhc-paywall__box {
	padding: var(--wixhc-space-5);
	border: 1px solid var(--wixhc-border);
	border-radius: var(--wixhc-radius-l);
	background: var(--wixhc-surface-alt);
	text-align: center;
}
.wixhc-paywall__icon { display: block; margin: 0 auto 0.4em; color: var(--wixhc-muted); }
.wixhc-paywall__title { margin: 0 0 0.4em; font-weight: 600; }
.wixhc-paywall__plans { margin: 0 0 0.75em; color: var(--wixhc-muted); }
.wixhc-paywall__status { margin: 0 0 0.75em; font-size: 0.95em; }
.wixhc-paywall [hidden] { display: none !important; }

/* ---------- Plan confirmation and inline plan messages ---------- */
.wixhc-plan-confirm {
	margin: 1em 0;
	padding: var(--wixhc-space-4) var(--wixhc-space-5);
	border: 1px solid var(--wixhc-border);
	border-radius: var(--wixhc-radius-l);
	background: var(--wixhc-surface-alt);
}
.wixhc-plan-confirm:focus { outline: 2px solid var(--wixhc-focus); outline-offset: 2px; }
.wixhc-plan-confirm.is-success { border-color: var(--wixhc-success); background: var(--wixhc-success-soft); }
.wixhc-plan-confirm.is-error { border-color: var(--wixhc-danger); background: var(--wixhc-danger-soft); }
.wixhc-plan-confirm__title { margin: 0 0 0.4em; font-size: 1.2em; }
.wixhc-plan-confirm__actions { display: flex; flex-wrap: wrap; gap: 0.5em; margin: 0.75em 0 0; }
.wixhc-plan-msg { margin-top: 0.6em; font-size: 0.95em; }
.wixhc-plan-msg.is-error { color: var(--wixhc-danger); }
/* The sign-in box a plan button opens for a signed-out visitor. */
.wixhc-plan-signin { margin-top: 0.75em; text-align: start; }
.wixhc-plan-signin__lead { margin: 0 0 0.5em; font-size: 0.95em; }
.wixhc-plan-signin .wixhc-login { max-width: 100%; }
.wixhc-plan-msg.is-success { color: var(--wixhc-success); }
.wixhc-plan-benefits { margin: 0.5em 0; font-size: 0.95em; }

/* ---------- Account: tabs on small screens ---------- */
@media (max-width: 600px) {
	.wixhc-account__head { flex-wrap: wrap; }
	.wixhc-root .wixhc-account__tabs { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
	.wixhc-root .wixhc-account__tabs [role=tab] { flex: 0 0 auto; scroll-snap-align: start; }
	.wixhc-profile { grid-template-columns: minmax(0, 1fr); }
	.wixhc-profile__field--wide:is(fieldset) { grid-template-columns: minmax(0, 1fr); }
}
.wixhc-account__panel:focus { outline: none; }

/* ---------- Account: subscriptions and tickets ---------- */
.wixhc-subs__title { margin: 1.25em 0 0.5em; font-size: 1em; }
.wixhc-subs__act { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em; }
.wixhc-subs__confirm { flex-basis: 100%; margin: 0; font-size: 0.95em; }
.wixhc-subs--past .wixhc-subs__item { color: var(--wixhc-muted); }
.wixhc-tickets__main { min-width: 0; }
.wixhc-tickets__cal { display: flex; flex-wrap: wrap; gap: 0.5em; margin: 0.4em 0 0; font-size: 0.9em; }
.wixhc-tickets__cal span { color: var(--wixhc-muted); }

/* ---------- Account: profile photo, about, privacy ---------- */
.wixhc-profile__photo { grid-column: 1 / -1; display: flex; align-items: center; gap: 1em; }
.wixhc-profile__photo-btn { cursor: pointer; text-decoration: underline; text-underline-offset: 0.15em; }
.wixhc-profile__photo-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.wixhc-profile__photo-btn:focus-within { outline: 2px solid var(--wixhc-focus); outline-offset: 2px; }
.wixhc-profile__field textarea { width: 100%; box-sizing: border-box; }
.wixhc-profile__privacy label { display: flex; gap: 0.5em; align-items: flex-start; }
.wixhc-profile__hint { grid-column: 1 / -1; margin: 0; font-size: 0.85em; color: var(--wixhc-muted); }

/* ---------- Account: settings ---------- */
.wixhc-settings section { margin: 0 0 1.5em; }
.wixhc-settings__password { display: grid; gap: 0.5em; max-width: 26em; }
.wixhc-settings__password label { display: grid; gap: 0.25em; }
.wixhc-settings__password button { justify-self: start; }

/* ---------- Public profile: Follow ---------- */
.wixhc-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75em; margin-top: 0.5em; font-size: 0.95em; }
.wixhc-follow__counts { color: var(--wixhc-muted); }
.wixhc-follow [hidden] { display: none !important; }
.wixhc-root .wixhc-follow__btn[aria-pressed="true"] { background: var(--wixhc-surface-alt); border-color: currentColor; }

/* A lone action in a paywall or access box (usually "Sign in") is the box's
   call to action: filled, like every other primary button. With "See plans"
   beside it, "See plans" leads and Sign in stays outlined. */
.wixhc-paywall__box { box-sizing: border-box; }
.wixhc-access__actions > .wixhc-access__btn:only-child,
.wixhc-paywall .wixhc-access__btn:only-child {
	background: var(--wixhc-brand);
	border-color: var(--wixhc-brand);
	color: var(--wixhc-on-brand);
}
.wixhc-access__actions > .wixhc-access__btn:only-child:hover,
.wixhc-paywall .wixhc-access__btn:only-child:hover { background: var(--wixhc-brand-hover); border-color: var(--wixhc-brand-hover); }
