/* Penshelf My Account Studio — storefront styles */
.psmas-account-page {
	--psmas-shadow: 0 12px 34px rgba(55, 28, 40, .08);
	--psmas-radius: 16px;
}

.psmas-account-page .psmas-account-shell,
.psmas-account-page .psmas-account-shell *,
.psmas-account-page .psmas-account-shell *::before,
.psmas-account-page .psmas-account-shell *::after {
	box-sizing: border-box;
}

.psmas-theme-sidebar-hidden {
	display: none !important;
}

.psmas-account-column-full {
	width: 100% !important;
	max-width: 100% !important;
	flex-basis: 100% !important;
}

.psmas-account-page .psmas-account-shell,
.psmas-account-page.logged-in .woocommerce:has(> .psmas-navigation) {
	display: grid;
	grid-template-columns: minmax(220px, var(--psmas-nav-width)) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
	width: 100%;
	max-width: 100%;
	color: var(--psmas-fg);
}

.psmas-account-page .psmas-account-shell > .woocommerce-notices-wrapper,
.psmas-account-page .psmas-account-shell > .woocommerce-error,
.psmas-account-page .psmas-account-shell > .woocommerce-message,
.psmas-account-page .psmas-account-shell > .woocommerce-info,
.psmas-account-page.logged-in .woocommerce:has(> .psmas-navigation) > .woocommerce-notices-wrapper,
.psmas-account-page.logged-in .woocommerce:has(> .psmas-navigation) > .woocommerce-error,
.psmas-account-page.logged-in .woocommerce:has(> .psmas-navigation) > .woocommerce-message,
.psmas-account-page.logged-in .woocommerce:has(> .psmas-navigation) > .woocommerce-info {
	grid-column: 1 / -1;
}

.psmas-account-layout-right .psmas-account-shell,
.psmas-account-layout-right.logged-in .woocommerce:has(> .psmas-navigation) {
	grid-template-columns: minmax(0, 1fr) minmax(220px, var(--psmas-nav-width));
}

.psmas-account-layout-right .psmas-navigation {
	grid-column: 2;
}

.psmas-account-layout-right .psmas-account-content,
.psmas-account-layout-right .woocommerce:has(> .psmas-navigation) > .woocommerce-MyAccount-content {
	grid-column: 1;
	grid-row: 1;
}

.psmas-account-layout-tabs .psmas-account-shell,
.psmas-account-layout-tabs.logged-in .woocommerce:has(> .psmas-navigation) {
	grid-template-columns: minmax(0, 1fr);
}

.psmas-account-layout-tabs .psmas-navigation,
.psmas-account-layout-tabs .psmas-account-content,
.psmas-account-layout-tabs .woocommerce:has(> .psmas-navigation) > .woocommerce-MyAccount-content {
	grid-column: 1;
}

.psmas-account-page .psmas-navigation,
.psmas-account-page .psmas-account-content,
.psmas-account-page .woocommerce:has(> .psmas-navigation) > .woocommerce-MyAccount-content {
	float: none !important;
	width: auto !important;
	max-width: 100%;
	margin: 0 !important;
}

.psmas-navigation {
	position: sticky;
	top: 98px;
	z-index: 4;
	min-width: 0;
	padding: 18px;
	border: 1px solid var(--psmas-border);
	border-radius: var(--psmas-radius);
	background: var(--psmas-nav-bg);
	box-shadow: var(--psmas-shadow);
	font-family: inherit;
}

.admin-bar .psmas-navigation {
	top: 130px;
}

.psmas-profile-mini {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 4px 4px 18px;
	margin-bottom: 10px;
	border-bottom: 1px solid var(--psmas-border);
}

.psmas-profile-mini__avatar {
	flex: 0 0 54px;
	width: 54px !important;
	height: 54px !important;
	max-width: 54px !important;
	border: 3px solid var(--psmas-soft);
	border-radius: 50%;
	object-fit: cover;
}

.psmas-profile-mini div {
	min-width: 0;
}

.psmas-profile-mini strong,
.psmas-profile-mini span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
}

.psmas-profile-mini strong {
	color: var(--psmas-fg);
	font-size: .98rem;
}

.psmas-profile-mini span {
	margin-top: 2px;
	color: #756a6f;
	font-size: .78rem;
	white-space: nowrap;
}

.psmas-menu,
.psmas-submenu,
.psmas-link-section ul,
.psmas-chart-legend {
	list-style: none;
	padding: 0;
	margin: 0;
}

.psmas-menu-item {
	margin: 5px 0;
}

.psmas-menu-item__row {
	display: flex;
	align-items: stretch;
	gap: 3px;
	min-width: 0;
}

.psmas-menu-item__row > a,
.psmas-submenu a,
.psmas-link-section a {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
	min-height: 44px;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--psmas-nav-text);
	font-size: .92rem;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.psmas-menu-item__row > a {
	flex: 1 1 auto;
}

.psmas-menu-item__row > a > span:last-child,
.psmas-submenu a > span:last-child,
.psmas-link-section a {
	overflow-wrap: anywhere;
}

.psmas-menu-item a .dashicons,
.psmas-link-section a .dashicons {
	flex: 0 0 20px;
	width: 20px !important;
	height: 20px !important;
	font-size: 20px !important;
	line-height: 20px !important;
	color: var(--psmas-primary);
}

.psmas-menu-item__row > a:hover,
.psmas-menu-item.is-active > .psmas-menu-item__row > a,
.psmas-submenu li.is-active > a,
.psmas-submenu a:hover,
.psmas-link-section a:hover {
	background: var(--psmas-hover-bg);
	color: var(--psmas-hover-text);
	transform: translateX(2px);
}

.psmas-menu-item a:hover .dashicons,
.psmas-menu-item.is-active > .psmas-menu-item__row > a .dashicons,
.psmas-submenu li.is-active > a .dashicons,
.psmas-link-section a:hover .dashicons {
	color: currentColor;
}

.psmas-submenu-toggle {
	flex: 0 0 39px;
	width: 39px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: var(--psmas-soft);
	color: var(--psmas-primary);
	cursor: pointer;
}

.psmas-submenu-toggle .dashicons {
	transition: transform .2s ease;
}

.psmas-submenu-toggle[aria-expanded="true"] .dashicons {
	transform: rotate(180deg);
}

.psmas-submenu {
	padding: 5px 0 4px 22px;
}

.psmas-submenu[hidden] {
	display: none;
}

.psmas-submenu a {
	min-height: 38px;
	padding: 8px 10px;
	font-size: .85rem;
	font-weight: 500;
}

.psmas-link-section {
	padding-top: 16px;
	margin-top: 16px;
	border-top: 1px solid var(--psmas-border);
}

.psmas-link-section h3 {
	margin: 0 10px 7px;
	color: #81747a;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .11em;
	text-transform: uppercase;
}

.psmas-link-section a {
	min-height: 38px;
	padding: 8px 10px;
	font-size: .84rem;
}

/* Top tabs */
.psmas-account-layout-tabs .psmas-navigation {
	position: static;
	padding: 12px;
}

.psmas-account-layout-tabs .psmas-profile-mini {
	display: none;
}

.psmas-account-layout-tabs .psmas-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.psmas-account-layout-tabs .psmas-menu-item {
	position: relative;
	margin: 0;
}

.psmas-account-layout-tabs .psmas-menu-item__row > a {
	white-space: nowrap;
}

.psmas-account-layout-tabs .psmas-submenu {
	position: absolute;
	left: 0;
	top: calc(100% + 6px);
	z-index: 20;
	min-width: 230px;
	padding: 8px;
	border: 1px solid var(--psmas-border);
	border-radius: 12px;
	background: var(--psmas-card-bg);
	box-shadow: var(--psmas-shadow);
}

.psmas-account-layout-tabs .psmas-link-section {
	display: inline-block;
	margin-right: 22px;
	border: 0;
}

/* Theme layout keeps the Flatsome feeling while preserving nested navigation. */
.psmas-account-layout-theme .psmas-navigation {
	box-shadow: none;
	border-radius: 4px;
}

.psmas-account-content,
.psmas-account-page .woocommerce:has(> .psmas-navigation) > .woocommerce-MyAccount-content {
	container-type: inline-size;
	min-width: 0;
	padding: clamp(18px, 2.3vw, 32px);
	border: 1px solid var(--psmas-border);
	border-radius: var(--psmas-radius);
	background: var(--psmas-card-bg);
	box-shadow: var(--psmas-shadow);
	overflow: hidden;
}

/* Remove WooCommerce's standard dashboard introduction when the custom dashboard is enabled. */
.psmas-dashboard-enabled.psmas-account-dashboard .woocommerce-MyAccount-content > p {
	display: none;
}

/* Dashboard */
.psmas-dashboard {
	width: 100%;
	min-width: 0;
	font-family: inherit;
}

.psmas-dashboard__header {
	position: relative;
	overflow: hidden;
	padding: clamp(22px, 3vw, 36px);
	margin: calc(clamp(18px, 2.3vw, 32px) * -1) calc(clamp(18px, 2.3vw, 32px) * -1) 26px;
	border-radius: var(--psmas-radius) var(--psmas-radius) 0 0;
	background: linear-gradient(135deg, var(--psmas-soft), #fff 62%);
	border-bottom: 1px solid var(--psmas-border);
}

.psmas-dashboard__header::after {
	content: "";
	position: absolute;
	right: clamp(-10px, 1vw, 16px);
	top: 50%;
	z-index: 0;
	width: clamp(118px, 18vw, 178px);
	height: calc(100% - 18px);
	transform: translateY(-50%);
	background-image: url('../images/penshelf-dashboard-mark.jpeg');
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	opacity: .16;
	mix-blend-mode: multiply;
	filter: saturate(1.2) contrast(1.04);
	pointer-events: none;
}

.psmas-dashboard__header > div {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.psmas-eyebrow {
	display: inline-block;
	margin-bottom: 6px;
	color: var(--psmas-primary);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.psmas-dashboard__header h2 {
	position: relative;
	z-index: 1;
	margin: 0 0 7px;
	max-width: 720px;
	color: var(--psmas-fg);
	font-size: clamp(1.45rem, 2.4vw, 2.15rem);
	line-height: 1.15;
}

.psmas-dashboard__header p {
	position: relative;
	z-index: 1;
	max-width: 650px;
	margin: 0;
	color: #72666c;
}

.psmas-dashboard__layout {
	display: grid;
	grid-template-columns: minmax(200px, 230px) minmax(0, 1fr);
	gap: 22px;
	align-items: start;
	width: 100%;
	min-width: 0;
}

.psmas-dashboard-template-right .psmas-dashboard__layout {
	grid-template-columns: minmax(0, 1fr) minmax(200px, 230px);
}

.psmas-dashboard-template-right .psmas-profile-card {
	grid-column: 2;
}

.psmas-dashboard-template-right .psmas-dashboard__main {
	grid-column: 1;
	grid-row: 1;
}

.psmas-dashboard-template-middle .psmas-dashboard__layout {
	grid-template-columns: minmax(0, 1fr);
}

.psmas-dashboard-template-middle .psmas-profile-card {
	max-width: 360px;
	width: 100%;
	margin: 0 auto;
}

.psmas-dashboard__main {
	min-width: 0;
	width: 100%;
}

.psmas-profile-card,
.psmas-dashboard-panel,
.psmas-stat-card {
	min-width: 0;
	border: 1px solid var(--psmas-border);
	border-radius: 14px;
	background: var(--psmas-card-bg);
}

.psmas-profile-card {
	width: 100%;
	padding: 24px 18px;
	text-align: center;
	background: linear-gradient(180deg, var(--psmas-soft), var(--psmas-card-bg) 44%);
}

.psmas-profile-card__avatar {
	display: block;
	width: 110px !important;
	height: 110px !important;
	max-width: 110px !important;
	margin: 0 auto;
	border: 5px solid #fff;
	border-radius: 50%;
	box-shadow: 0 8px 26px rgba(59, 24, 40, .13);
	object-fit: cover;
}

.psmas-profile-card h3 {
	margin: 14px 0 3px;
	font-size: 1.08rem;
	overflow-wrap: anywhere;
}

.psmas-profile-card > p {
	margin: 0 0 14px;
	color: #776a70;
	font-size: .79rem;
	overflow-wrap: anywhere;
}

.psmas-outline-button {
	max-width: 100%;
	border: 1px solid var(--psmas-primary) !important;
	background: transparent !important;
	color: var(--psmas-primary) !important;
	white-space: normal;
}

.psmas-outline-button:hover {
	background: var(--psmas-primary) !important;
	color: #fff !important;
}

.psmas-avatar-quick-form {
	margin: 12px 0 0;
}

.psmas-avatar-upload-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	max-width: 100%;
	color: var(--psmas-primary);
	font-size: .77rem;
	font-weight: 700;
	cursor: pointer;
}

.psmas-avatar-upload-button input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

.psmas-link-button {
	padding: 0;
	margin-top: 5px;
	border: 0;
	background: transparent;
	color: #8b7f84;
	font-size: .72rem;
	text-decoration: underline;
	cursor: pointer;
}

.psmas-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
	gap: 12px;
	width: 100%;
	min-width: 0;
	margin-bottom: 18px;
}

.psmas-stat-card {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 92px;
	padding: 14px;
	overflow: hidden;
	color: var(--psmas-fg);
	text-decoration: none;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.psmas-stat-card:hover {
	color: var(--psmas-fg);
	border-color: var(--psmas-primary);
	box-shadow: 0 9px 24px rgba(75, 31, 50, .09);
	transform: translateY(-2px);
}

.psmas-stat-card__icon {
	display: grid !important;
	place-items: center;
	flex: 0 0 42px;
	width: 42px !important;
	height: 42px !important;
	margin: 0 !important;
	border-radius: 12px;
	background: var(--psmas-soft);
	color: var(--psmas-primary);
	font-size: 22px !important;
	line-height: 1 !important;
}

.psmas-stat-card__body {
	display: block;
	min-width: 0;
	max-width: 100%;
}

.psmas-stat-card__body strong {
	display: block;
	max-width: 100%;
	overflow: hidden;
	color: var(--psmas-fg);
	font-size: 1.12rem;
	line-height: 1.15;
	text-overflow: ellipsis;
}

.psmas-stat-card__body strong .woocommerce-Price-amount {
	white-space: nowrap;
}

.psmas-stat-card__body small {
	display: block;
	margin-top: 4px;
	color: #74696e;
	font-size: .73rem;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.psmas-dashboard-panel {
	width: 100%;
	min-width: 0;
	padding: 20px;
	margin-top: 18px;
	overflow: hidden;
}

.psmas-panel-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 15px;
	min-width: 0;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--psmas-border);
}

.psmas-panel-heading > div {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.psmas-panel-heading .dashicons {
	flex: 0 0 20px;
	color: var(--psmas-primary);
}

.psmas-panel-heading h3 {
	margin: 0;
	font-size: 1rem;
	line-height: 1.3;
}

.psmas-panel-heading > a {
	color: var(--psmas-primary);
	font-size: .78rem;
	font-weight: 700;
}

.psmas-latest-order__details {
	display: grid;
	grid-template-columns: repeat(4, minmax(80px, 1fr)) minmax(110px, auto);
	gap: 15px;
	align-items: center;
	width: 100%;
	min-width: 0;
	padding-top: 18px;
}

.psmas-latest-order__details > div {
	min-width: 0;
}

.psmas-latest-order__details small,
.psmas-latest-order__details strong {
	display: block;
}

.psmas-latest-order__details small {
	color: #83777d;
	font-size: .7rem;
}

.psmas-latest-order__details strong {
	margin-top: 3px;
	font-size: .86rem;
	overflow-wrap: anywhere;
}

.psmas-order-status {
	color: var(--psmas-primary);
}

.psmas-empty-state {
	padding: 28px 10px 10px;
	text-align: center;
}

.psmas-empty-state .dashicons {
	display: inline-block;
	width: 42px !important;
	height: 42px !important;
	color: var(--psmas-primary);
	font-size: 42px !important;
	line-height: 42px !important;
}

.psmas-empty-state p {
	max-width: 360px;
	margin: 10px auto 16px;
}

.psmas-empty-state .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	white-space: normal;
	text-align: center;
}

.psmas-order-chart__body {
	display: grid;
	grid-template-columns: minmax(150px, 170px) minmax(220px, 1fr);
	gap: 28px;
	align-items: center;
	width: 100%;
	min-width: 0;
	padding-top: 20px;
}

.psmas-donut {
	position: relative;
	width: 150px;
	height: 150px;
	max-width: 100%;
	margin: 0 auto;
	border-radius: 50%;
}

.psmas-donut::after {
	content: "";
	position: absolute;
	inset: 28px;
	border-radius: 50%;
	background: var(--psmas-card-bg);
}

.psmas-donut > span {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: grid;
	place-content: center;
	text-align: center;
}

.psmas-donut strong {
	font-size: 1.5rem;
}

.psmas-donut small {
	color: #7b6f75;
	font-size: .7rem;
}

.psmas-chart-legend {
	width: 100%;
	min-width: 0;
}

.psmas-chart-legend li {
	display: grid;
	grid-template-columns: 10px minmax(0, 1fr) auto;
	gap: 9px;
	align-items: center;
	min-width: 0;
	padding: 7px 0;
}

.psmas-chart-legend i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
}

.psmas-chart-legend span {
	min-width: 0;
	color: #6e6268;
	font-size: .78rem;
	overflow-wrap: anywhere;
}

.psmas-chart-legend strong {
	font-size: .82rem;
}

/* Endpoints */
.psmas-endpoint,
.psmas-endpoint__content {
	width: 100%;
	min-width: 0;
}

.psmas-endpoint__header h2 {
	margin-top: 0;
}

.psmas-page-endpoint-content > :first-child {
	margin-top: 0;
}

.psmas-page-endpoint-content img,
.psmas-page-endpoint-content iframe,
.psmas-page-endpoint-content video {
	max-width: 100%;
	height: auto;
}

.psmas-page-endpoint-content .row,
.psmas-page-endpoint-content .col,
.psmas-page-endpoint-content form,
.psmas-page-endpoint-content input,
.psmas-page-endpoint-content select,
.psmas-page-endpoint-content textarea {
	max-width: 100%;
}

.psmas-group-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 14px;
}

.psmas-group-card {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	min-height: 82px;
	padding: 18px;
	border: 1px solid var(--psmas-border);
	border-radius: 13px;
	color: var(--psmas-fg);
	font-weight: 700;
	text-decoration: none;
}

.psmas-group-card:hover {
	border-color: var(--psmas-primary);
	color: var(--psmas-primary);
	box-shadow: var(--psmas-shadow);
}

.psmas-group-card .dashicons {
	flex: 0 0 34px;
	width: 34px !important;
	height: 34px !important;
	color: var(--psmas-primary);
	font-size: 30px !important;
	line-height: 34px !important;
}

/* Account forms */
.psmas-avatar-fieldset {
	padding: 18px;
	margin: 0 0 22px;
	border: 1px solid var(--psmas-border);
	border-radius: 13px;
}

.psmas-avatar-fieldset legend {
	padding: 0 7px;
	color: var(--psmas-fg);
	font-weight: 700;
}

.psmas-avatar-editor {
	display: flex;
	align-items: center;
	gap: 18px;
}

.psmas-avatar-editor__preview {
	flex: 0 0 80px;
	width: 80px !important;
	height: 80px !important;
	border-radius: 50%;
	object-fit: cover;
}

.psmas-avatar-editor label,
.psmas-avatar-editor small {
	display: block;
}

.psmas-avatar-editor input[type="file"] {
	margin: 7px 0;
}

.psmas-remove-avatar {
	margin-top: 8px;
	font-size: .82rem;
}

.psmas-account-page .button,
.psmas-account-page button.button,
.psmas-account-page input.button {
	border-radius: 8px;
}

/* Content-width responsive rules prevent dashboard cards from being squeezed by theme columns. */
@container (max-width: 720px) {
	.psmas-dashboard__layout,
	.psmas-dashboard-template-right .psmas-dashboard__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.psmas-dashboard-template-right .psmas-profile-card,
	.psmas-dashboard-template-right .psmas-dashboard__main {
		grid-column: 1;
		grid-row: auto;
	}

	.psmas-profile-card {
		max-width: 420px;
		margin: 0 auto;
	}
}

@container (max-width: 590px) {
	.psmas-latest-order__details {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.psmas-latest-order__details .button {
		grid-column: 1 / -1;
		text-align: center;
	}

	.psmas-order-chart__body {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
	}
}

@container (max-width: 390px) {
	.psmas-stat-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.psmas-panel-heading {
		align-items: flex-start;
	}
}

@media (max-width: 980px) {
	.psmas-account-page .psmas-account-shell,
	.psmas-account-layout-right .psmas-account-shell,
	.psmas-account-page.logged-in .woocommerce:has(> .psmas-navigation),
	.psmas-account-layout-right.logged-in .woocommerce:has(> .psmas-navigation) {
		grid-template-columns: minmax(0, 1fr);
	}

	.psmas-account-layout-right .psmas-navigation,
	.psmas-account-layout-right .psmas-account-content,
	.psmas-account-layout-right .woocommerce:has(> .psmas-navigation) > .woocommerce-MyAccount-content {
		grid-column: 1;
		grid-row: auto;
	}

	.psmas-navigation {
		position: static;
	}

	.psmas-profile-mini {
		display: none;
	}

	.psmas-menu {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 5px;
	}

	.psmas-submenu {
		grid-column: 1 / -1;
	}
}

@media (max-width: 760px) {
	.psmas-menu {
		grid-template-columns: minmax(0, 1fr);
	}

	.psmas-dashboard__layout,
	.psmas-dashboard-template-right .psmas-dashboard__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.psmas-dashboard-template-right .psmas-profile-card,
	.psmas-dashboard-template-right .psmas-dashboard__main {
		grid-column: 1;
		grid-row: auto;
	}

	.psmas-group-cards {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 480px) {
	.psmas-account-content,
	.psmas-account-page .woocommerce:has(> .psmas-navigation) > .woocommerce-MyAccount-content {
		padding: 16px;
	}

	.psmas-dashboard__header {
		margin: -16px -16px 20px;
		padding: 22px 18px;
	}

	.psmas-dashboard__header::after {
		right: -18px;
		width: 112px;
		height: calc(100% - 12px);
		opacity: .11;
	}

	.psmas-stat-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.psmas-avatar-editor {
		align-items: flex-start;
		flex-direction: column;
	}
}

/* Rewards endpoint header and balance styling. */
.psmas-points-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: clamp(18px, 2.5vw, 28px);
	margin-bottom: 22px;
	border: 1px solid var(--psmas-border);
	border-radius: 14px;
	background: linear-gradient(135deg, var(--psmas-soft), var(--psmas-card-bg) 68%);
}

.psmas-points-header > div:first-child {
	min-width: 0;
}

.psmas-points-header h2 {
	margin: 0 0 7px;
}

.psmas-points-header p {
	margin: 0;
	color: #74686e;
}

.psmas-points-balance {
	display: grid;
	grid-template-columns: 36px auto;
	grid-template-rows: auto auto;
	column-gap: 10px;
	align-items: center;
	flex: 0 0 auto;
	min-width: 165px;
	padding: 16px 18px;
	border: 1px solid var(--psmas-border);
	border-radius: 12px;
	background: var(--psmas-card-bg);
	box-shadow: 0 8px 22px rgba(55, 28, 40, .07);
}

.psmas-points-balance .dashicons {
	grid-row: 1 / 3;
	width: 36px !important;
	height: 36px !important;
	color: var(--psmas-primary);
	font-size: 32px !important;
	line-height: 36px !important;
}

.psmas-points-balance strong {
	font-size: 1.45rem;
	line-height: 1.1;
}

.psmas-points-balance small {
	color: #766a70;
	font-size: .72rem;
}

.psmas-points-history {
	min-width: 0;
}

.psmas-points-history h3 {
	margin: 0 0 14px;
}

@media (max-width: 620px) {
	.psmas-points-header {
		align-items: stretch;
		flex-direction: column;
	}

	.psmas-points-balance {
		width: 100%;
	}
}

/* Penshelf Pen Finder / saved writing profile integration */
.psmas-pen-profile {
	min-width: 0;
}

.psmas-pen-profile__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	padding: clamp(18px, 2.4vw, 28px);
	margin-bottom: 20px;
	border: 1px solid var(--psmas-border);
	border-radius: 16px;
	background: linear-gradient(135deg, var(--psmas-soft), var(--psmas-card-bg) 72%);
	overflow: hidden;
}

.psmas-pen-profile__header > div {
	min-width: 0;
}

.psmas-eyebrow {
	display: inline-block;
	margin-bottom: 7px;
	color: var(--psmas-primary);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.psmas-pen-profile__header h2 {
	margin: 0 0 7px;
	color: var(--psmas-fg);
}

.psmas-pen-profile__header p {
	max-width: 690px;
	margin: 0;
	color: #74686e;
}

.psmas-pen-profile__update,
.psmas-pen-profile__update:hover {
	flex: 0 0 auto;
	margin: 0;
	border-color: var(--psmas-primary) !important;
	border-radius: 10px !important;
	background: var(--psmas-primary) !important;
	color: #fff !important;
	text-decoration: none;
}

.psmas-pen-profile__summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 22px;
}

.psmas-pen-profile__preference {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
	padding: 14px;
	border: 1px solid var(--psmas-border);
	border-radius: 13px;
	background: var(--psmas-card-bg);
	box-shadow: 0 7px 20px rgba(55, 28, 40, .055);
}

.psmas-pen-profile__preference > .dashicons {
	flex: 0 0 38px;
	width: 38px !important;
	height: 38px !important;
	border-radius: 10px;
	background: var(--psmas-soft);
	color: var(--psmas-primary);
	font-size: 21px !important;
	line-height: 38px !important;
	text-align: center;
}

.psmas-pen-profile__preference > div {
	min-width: 0;
}

.psmas-pen-profile__preference small,
.psmas-pen-profile__preference strong {
	display: block;
}

.psmas-pen-profile__preference small {
	margin-bottom: 3px;
	color: #7a6d73;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .025em;
	text-transform: uppercase;
}

.psmas-pen-profile__preference strong {
	overflow-wrap: anywhere;
	color: var(--psmas-fg);
	font-size: .88rem;
	line-height: 1.25;
}

.psmas-pen-profile__empty {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px;
	margin-bottom: 22px;
	border: 1px dashed var(--psmas-border);
	border-radius: 14px;
	background: var(--psmas-soft);
}

.psmas-pen-profile__empty > .dashicons {
	flex: 0 0 42px;
	width: 42px !important;
	height: 42px !important;
	border-radius: 50%;
	background: var(--psmas-card-bg);
	color: var(--psmas-primary);
	font-size: 23px !important;
	line-height: 42px !important;
	text-align: center;
}

.psmas-pen-profile__empty strong {
	display: block;
	margin-bottom: 3px;
}

.psmas-pen-profile__empty p {
	margin: 0;
	color: #74686e;
}

.psmas-pen-finder-embed {
	min-width: 0;
	container-type: inline-size;
}

/* Make the existing blue Pen Finder inherit Penshelf/Flatsome colours when embedded. */
.psmas-pen-finder-embed #penshelf-pen-finder {
	--pspf-blue: var(--psmas-primary) !important;
	--pspf-blue-dark: var(--psmas-primary) !important;
	--pspf-gold: var(--psmas-accent) !important;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	box-shadow: none;
}

/* The account content area is narrower than a normal full-width page. */
.psmas-pen-finder-embed #penshelf-pen-finder .pspf-steps,
.psmas-pen-finder-embed #penshelf-pen-finder .pspf-results {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.psmas-pen-finder-embed #penshelf-pen-finder .pspf-profile-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@container (max-width: 620px) {
	.psmas-pen-finder-embed #penshelf-pen-finder .pspf-steps,
	.psmas-pen-finder-embed #penshelf-pen-finder .pspf-results,
	.psmas-pen-finder-embed #penshelf-pen-finder .pspf-profile-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.psmas-pen-finder-embed #penshelf-pen-finder .pspf-results-head {
		flex-direction: column;
	}
}

@media (max-width: 820px) {
	.psmas-pen-profile__summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.psmas-pen-profile__header {
		align-items: stretch;
		flex-direction: column;
	}

	.psmas-pen-profile__update {
		width: 100%;
		text-align: center;
	}

	.psmas-pen-profile__summary {
		grid-template-columns: minmax(0, 1fr);
	}

	.psmas-pen-finder-embed #penshelf-pen-finder .pspf-steps,
	.psmas-pen-finder-embed #penshelf-pen-finder .pspf-results,
	.psmas-pen-finder-embed #penshelf-pen-finder .pspf-profile-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

/* Exclusive returning-customer offers — products stay public at normal price. */
.psmas-offers-page { display: grid; gap: 22px; }
.psmas-offers-hero { padding: 24px 26px; border: 1px solid var(--psmas-border); border-radius: 18px; background: linear-gradient(135deg, var(--psmas-soft), var(--psmas-card-bg)); }
.psmas-offers-kicker { display: inline-block; margin-bottom: 7px; color: var(--psmas-primary); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.psmas-offers-hero h2 { margin: 0 0 8px; color: var(--psmas-fg); font-size: clamp(25px, 3vw, 38px); line-height: 1.15; }
.psmas-offers-hero p { max-width: 780px; margin: 0; color: #6f6067; line-height: 1.65; }
.psmas-offer-campaign { padding: 22px; border: 1px solid var(--psmas-border); border-radius: 18px; background: var(--psmas-card-bg); box-shadow: 0 12px 30px rgba(60, 25, 40, .06); }
.psmas-offer-campaign__head { display: flex; justify-content: space-between; gap: 22px; align-items: flex-start; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--psmas-border); }
.psmas-offer-badge { display: inline-flex; padding: 5px 9px; margin-bottom: 8px; border-radius: 999px; background: var(--psmas-soft); color: var(--psmas-primary); font-size: 11px; font-weight: 800; }
.psmas-offer-campaign h3 { margin: 0 0 7px; color: var(--psmas-fg); font-size: 23px; line-height: 1.25; }
.psmas-offer-description, .psmas-offer-description p { margin: 0; color: #6f6067; line-height: 1.6; }
.psmas-offer-meta { min-width: 180px; display: grid; gap: 7px; text-align: right; color: #78676e; font-size: 12px; font-weight: 700; }
.psmas-offer-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.psmas-offer-product { min-width: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 15px; border: 1px solid var(--psmas-border); border-radius: 15px; background: #fff; }
.psmas-offer-product__image { min-height: 160px; display: flex; align-items: center; justify-content: center; padding: 10px; border-radius: 12px; background: #fffafc; overflow: hidden; }
.psmas-offer-product__image img { width: auto; max-width: 100%; height: auto; max-height: 155px; object-fit: contain; }
.psmas-offer-product__body { min-width: 0; display: flex; flex-direction: column; }
.psmas-offer-product h4 { margin: 0 0 5px; font-size: 17px; line-height: 1.35; }
.psmas-offer-product h4 a { color: var(--psmas-fg); text-decoration: none; }
.psmas-offer-variation { margin-bottom: 10px; color: #75656c; font-size: 12px; }
.psmas-offer-pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 9px 0; }
.psmas-offer-pricing > span { display: grid; gap: 3px; padding: 9px 10px; border-radius: 10px; }
.psmas-offer-pricing small { color: #817078; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.psmas-offer-public-price { border: 1px solid var(--psmas-border); background: #fff; }
.psmas-offer-public-price del { color: #817078; }
.psmas-offer-private-price { background: var(--psmas-soft); color: var(--psmas-primary); }
.psmas-offer-private-price strong { font-size: 18px; }
.psmas-offer-saving { width: max-content; max-width: 100%; padding: 5px 8px; border-radius: 7px; background: #eef8ef; color: #1b6b2a; font-size: 11px; font-weight: 800; }
.psmas-offer-note { margin: 9px 0 12px; color: #7c6c73; font-size: 11px; line-height: 1.45; }
.psmas-offer-actions { margin-top: auto; display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; align-items: end; }
.psmas-offer-actions .button { min-height: 40px; margin: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; white-space: nowrap; }
.psmas-offer-add { border-color: var(--psmas-primary) !important; color: var(--psmas-primary) !important; background: #fff !important; }
.psmas-offer-buy { border-color: var(--psmas-primary) !important; background: var(--psmas-primary) !important; color: #fff !important; }
.psmas-offer-qty { display: grid; gap: 3px; color: #75656c; font-size: 10px; font-weight: 700; }
.psmas-offer-qty input { width: 58px; height: 40px; margin: 0; border: 1px solid var(--psmas-border); border-radius: 8px; text-align: center; }

@media (max-width: 1180px) {
	.psmas-offer-products { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	.psmas-offers-hero, .psmas-offer-campaign { padding: 17px; }
	.psmas-offer-campaign__head { flex-direction: column; }
	.psmas-offer-meta { min-width: 0; text-align: left; }
	.psmas-offer-product { grid-template-columns: 1fr; }
	.psmas-offer-product__image { min-height: 190px; }
	.psmas-offer-actions { grid-template-columns: 1fr 1fr; }
	.psmas-offer-qty { grid-column: 1 / -1; }
	.psmas-offer-qty input { width: 100%; }
}
@media (max-width: 440px) {
	.psmas-offer-pricing, .psmas-offer-actions { grid-template-columns: 1fr; }
	.psmas-offer-qty { grid-column: auto; }
}

/* Version 1.3.0 — offer countdown, resilient offer buttons and rewards wallet. */
.psmas-offer-countdown {
	display: grid;
	gap: 3px;
	min-width: 190px;
	padding: 10px 12px;
	border: 1px solid var(--psmas-border);
	border-radius: 11px;
	background: var(--psmas-soft);
	text-align: right;
}

.psmas-offer-countdown small {
	color: #78676e;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.psmas-offer-countdown strong {
	color: var(--psmas-primary);
	font-size: 17px;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
}

.psmas-offer-countdown > span {
	color: #817078;
	font-size: 10px;
	font-weight: 600;
}

.psmas-offer-countdown.is-urgent {
	border-color: #e5ad54;
	background: #fff8e8;
}

.psmas-offer-countdown.is-critical {
	border-color: #d66161;
	background: #fff0f0;
	box-shadow: 0 0 0 3px rgba(214, 97, 97, .08);
}

.psmas-offer-countdown.is-critical strong {
	color: #a32424;
	animation: psmas-urgency-pulse 1.25s ease-in-out infinite;
}

.psmas-offer-countdown.is-expired {
	opacity: .72;
	background: #f4f2f3;
}

@keyframes psmas-urgency-pulse {
	50% { opacity: .58; }
}

/* The My Account content column is narrower than the viewport. Keep one offer
   card per row and let each action own a real grid track. */
.psmas-account-content .psmas-offer-products,
.psmas-offers-page .psmas-offer-products {
	grid-template-columns: minmax(0, 1fr) !important;
}

.psmas-offer-product {
	grid-template-columns: minmax(135px, 180px) minmax(0, 1fr);
	align-items: stretch;
}

.psmas-offer-product__body {
	width: 100%;
}

.psmas-offer-actions {
	width: 100%;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
}

.psmas-offer-actions .psmas-offer-qty {
	grid-column: 1 / -1;
}

.psmas-offer-actions .button {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	min-height: 42px;
	padding: 9px 10px;
	white-space: normal;
	text-align: center;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

/* Penshelf Rewards Wallet and daily wheel. */
.psmas-rewards-endpoint {
	display: grid;
	gap: 22px;
}

.psmas-rewards-header {
	margin-bottom: 0;
}

.psmas-rewards-empty {
	display: grid;
	gap: 4px;
	margin: 0 !important;
	padding: 16px 18px !important;
	border: 1px solid var(--psmas-border) !important;
	border-radius: 13px !important;
	background: #fffafc !important;
}

.psmas-rewards-empty strong {
	color: var(--psmas-fg);
	font-size: 15px;
}

.psmas-rewards-empty span {
	color: #75676e;
	font-size: 13px;
}

.psmas-reward-wheel-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
	gap: clamp(24px, 4vw, 46px);
	align-items: center;
	padding: clamp(20px, 3.3vw, 36px);
	border: 1px solid var(--psmas-border);
	border-radius: 20px;
	background:
		radial-gradient(circle at 12% 12%, rgba(255,255,255,.95), transparent 32%),
		linear-gradient(135deg, var(--psmas-soft), var(--psmas-card-bg) 72%);
	overflow: hidden;
}

.psmas-reward-wheel-copy {
	min-width: 0;
}

.psmas-reward-wheel-copy h3 {
	margin: 0 0 10px;
	color: var(--psmas-fg);
	font-size: clamp(23px, 3vw, 34px);
	line-height: 1.18;
}

.psmas-reward-wheel-copy > p {
	margin: 0;
	color: #6f6067;
	line-height: 1.65;
}

.psmas-reward-rules {
	display: grid;
	gap: 8px;
	margin: 18px 0 13px;
	padding: 0;
	list-style: none;
}

.psmas-reward-rules li {
	position: relative;
	padding-left: 23px;
	color: #55464d;
	font-size: 13px;
	line-height: 1.45;
}

.psmas-reward-rules li::before {
	content: "★";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--psmas-accent);
}

.psmas-reward-disclosure {
	padding: 10px 12px;
	border-left: 3px solid var(--psmas-accent);
	border-radius: 0 8px 8px 0;
	background: rgba(255,255,255,.68);
	font-size: 11px !important;
	line-height: 1.45 !important;
}

.psmas-reward-wheel-stage {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 14px;
	min-width: 0;
	padding-top: 13px;
}

.psmas-wheel-pointer {
	position: absolute;
	z-index: 5;
	top: -2px;
	left: 50%;
	width: 0;
	height: 0;
	border-left: 16px solid transparent;
	border-right: 16px solid transparent;
	border-top: 30px solid var(--psmas-accent);
	filter: drop-shadow(0 4px 3px rgba(56, 27, 37, .24));
	transform: translateX(-50%);
}

.psmas-reward-wheel {
	position: relative;
	width: min(320px, 78vw);
	aspect-ratio: 1;
	border: 9px solid #fff;
	border-radius: 50%;
	background: conic-gradient(
		from -22.5deg,
		var(--psmas-primary) 0deg 45deg,
		#f4d4df 45deg 90deg,
		var(--psmas-accent) 90deg 135deg,
		#f8e9ee 135deg 180deg,
		var(--psmas-primary) 180deg 225deg,
		#efd0da 225deg 270deg,
		var(--psmas-accent) 270deg 315deg,
		#f8eef2 315deg 360deg
	);
	box-shadow:
		0 0 0 2px var(--psmas-border),
		0 18px 40px rgba(73, 31, 48, .18),
		inset 0 0 0 3px rgba(255,255,255,.65);
	transition: transform 4.2s cubic-bezier(.12,.72,.08,1);
	will-change: transform;
}

.psmas-reward-wheel::after {
	content: "";
	position: absolute;
	inset: 12px;
	border: 1px solid rgba(255,255,255,.72);
	border-radius: 50%;
	pointer-events: none;
}

.psmas-wheel-label {
	position: absolute;
	z-index: 2;
	left: 50%;
	top: 50%;
	width: 74px;
	color: #fff;
	font-size: 12px;
	font-weight: 900;
	line-height: 1.05;
	text-align: center;
	text-shadow: 0 1px 2px rgba(34, 15, 23, .38);
	transform:
		translate(-50%, -50%)
		rotate(calc(var(--psmas-wheel-index) * 45deg))
		translateY(-118px)
		rotate(calc(var(--psmas-wheel-index) * -45deg));
}

.psmas-wheel-label:nth-of-type(even) {
	color: var(--psmas-fg);
	text-shadow: none;
}

.psmas-wheel-label:last-of-type {
	font-size: 10px;
}

.psmas-wheel-hub {
	position: absolute;
	z-index: 4;
	left: 50%;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border: 7px solid #fff;
	border-radius: 50%;
	background: var(--psmas-primary);
	box-shadow: 0 5px 15px rgba(61, 24, 39, .28);
	transform: translate(-50%, -50%);
}

.psmas-wheel-hub .dashicons {
	width: 34px !important;
	height: 34px !important;
	color: #fff;
	font-size: 34px !important;
	line-height: 34px !important;
}

.psmas-spin-button {
	min-width: 210px;
	min-height: 46px;
	margin: 0 !important;
	border-radius: 11px !important;
	background: var(--psmas-primary) !important;
	color: #fff !important;
	font-weight: 800 !important;
	box-shadow: 0 9px 20px rgba(77, 30, 49, .18);
}

.psmas-spin-button:disabled {
	opacity: .58;
	cursor: not-allowed;
}

.psmas-wheel-result {
	display: grid;
	gap: 3px;
	width: min(320px, 100%);
	padding: 12px 14px;
	border: 1px solid var(--psmas-border);
	border-radius: 11px;
	background: rgba(255,255,255,.8);
	text-align: center;
}

.psmas-wheel-result strong {
	color: var(--psmas-fg);
	font-size: 14px;
}

.psmas-wheel-result span {
	color: #786a70;
	font-size: 11px;
}

.psmas-wheel-result.is-win {
	border-color: #7db487;
	background: #eff9f0;
}

.psmas-wheel-result.is-win strong {
	color: #176b2b;
}

.psmas-wheel-result.is-error {
	border-color: #d88c8c;
	background: #fff4f4;
}

.psmas-reward-celebration {
	position: absolute;
	z-index: 8;
	left: 50%;
	top: 42%;
	width: 10px;
	height: 10px;
	pointer-events: none;
}

.psmas-reward-celebration i {
	position: absolute;
	left: 0;
	top: 0;
	width: 7px;
	height: 14px;
	border-radius: 4px;
	background: var(--psmas-accent);
	opacity: 0;
}

.psmas-reward-celebration i:nth-child(3n) { background: var(--psmas-primary); }
.psmas-reward-celebration i:nth-child(3n + 1) { background: #ef718b; }

.psmas-reward-celebration.is-active i {
	animation: psmas-reward-burst 1.25s cubic-bezier(.1,.7,.25,1) var(--psmas-delay) both;
}

@keyframes psmas-reward-burst {
	0% { opacity: 1; transform: translate(0, 0) rotate(0); }
	65% { opacity: 1; }
	100% { opacity: 0; transform: translate(var(--psmas-x), var(--psmas-y)) rotate(var(--psmas-rotate)); }
}

/* Checkout rewards control. */
.psmas-checkout-rewards {
	margin: 0 0 18px;
	padding: 14px 15px;
	border: 1px solid var(--psmas-border, #ead8df);
	border-radius: 11px;
	background: var(--psmas-soft, #faedf2);
}

.psmas-checkout-rewards label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	cursor: pointer;
}

.psmas-checkout-rewards input {
	margin-top: 4px;
	accent-color: var(--psmas-primary, #8f2145);
}

.psmas-checkout-rewards span {
	display: grid;
	gap: 3px;
}

.psmas-checkout-rewards strong {
	color: var(--psmas-fg, #30242a);
	font-size: 14px;
}

.psmas-checkout-rewards small {
	color: #75676e;
	font-size: 11px;
	line-height: 1.4;
}

@media (max-width: 880px) {
	.psmas-reward-wheel-card {
		grid-template-columns: minmax(0, 1fr);
	}

	.psmas-reward-wheel-copy {
		text-align: left;
	}
}

@media (max-width: 680px) {
	.psmas-offer-product {
		grid-template-columns: minmax(0, 1fr);
	}

	.psmas-offer-product__image {
		min-height: 190px;
	}

	.psmas-offer-campaign__head,
	.psmas-offer-meta {
		width: 100%;
	}

	.psmas-offer-countdown {
		width: 100%;
		text-align: left;
	}

	.psmas-reward-wheel-card {
		padding: 18px 14px;
	}

	.psmas-reward-wheel {
		width: min(286px, 82vw);
	}

	.psmas-wheel-label {
		transform:
			translate(-50%, -50%)
			rotate(calc(var(--psmas-wheel-index) * 45deg))
			translateY(-104px)
			rotate(calc(var(--psmas-wheel-index) * -45deg));
	}
}

@media (max-width: 420px) {
	.psmas-offer-actions {
		grid-template-columns: minmax(0, 1fr);
	}

	.psmas-offer-actions .psmas-offer-qty {
		grid-column: auto;
	}

	.psmas-reward-wheel {
		width: min(254px, 82vw);
	}

	.psmas-wheel-label {
		width: 62px;
		font-size: 10px;
		transform:
			translate(-50%, -50%)
			rotate(calc(var(--psmas-wheel-index) * 45deg))
			translateY(-91px)
			rotate(calc(var(--psmas-wheel-index) * -45deg));
	}
}

/* Wheel Rewards and Loyalty Stars summary. */
.psmas-rewards-summary-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.psmas-reward-summary-card {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 13px;
	align-items: center;
	min-width: 0;
	padding: 17px;
	border: 1px solid var(--psmas-border);
	border-radius: 14px;
	background: var(--psmas-card-bg);
	box-shadow: 0 8px 22px rgba(55, 28, 40, .06);
}

.psmas-reward-summary-card > .dashicons {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px !important;
	height: 48px !important;
	border-radius: 13px;
	background: var(--psmas-soft);
	color: var(--psmas-primary);
	font-size: 27px !important;
	line-height: 48px !important;
}

.psmas-reward-summary-card > div {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.psmas-reward-summary-card small {
	color: #766a70;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.psmas-reward-summary-card strong {
	color: var(--psmas-fg);
	font-size: clamp(21px, 2.4vw, 29px);
	line-height: 1.05;
	overflow-wrap: anywhere;
}

.psmas-reward-summary-card em {
	color: #7d7076;
	font-size: 11px;
	font-style: normal;
	line-height: 1.35;
}

.psmas-reward-summary-card--stars > .dashicons { color: #d79b16; }

.psmas-loyalty-star-visual {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
}

.psmas-loyalty-star-visual .dashicons {
	width: 31px !important;
	height: 31px !important;
	color: #d79b16;
	font-size: 31px !important;
	line-height: 31px !important;
	filter: drop-shadow(0 4px 7px rgba(178, 113, 8, .18));
	animation: psmas-star-pulse 2.2s ease-in-out infinite;
}

.psmas-loyalty-star-visual .dashicons:nth-child(2) { animation-delay: .12s; }
.psmas-loyalty-star-visual .dashicons:nth-child(3) { animation-delay: .24s; }
.psmas-loyalty-star-visual .dashicons:nth-child(4) { animation-delay: .36s; }
.psmas-loyalty-star-visual .dashicons:nth-child(5) { animation-delay: .48s; }

@keyframes psmas-star-pulse {
	0%, 100% { transform: translateY(0) scale(1); opacity: .82; }
	50% { transform: translateY(-4px) scale(1.08); opacity: 1; }
}

.psmas-wheel-history h3 {
	margin: 0 0 13px;
}

.psmas-wheel-history-list {
	display: grid;
	gap: 8px;
}

.psmas-wheel-history-list > div {
	display: grid;
	grid-template-columns: minmax(110px, 1fr) auto auto;
	gap: 14px;
	align-items: center;
	padding: 11px 13px;
	border: 1px solid var(--psmas-border);
	border-radius: 10px;
	background: var(--psmas-card-bg);
}

.psmas-wheel-history-list span,
.psmas-wheel-history-list em {
	color: #756970;
	font-size: 12px;
	font-style: normal;
}

.psmas-wheel-history-list strong {
	color: var(--psmas-fg);
	font-size: 13px;
}

.psmas-checkout-rewards {
	display: grid;
	gap: 13px;
}

.psmas-checkout-rewards h3 {
	margin: 0;
	font-size: 16px;
}

.psmas-checkout-rewards label + label {
	padding-top: 12px;
	border-top: 1px solid var(--psmas-border, #ead8df);
}

.psmas-checkout-rewards > p {
	margin: 0;
	color: #75676e;
	font-size: 11px;
	line-height: 1.45;
}

@media (max-width: 900px) {
	.psmas-rewards-summary-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 520px) {
	.psmas-wheel-history-list > div {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.psmas-wheel-history-list em {
		grid-column: 1 / -1;
	}
}

/* Version 1.3.2: uninterrupted wheel animation and live activity refresh. */
.psmas-reward-wheel-stage {
	scroll-margin-top: 132px;
}

.psmas-spin-button {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 22px;
	border: 1px solid var(--psmas-primary) !important;
	text-decoration: none !important;
	touch-action: manipulation;
}

.psmas-reward-wheel.is-preparing {
	animation: psmas-wheel-preparing .76s linear infinite;
	transition: none !important;
}

@keyframes psmas-wheel-preparing {
	to { transform: rotate(360deg); }
}

.psmas-wheel-history-content {
	min-height: 48px;
}

.psmas-wheel-history-entry span {
	font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
	.psmas-reward-wheel.is-preparing {
		animation-duration: 1.25s;
	}
}

/* Version 1.3.3: use the supplied Penshelf mark behind dashboard welcome copy. */

/* 1.3.6 secure rewards passbook */
.psmas-rewards-passbook {
	margin-top: 28px;
	padding: 24px;
	border: 1px solid var(--psmas-border, #ead3dc);
	border-radius: 18px;
	background: #fff;
}
.psmas-passbook-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
}
.psmas-passbook-heading h3 { margin: 3px 0 0; }
.psmas-passbook-heading p { margin: 0; max-width: 460px; color: var(--psmas-muted, #685c62); font-size: 13px; }
.psmas-passbook-list { display: grid; gap: 10px; }
.psmas-passbook-entry {
	display: grid;
	grid-template-columns: minmax(130px, .7fr) minmax(220px, 2fr) minmax(100px, .7fr);
	align-items: center;
	gap: 14px;
	padding: 13px 15px;
	border: 1px solid var(--psmas-border, #ead3dc);
	border-radius: 12px;
	background: #fffafb;
}
.psmas-passbook-entry__date { font-size: 12px; color: var(--psmas-muted, #685c62); }
.psmas-passbook-entry__details { display: grid; gap: 3px; min-width: 0; }
.psmas-passbook-entry__details strong { color: var(--psmas-ink, #271827); }
.psmas-passbook-entry__details small { color: var(--psmas-muted, #685c62); overflow-wrap: anywhere; }
.psmas-passbook-entry__value { justify-self: end; display: grid; gap: 2px; text-align: right; font-weight: 800; }
.psmas-passbook-entry__value b { font: inherit; }
.psmas-passbook-entry__value small { color: var(--psmas-muted, #685c62); font-size: 11px; font-weight: 500; }
.psmas-passbook-entry--credit .psmas-passbook-entry__value { color: #1b7b45; }
.psmas-passbook-entry--debit .psmas-passbook-entry__value { color: #9c2f4f; }
@media (max-width: 680px) {
	.psmas-passbook-heading { align-items: flex-start; flex-direction: column; }
	.psmas-passbook-entry { grid-template-columns: 1fr auto; }
	.psmas-passbook-entry__date { grid-column: 1 / -1; }
}

/* Version 1.3.6: customer rewards passbook pagination. */
.psmas-passbook-pagination { margin-top: 20px; }
.psmas-passbook-pagination ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.psmas-passbook-pagination a,
.psmas-passbook-pagination span { display: inline-flex; min-width: 38px; min-height: 38px; align-items: center; justify-content: center; padding: 6px 11px; border: 1px solid var(--psmas-border); border-radius: 10px; background: var(--psmas-card-bg); color: var(--psmas-fg); text-decoration: none; }
.psmas-passbook-pagination .current { background: var(--psmas-primary); border-color: var(--psmas-primary); color: #fff; }

/* Version 1.3.8: Wheel-only rewards and WooCommerce Checkout Blocks. */
.psmas-rewards-summary-grid--wheel-only {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.psmas-block-checkout-rewards,
.psmas-checkout-rewards {
	margin: 18px 0;
	padding: 16px 18px;
	border: 1px solid var(--psmas-border, #ead5dd);
	border-radius: 12px;
	background: var(--psmas-soft, #faedf2);
}
.psmas-block-checkout-rewards h3,
.psmas-checkout-rewards h3 {
	margin: 0 0 10px;
	font-size: 18px;
}
.psmas-block-checkout-rewards label,
.psmas-checkout-rewards label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-weight: 700;
	cursor: pointer;
}
.psmas-block-checkout-rewards label.is-busy {
	opacity: .65;
	cursor: wait;
}
.psmas-block-checkout-rewards input,
.psmas-checkout-rewards input {
	margin-top: 3px;
}
.psmas-block-checkout-rewards p,
.psmas-checkout-rewards p {
	margin: 8px 0 0;
	font-size: 13px;
}
@media (max-width: 640px) {
	.psmas-rewards-summary-grid--wheel-only { grid-template-columns: 1fr; }
}
