:root {
	--stw-club-ink: var(--wp--preset--color--foreground, #000000);
	--stw-club-muted: color-mix(in srgb, var(--stw-club-ink) 62%, transparent);
	--stw-club-line: var(--wp--preset--color--travertine, #e1ddc8);
	--stw-club-paper: var(--wp--preset--color--background, #faf9f5);
	--stw-club-surface: var(--wp--preset--color--white, #ffffff);
	--stw-club-gold: var(--wp--preset--color--primary, #ad9841);
	--stw-club-gold-soft: #c9b978;
	--stw-club-cream: #f3efe4;
	--stw-club-green: var(--wp--preset--color--fruit-salad, #43a442);
	--stw-club-red: #8a1f14;
	--stw-club-font: var(--wp--preset--font-family--lora, "Lora", serif);
}

.stw-club-modal-open {
	overflow: hidden;
}

.stw-club-modal[aria-hidden="true"] {
	display: none;
}

.stw-club-modal__backdrop {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(24, 20, 17, 0.56);
}

.stw-club-modal__dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 99999;
	width: min(960px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	overflow: auto;
	transform: translate(-50%, -50%);
	background: var(--stw-club-surface);
	color: var(--stw-club-ink);
	border: 1px solid var(--stw-club-line);
	border-radius: 4px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
	padding: 28px;
	font-family: var(--stw-club-font);
}

.stw-club-modal__utility {
	display: flex;
	align-items: center;
	min-height: 34px;
	margin: -8px 0 8px;
}

.stw-club-modal__close {
	appearance: none;
	width: 34px;
	height: 34px;
	margin-left: -14px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--stw-club-ink);
	font-family: inherit;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.stw-club-modal__close:focus-visible {
	outline: 2px solid var(--stw-club-gold);
	outline-offset: 2px;
}

.stw-club-modal__header {
	margin-bottom: 18px;
}

.stw-club-modal__header h2,
.stw-checkout-panel h3 {
	margin: 0;
	font-size: 24px;
	line-height: 1.22;
	color: var(--stw-club-ink);
}

.stw-club-modal__header p {
	max-width: 760px;
	margin: 8px 0 0;
	color: var(--stw-club-muted);
	font-size: 16px;
	line-height: 1.5;
}

.stw-club-modal__grid,
.stw-checkout-options__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 14px;
}

.stw-role-card {
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr;
	gap: 12px;
	width: 100%;
	min-height: 100%;
	padding: 0;
	border: 1px solid color-mix(in srgb, var(--stw-club-gold) 32%, transparent);
	border-radius: 4px;
	background: var(--stw-club-surface);
	color: var(--stw-club-ink);
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.stw-role-card:not(:disabled):hover {
	border-color: color-mix(in srgb, var(--stw-club-gold) 72%, transparent);
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(70, 45, 20, 0.13);
}

.stw-role-card:focus-visible {
	border-color: var(--stw-club-gold);
	outline: 2px solid var(--stw-club-gold);
	outline-offset: 2px;
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(70, 45, 20, 0.13);
}

.stw-role-card:disabled {
	cursor: wait;
}

.stw-role-card:disabled:not(.is-loading) {
	opacity: 0.58;
}

.stw-role-card__loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px;
	background: color-mix(in srgb, var(--stw-club-surface) 92%, transparent);
	color: var(--stw-club-ink);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
}

.stw-role-card__spinner {
	width: 20px;
	height: 20px;
	border: 2px solid color-mix(in srgb, var(--stw-club-gold) 28%, transparent);
	border-top-color: var(--stw-club-gold);
	border-radius: 50%;
	animation: stw-club-spin 0.7s linear infinite;
}

@keyframes stw-club-spin {
	to {
		transform: rotate(360deg);
	}
}

.stw-role-card__image {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--stw-club-paper);
}

.stw-role-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.stw-role-card__image-fallback {
	width: 100%;
	height: 100%;
	background:
		linear-gradient(
			135deg,
			color-mix(in srgb, var(--stw-club-gold) 16%, transparent),
			color-mix(in srgb, var(--stw-club-red) 8%, transparent)
		),
		var(--stw-club-paper);
}

.stw-role-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 0 16px 16px;
}

.stw-role-card__name {
	font-size: 18px;
	line-height: 1.2;
	font-weight: 600;
}

.stw-role-card__badge {
	align-self: flex-start;
	padding: 3px 8px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--stw-club-green) 10%, transparent);
	color: var(--stw-club-green);
	font-size: 12px;
	font-weight: 600;
}

.stw-role-card__current {
	align-self: flex-start;
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--stw-club-gold-soft);
	color: #000000;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.stw-role-card__description,
.stw-path-card__copy,
.stw-path-card__muted,
.stw-checkout-panel p,
.stw-checkout-panel li,
.stw-tracker__intro,
.stw-tracker__meta,
.stw-mini-cart-prompt p {
	color: var(--stw-club-muted);
	font-size: 14px;
	line-height: 1.45;
}

.stw-club-modal__choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.stw-path-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 180px;
	padding: 18px;
	border: 1px solid color-mix(in srgb, var(--stw-club-gold) 32%, transparent);
	border-radius: 4px;
	background: var(--stw-club-surface);
	color: var(--stw-club-ink);
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.stw-path-card:hover:not(:disabled) {
	border-color: color-mix(in srgb, var(--stw-club-gold) 72%, transparent);
	background: var(--stw-club-paper);
}

.stw-path-card:focus-visible {
	border-color: var(--stw-club-gold);
	background: var(--stw-club-paper);
	outline: 2px solid var(--stw-club-gold);
	outline-offset: 2px;
}

.stw-path-card:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.stw-path-card__title {
	font-size: 18px;
	font-weight: 600;
}

.stw-bundle-list {
	display: grid;
	gap: 8px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.stw-bundle-list li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--stw-club-muted);
}

.stw-bundle-list img {
	width: 34px;
	height: 34px;
	border-radius: 4px;
	object-fit: cover;
}

.stw-link-button,
.stw-tracker__cancel {
	border: 0;
	background: transparent;
	color: var(--stw-club-gold);
	font-family: inherit;
	padding: 0;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.stw-link-button:focus-visible,
.stw-tracker__cancel:focus-visible {
	outline: 2px solid var(--stw-club-gold);
	outline-offset: 2px;
}

.stw-link-button:disabled {
	cursor: not-allowed;
	opacity: 0.58;
}

.stw-club-modal__back {
	appearance: none;
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--stw-club-gold);
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	gap: 0.42rem;
	letter-spacing: 0.08em;
	line-height: 1.2;
	left: 0;
	position: relative;
	text-decoration: none;
	text-transform: uppercase;
	transform: translateX(0);
	transition: color 0.15s ease, left 0.15s ease, transform 0.15s ease;
	cursor: pointer;
}

.stw-club-modal__back:hover,
.stw-club-modal__back:focus-visible {
	color: #8b772e;
	left: -0.25rem;
	text-decoration: none;
	transform: translateX(-0.25rem);
}

.stw-club-modal__back:focus-visible {
	outline: 2px solid var(--stw-club-gold);
	outline-offset: 2px;
}

.stw-club-modal__back i,
.stw-club-modal__back svg {
	font-size: 0.86em;
	line-height: 1;
}

.stw-tracker {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9990;
	width: min(340px, calc(100vw - 36px));
	padding: 16px;
	border: 1px solid var(--stw-club-line);
	border-radius: 4px;
	background: var(--stw-club-surface);
	color: var(--stw-club-ink);
	box-shadow: 0 14px 46px rgba(0, 0, 0, 0.16);
	font-family: var(--stw-club-font);
}

.stw-tracker__title {
	font-weight: 600;
	margin-bottom: 6px;
}

.stw-tracker__intro {
	margin: 0;
}

.stw-tracker__bar {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	gap: 6px;
	margin: 16px 0;
}

.stw-tracker__segment {
	display: block;
	height: 8px;
	border-radius: 999px;
	background: var(--stw-club-line);
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

.stw-tracker__segment.is-filled {
	background: var(--stw-club-green);
	box-shadow: 0 0 10px color-mix(in srgb, var(--stw-club-green) 50%, transparent);
}

.stw-tracker__checkout,
.stw-checkout-panel__primary,
.stw-mini-cart-prompt > a,
.stw-mini-cart-prompt__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 3rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--stw-club-gold);
	border-radius: 2px;
	font-family: var(--stw-club-font);
	font-size: var(--wp--preset--font-size--small, 0.95rem);
	font-weight: 600;
	letter-spacing: 0.03em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.stw-tracker__checkout {
	margin-top: 0;
	background: var(--stw-club-gold);
	color: var(--stw-club-surface);
}

.stw-checkout-panel__primary,
.stw-mini-cart-prompt > a,
.stw-mini-cart-prompt__button {
	background: transparent;
	color: var(--stw-club-gold);
}

.stw-checkout-panel__primary {
	margin-top: 12px;
}

.stw-mini-cart-prompt > a,
.stw-mini-cart-prompt__button {
	width: 100%;
}

.stw-tracker__checkout:hover,
.stw-tracker__checkout:focus {
	background: transparent;
	border-color: var(--stw-club-gold);
	color: var(--stw-club-gold);
	text-decoration: none;
}

.stw-checkout-panel__primary:hover,
.stw-checkout-panel__primary:focus,
.stw-mini-cart-prompt > a:hover,
.stw-mini-cart-prompt > a:focus,
.stw-mini-cart-prompt__button:hover,
.stw-mini-cart-prompt__button:focus {
	background: color-mix(in srgb, var(--stw-club-gold) 8%, transparent);
	border-color: var(--stw-club-gold);
	color: var(--stw-club-gold);
	text-decoration: none;
}

.stw-tracker__checkout:focus-visible,
.stw-checkout-panel__primary:focus-visible,
.stw-mini-cart-prompt > a:focus-visible,
.stw-mini-cart-prompt__button:focus-visible {
	outline: 2px solid var(--stw-club-gold);
	outline-offset: 2px;
}

.stw-checkout-panel__primary:disabled,
.stw-mini-cart-prompt__button:disabled {
	cursor: not-allowed;
	opacity: 0.65;
}

.stw-tracker__cancel {
	display: block;
	margin-top: 10px;
	font-size: 13px;
}

.stw-mini-cart-prompt {
	margin: 0 0 12px;
	padding: 12px;
	border: 1px solid color-mix(in srgb, var(--stw-club-gold) 42%, transparent);
	border-radius: 4px;
	background: var(--stw-club-paper);
	font-family: var(--stw-club-font);
}

.stw-mini-cart-prompt__image {
	display: block;
	width: auto;
	height: auto;
	max-width: 72px;
	max-height: 72px;
	margin: 0 auto 10px;
	object-fit: contain;
}

.stw-mini-cart-prompt__heading {
	margin: 0 0 6px;
	color: var(--stw-club-ink);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
}

.stw-mini-cart-prompt__body {
	margin: 0 0 8px;
	white-space: pre-line;
}

.stw-checkout-panel {
	margin: 0 0 28px;
	padding: 48px 52px;
	border: 0;
	border-radius: 0;
	background: #000000;
	color: var(--stw-club-cream);
	font-family: var(--stw-club-font);
	overflow: hidden;
	position: relative;
}

.stw-checkout-panel:empty {
	display: none;
}

.stw-checkout-panel.stw-hero::before,
.stw-checkout-panel.stw-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.stw-checkout-panel.stw-hero::before {
	background-image: var(--stw-hero-graphic);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0.5;
}

.stw-checkout-panel.stw-hero::after {
	background: rgba(0, 0, 0, 0.18);
}

.stw-checkout-panel > .stw-hero__content {
	position: relative;
	z-index: 1;
}

.stw-checkout-panel.stw-hero h3,
.stw-checkout-panel.stw-hero .stw-hero__title {
	margin: 0 0 12px;
	color: var(--stw-club-cream);
	font-family: var(--stw-club-font);
	font-size: clamp(27px, 3.6vw, 40px);
	font-weight: 500;
	letter-spacing: -0.005em;
	line-height: 1.06;
	text-wrap: pretty;
}

.stw-checkout-panel.stw-hero .stw-hero__subtitle {
	margin: -2px 0 12px;
	color: var(--stw-club-gold-soft);
	font-family: var(--stw-club-font);
	font-size: 20px;
	line-height: 1.25;
}

.stw-checkout-panel.stw-hero .stw-hero__text,
.stw-checkout-panel.stw-hero .stw-checkout-panel__offer-copy,
.stw-checkout-panel.stw-hero .stw-checkout-options__intro,
.stw-checkout-panel.stw-hero .stw-club-terms {
	color: rgba(243, 239, 228, 0.78);
}

.stw-checkout-panel__offer-copy,
.stw-checkout-options__intro {
	white-space: pre-line;
}

.stw-checkout-panel__invitation-image {
	display: block;
	width: auto;
	height: auto;
	max-width: 72px;
	max-height: 72px;
	margin: 0 auto 20px;
	object-fit: contain;
}

.stw-checkout-panel__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 14px;
}

.stw-checkout-panel__header > div:first-child {
	min-width: 0;
}

.stw-checkout-panel__actions,
.stw-checkout-panel__offer-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.stw-checkout-panel__actions {
	flex: 0 0 auto;
	justify-content: flex-end;
}

.stw-checkout-panel__offer-actions {
	margin-top: 18px;
}

.stw-checkout-panel.stw-hero .stw-link-button {
	color: var(--stw-club-gold-soft);
	font-size: 13px;
	white-space: nowrap;
}

.stw-checkout-panel__benefits {
	margin: 18px 0 20px;
	padding: 18px 0 18px 20px;
	border-top: 1px solid rgba(243, 239, 228, 0.16);
	border-bottom: 1px solid rgba(243, 239, 228, 0.16);
}

.stw-checkout-panel__benefits li {
	color: rgba(243, 239, 228, 0.78);
	font-size: 15px;
	line-height: 1.5;
}

.stw-checkout-panel__warning {
	padding: 10px 12px;
	border-left: 3px solid var(--stw-club-red);
	background: color-mix(in srgb, var(--stw-club-red) 8%, transparent);
}

.stw-checkout-panel.stw-hero .stw-checkout-panel__warning {
	background: rgba(138, 31, 20, 0.24);
	color: var(--stw-club-cream);
}

.stw-checkout-options {
	display: grid;
	gap: 22px;
	margin-top: 24px;
	padding-top: 22px;
	border-top: 1px solid rgba(243, 239, 228, 0.16);
}

.stw-checkout-options__group {
	min-width: 0;
}

.stw-checkout-options__title {
	margin: 0 0 10px;
	color: var(--stw-club-cream);
	font-size: 18px;
	line-height: 1.3;
	font-weight: 600;
}

.stw-checkout-options__intro {
	max-width: 68ch;
	margin: -4px 0 14px;
	font-size: 14px;
	line-height: 1.5;
}

.stw-checkout-options__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stw-role-card--checkout {
	grid-template-columns: 1fr;
	grid-template-rows: auto;
	align-items: stretch;
}

.stw-role-card--checkout .stw-role-card__image {
	display: none;
}

.stw-role-card--checkout .stw-role-card__body {
	padding: 16px;
}

.stw-checkout-panel.stw-hero .stw-role-card--checkout {
	border-color: rgba(201, 185, 120, 0.38);
	background: rgba(0, 0, 0, 0.52);
	color: var(--stw-club-cream);
}

.stw-checkout-panel.stw-hero .stw-role-card--checkout:not(:disabled):hover,
.stw-checkout-panel.stw-hero .stw-role-card--checkout:focus-visible {
	border-color: var(--stw-club-gold-soft);
	background: rgba(0, 0, 0, 0.72);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.stw-checkout-panel.stw-hero .stw-role-card--checkout .stw-role-card__image {
	border-right: 1px solid rgba(243, 239, 228, 0.12);
	background: rgba(243, 239, 228, 0.06);
}

.stw-checkout-panel.stw-hero .stw-role-card--checkout .stw-role-card__image-fallback {
	background:
		linear-gradient(
			135deg,
			rgba(201, 185, 120, 0.16),
			rgba(138, 31, 20, 0.08)
		),
		rgba(243, 239, 228, 0.04);
}

.stw-checkout-panel.stw-hero .stw-role-card--checkout .stw-role-card__name {
	color: var(--stw-club-cream);
}

.stw-checkout-panel.stw-hero .stw-role-card--checkout .stw-role-card__description {
	color: rgba(243, 239, 228, 0.72);
}

.stw-checkout-panel.stw-hero .stw-role-card--checkout .stw-role-card__loading {
	background: rgba(0, 0, 0, 0.9);
	color: var(--stw-club-cream);
}

.stw-checkout-panel.stw-hero .stw-role-card--checkout.is-current {
	border-color: var(--stw-club-gold-soft);
	background: rgba(173, 152, 65, 0.14);
	box-shadow:
		inset 0 0 0 1px var(--stw-club-gold-soft),
		0 0 0 2px rgba(201, 185, 120, 0.18);
}

.stw-checkout-panel.stw-hero .stw-role-card--checkout.is-current:not(:disabled):hover,
.stw-checkout-panel.stw-hero .stw-role-card--checkout.is-current:focus-visible {
	box-shadow:
		inset 0 0 0 1px var(--stw-club-gold-soft),
		0 0 0 2px rgba(201, 185, 120, 0.18),
		0 10px 28px rgba(0, 0, 0, 0.3);
}

.stw-club-terms {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid rgba(243, 239, 228, 0.16);
	color: var(--stw-club-muted);
	font-size: 14px;
	line-height: 1.45;
}

.stw-checkout-panel.stw-hero .stw-club-terms a {
	color: var(--stw-club-gold-soft);
}

.stw-checkout-panel.stw-hero .stw-checkout-panel__primary {
	margin-top: 0;
	background: var(--stw-club-gold);
	border-color: var(--stw-club-gold);
	color: #ffffff;
}

.stw-checkout-panel.stw-hero .stw-checkout-panel__primary:hover,
.stw-checkout-panel.stw-hero .stw-checkout-panel__primary:focus {
	background: #ffffff;
	border-color: #ffffff;
	color: var(--stw-club-ink);
}

.stw-club-terms input {
	margin-top: 3px;
	accent-color: var(--stw-club-gold);
}

.stw-club-terms input:focus-visible {
	outline: 2px solid var(--stw-club-gold);
	outline-offset: 2px;
}

.stw-club-toast {
	position: fixed;
	left: 50%;
	bottom: 22px;
	z-index: 100000;
	max-width: min(520px, calc(100vw - 32px));
	padding: 12px 16px;
	border-radius: 4px;
	background: var(--stw-club-red);
	color: var(--stw-club-surface);
	font-family: var(--stw-club-font);
	transform: translate(-50%, 18px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.stw-club-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

body.stw-club-signup-active .wp-block-woocommerce-checkout-express-payment-block,
body.stw-club-signup-active .wp-block-woocommerce-cart-express-payment-block,
body.stw-club-signup-active .wc-block-components-express-payment,
body.stw-club-signup-active .wc-block-components-express-payment-continue-rule,
body.stw-club-signup-active .square-wallets-container,
body.stw-club-signup-active #apple-pay-button,
body.stw-club-signup-active #google-pay-button,
body.stw-club-signup-active #afterpay-button {
	display: none !important;
}

@media (max-width: 720px) {
	.stw-club-modal__dialog {
		width: calc(100vw - 20px);
		padding: 22px;
	}

	.stw-club-modal__choices,
	.stw-club-modal__grid,
	.stw-checkout-options__grid {
		grid-template-columns: 1fr;
	}

	.stw-checkout-panel__header {
		display: block;
	}

	.stw-checkout-panel {
		padding: 32px 24px;
	}

	.stw-checkout-panel__actions {
		justify-content: flex-start;
		margin-top: 10px;
	}

	.stw-tracker {
		right: 10px;
		bottom: 10px;
		width: min(330px, calc(100vw - 20px));
		padding: 12px;
	}

	body.mobile-menu-open .stw-tracker {
		display: none;
	}

	.stw-tracker__title {
		margin-bottom: 4px;
		font-size: 15px;
		line-height: 1.2;
	}

	.stw-tracker__intro,
	.stw-tracker__meta {
		font-size: 12px;
		line-height: 1.35;
	}

	.stw-tracker__bar {
		gap: 5px;
		margin: 12px 0;
	}

	.stw-tracker__segment {
		height: 6px;
	}

	.stw-tracker__checkout {
		min-height: 2.5rem;
		padding: 0.55rem 0.8rem;
		font-size: 0.8rem;
	}

	.stw-tracker__cancel {
		margin-top: 7px;
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.stw-role-card__spinner {
		animation-duration: 1.4s;
	}
}
