/* ==========================================================================
   Shirin Novin — WooCommerce layer (loads after main.css)
   ========================================================================== */

/* ---------- Buttons: align Woo core buttons with theme tokens ---------- */
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wc-block-components-button {
	background: var(--primary);
	color: var(--on-primary);
	border-radius: 99px;
	font-weight: 700;
	font-family: inherit;
	padding: .7rem 1.5rem;
	line-height: 1.4;
	border: 0;
	transition: background var(--t-fast) ease, transform var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.wc-block-components-button:hover {
	background: var(--primary-dark);
	color: var(--on-primary);
	transform: translateY(-1px);
}
.woocommerce .button:disabled,
.woocommerce .button.disabled {
	opacity: .55;
	transform: none;
}
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.sn-buy-now {
	background: transparent;
	color: var(--text);
	border: 1.5px solid color-mix(in srgb, var(--text) 22%, transparent);
}
.sn-buy-now:hover {
	border-color: var(--primary);
	color: var(--primary);
	background: transparent;
}

/* ---------- Shop page ---------- */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: clamp(1.1rem, 2.4vw, 1.8rem);
	margin: 0;
	padding: 0;
	list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform var(--t-fast) var(--ease-spring), box-shadow var(--t-fast) ease;
	display: flex;
	flex-direction: column;
	padding-block-end: 1.1rem;
}
.woocommerce ul.products li.product:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}
.woocommerce ul.products li.product > .woocommerce-loop-product__link {
	display: block;
	color: var(--text);
	text-decoration: none;
}
.woocommerce ul.products li.product img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0;
	margin: 0;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.02rem;
	font-weight: 800;
	padding: .9rem 1.1rem .2rem;
	color: var(--text);
}
.woocommerce ul.products li.product .price {
	color: var(--primary);
	font-weight: 800;
	padding: 0 1.1rem;
	font-size: 1rem;
}
.woocommerce ul.products li.product del { color: var(--muted); font-weight: 400; }
.woocommerce ul.products li.product .star-rating { margin: .35rem 1.1rem; }
.woocommerce ul.products li.product > .add_to_cart_button,
.woocommerce ul.products li.product > .product_type_simple {
	align-self: stretch;
	margin: .75rem 1.1rem 0 !important;
	text-align: center;
}
.woocommerce ul.products li.product > .sn-buy-now--loop {
	align-self: stretch;
	width: auto;
	margin: .55rem 1.1rem 0 !important;
	text-align: center;
}

/* wishlist/compare + buy now row on cards */
.sn-card-actions {
	display: flex;
	gap: .5rem;
	padding: .55rem 1.1rem 0;
}
.sn-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px; height: 38px;
	border-radius: 50%;
	border: 1px solid var(--border);
	color: var(--muted);
	background: var(--surface);
	transition: all var(--t-fast) ease;
}
.sn-toggle:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.sn-toggle.is-active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.sn-toggle .icon { width: 18px; height: 18px; }
.sn-buy-now--loop {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	font-size: .86rem;
	padding: .55rem 1rem;
}

/* ---------- Single product ---------- */
.woocommerce-page .site-main .product-single {
	width: min(100%, var(--container));
	max-width: 100%;
	min-width: 0;
	margin: 0 auto;
	float: none;
	clear: both;
}
.woocommerce .product-single__grid,
.woocommerce .product-single__grid > * {
	min-width: 0;
	max-width: 100%;
}
.woocommerce .product-single__grid > * { min-width: 0; }
.woocommerce .product-single__gallery .woocommerce-product-gallery,
.woocommerce .product-single__gallery div.images {
	float: none !important;
	width: 100% !important;
	max-width: 100%;
	margin: 0 !important;
}
.woocommerce .product-single__gallery .woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce .product-single__gallery .woocommerce-product-gallery img { width: 100%; }
.woocommerce .product-single__info .summary {
	float: none !important;
	width: 100% !important;
	max-width: 100%;
	margin: 0 !important;
}
.woocommerce div.product .product_title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
.woocommerce div.product p.price { color: var(--primary); font-size: 1.35rem; font-weight: 800; }
.woocommerce div.product div.images img { border-radius: var(--r); }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.woocommerce div.product form.cart div.quantity { margin: 0; }
.woocommerce div.product form.cart .button { padding: .9rem 1.8rem; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--muted); }

.sn-single-actions {
	display: flex;
	gap: .6rem;
	flex-wrap: wrap;
	margin-block: 1rem;
}
.sn-nutri-chip {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	background: color-mix(in srgb, var(--accent) 14%, transparent);
	color: var(--text);
	font-size: .82rem;
	font-weight: 600;
	border-radius: 99px;
	padding: .35rem .9rem;
	margin-block-end: .8rem;
}
.sn-nutri-chip .icon { width: 16px; height: 16px; color: var(--accent); }

/* Quantity input */
.woocommerce .quantity .qty {
	border: 1px solid var(--border);
	border-radius: 99px;
	padding: .55rem .9rem;
	background: var(--surface);
	color: var(--text);
	width: 4.5rem;
	text-align: center;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	gap: .4rem;
	list-style: none;
	padding: 0;
	margin: 2.5rem 0 1.4rem;
	border-block-end: 1px solid var(--border);
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: transparent;
	border: 0;
	border-radius: 0;
	margin: 0;
	padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: inline-block;
	padding: .8rem 1.3rem;
	font-weight: 700;
	color: var(--muted);
	border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--primary);
	background: color-mix(in srgb, var(--primary) 8%, transparent);
}
.woocommerce div.product .woocommerce-tabs .panel { margin-block-end: 2rem; }

/* Nutrition table (shared look with nut-table) */
.woocommerce .nut-table,
.nut-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r);
	overflow: hidden;
}
.nut-table caption,
.woocommerce .nut-table caption {
	caption-side: top;
	text-align: start;
	font-weight: 800;
	padding-block-end: .8rem;
	color: var(--text);
}
.nut-table th,
.nut-table td {
	padding: .75rem 1.1rem;
	border-block-end: 1px solid var(--border);
	text-align: start;
}
.nut-table tbody tr:last-child th,
.nut-table tbody tr:last-child td { border-block-end: 0; }
.nut-table th { color: var(--muted); font-weight: 600; width: 45%; }
.nut-table td { font-weight: 700; color: var(--text); }
.nut-table tbody tr:nth-child(even) { background: var(--surface-2); }

/* ---------- Messages / notices ---------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-radius: var(--r-sm);
	border-inline-start: 4px solid var(--primary);
	background: var(--surface);
	color: var(--text);
	box-shadow: var(--shadow-sm);
	padding: 1rem 1.2rem;
	list-style: none;
}
.woocommerce-message { border-inline-start-color: #2e7d32; }
.woocommerce-error { border-inline-start-color: #b32d2e; }
.woocommerce-message::before,
.woocommerce-info::before { color: var(--primary); }

/* ---------- Cart / checkout ---------- */
.woocommerce table.shop_table {
	border: 1px solid var(--border);
	border-radius: var(--r);
	border-collapse: separate;
	border-spacing: 0;
	background: var(--surface);
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border-block-end: 1px solid var(--border);
	padding: .9rem 1.1rem;
}
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout-review-order,
#order_review {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: 1.2rem;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
	border: 1px solid var(--border) !important;
	border-radius: var(--r-sm) !important;
	background: var(--surface);
	color: var(--text);
	padding: .65rem .9rem;
}
.woocommerce form .form-row label { color: var(--text); font-weight: 600; }
.woocommerce-checkout .col2-set {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
	gap: 1.5rem;
	float: none;
	width: 100%;
}
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 { float: none; width: 100%; }
.woocommerce-checkout #order_review_heading { margin-block-start: 0; }
.woocommerce-checkout #place_order { width: 100%; min-height: 3rem; font-size: 1rem; }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { font-size: .88rem; }

/* ---------- Cart button in header ---------- */
.sn-cart-btn { position: relative; }
.sn-cart-btn__count {
	position: absolute;
	inset-block-start: -4px;
	inset-inline-end: -4px;
	min-width: 19px;
	height: 19px;
	padding: 0 4px;
	border-radius: 99px;
	background: var(--primary);
	color: var(--on-primary);
	font-size: .68rem;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
.sn-cart-btn__count.is-empty { display: none; }
.sn-cart-btn__count.is-pulsing { animation: sn-pulse .5s ease; }
@keyframes sn-pulse {
	0% { transform: scale(1); }
	40% { transform: scale(1.35); }
	100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
	.sn-cart-btn__count.is-pulsing { animation: none; }
}

/* ---------- Compare table ---------- */
.sn-compare-wrap { overflow-x: auto; }
.sn-compare {
	width: 100%;
	border-collapse: collapse;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r);
	overflow: hidden;
	min-width: 560px;
}
.sn-compare th,
.sn-compare td {
	padding: .9rem 1rem;
	border-block-end: 1px solid var(--border);
	text-align: center;
	vertical-align: middle;
}
.sn-compare thead th { background: var(--surface-2); }
.sn-compare thead a { font-weight: 800; color: var(--text); }
.sn-compare thead img { width: 110px; border-radius: var(--r-sm); margin: .5rem auto 0; }
.sn-compare tbody th {
	text-align: start;
	color: var(--muted);
	font-weight: 600;
	width: 130px;
}
.sn-compare tbody tr:last-child th,
.sn-compare tbody tr:last-child td { border-block-end: 0; }

/* ---------- My Account panel ---------- */
.sn-panel {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: clamp(1.2rem, 3vw, 2rem);
	box-shadow: var(--shadow-sm);
}
.sn-panel h2 {
	font-size: 1.25rem;
	margin-block-end: 1.1rem;
}
.sn-panel__empty { color: var(--muted); }
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: .3rem;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: .7rem 1rem;
	border-radius: var(--r-sm);
	color: var(--text);
	font-weight: 600;
	background: var(--surface);
	border: 1px solid var(--border);
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: color-mix(in srgb, var(--primary) 9%, transparent);
	color: var(--primary);
	border-color: color-mix(in srgb, var(--primary) 25%, transparent);
}
.woocommerce-account .woocommerce-MyAccount-content {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: clamp(1.2rem, 3vw, 2rem);
}

/* ---------- Pagination ---------- */
.woocommerce nav.woocommerce-pagination ul {
	border: 0;
	display: flex;
	gap: .4rem;
	justify-content: center;
}
.woocommerce nav.woocommerce-pagination ul li {
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	background: var(--surface);
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	padding: .55rem 1rem;
	color: var(--text);
	min-width: 44px;
	display: inline-flex;
	justify-content: center;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--primary);
	color: var(--on-primary);
}
.woocommerce nav.woocommerce-pagination ul li a:hover { color: var(--primary); }

/* ---------- Related fallback ---------- */
.sn-related__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-sm); }
.sn-related__title { font-size: .98rem; margin: .6rem 0; }

/* ==========================================================================
   Mini-cart drawer (slide-in) + AJAX add-to-cart states
   ========================================================================== */

/* ---------- Loop button states ---------- */
.woocommerce ul.products li.product .button.sn-ajax-add { position: relative; }
.woocommerce ul.products li.product .button.sn-ajax-add.is-busy,
.sn-cart-item.is-busy { opacity: .55; pointer-events: none; }
.woocommerce ul.products li.product .button.sn-ajax-add.is-added {
	background: #2e7d32 !important;
	color: #fff !important;
}

/* ---------- Drawer ---------- */
.sn-cart-drawer { position: fixed; inset: 0; z-index: 120; }
.sn-cart-drawer[hidden] { display: none; }
.sn-cart-drawer__backdrop {
	position: absolute; inset: 0;
	background: rgba(20, 8, 6, .55); backdrop-filter: blur(4px);
	opacity: 0; transition: opacity var(--t) ease;
}
.sn-cart-drawer__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	width: min(92vw, 410px);
	background: var(--background);
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
	transition: transform var(--t) var(--ease-out);
	box-shadow: var(--shadow-lg);
}
[dir="ltr"] .sn-cart-drawer__panel { transform: translateX(100%); }
.sn-cart-drawer.is-open .sn-cart-drawer__backdrop { opacity: 1; }
.sn-cart-drawer.is-open .sn-cart-drawer__panel { transform: translateX(0); }

.sn-cart-drawer__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 1.1rem 1.4rem;
	border-block-end: 1px solid var(--border);
}
.sn-cart-drawer__head h2 {
	display: inline-flex; align-items: center; gap: .6rem;
	font-size: 1.1rem;
}
.sn-cart-drawer__badge {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 24px; height: 24px; padding: 0 7px;
	border-radius: 99px; background: var(--primary); color: var(--on-primary);
	font-size: .78rem; font-weight: 800;
}

.sn-cart-drawer__items {
	flex: 1; overflow-y: auto;
	padding: 1.1rem 1.4rem;
}
.sn-cart-drawer__empty {
	height: 100%; display: flex; flex-direction: column;
	align-items: center; justify-content: center; gap: 1rem;
	color: var(--muted); text-align: center;
}
.sn-cart-drawer__empty-icon { width: 52px; height: 52px; opacity: .4; }

/* ---------- Cart items ---------- */
.sn-cart-drawer__list {
	display: flex; flex-direction: column; gap: .9rem;
	list-style: none; margin: 0; padding: 0;
}
.sn-cart-item {
	position: relative;
	display: flex; gap: .85rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: .7rem;
	transition: opacity var(--t-fast) ease;
}
.sn-cart-item__img { flex-shrink: 0; width: 76px; }
.sn-cart-item__img img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--r-sm); }
.sn-cart-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.sn-cart-item__name {
	font-weight: 700; font-size: .92rem; color: var(--text);
	overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.sn-cart-item__name:hover { color: var(--primary); }
.sn-cart-item__price { color: var(--primary); font-weight: 800; font-size: .9rem; }
.sn-cart-item__remove {
	position: absolute; inset-block-start: .5rem; inset-inline-end: .5rem;
	width: 26px; height: 26px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--muted);
	transition: color var(--t-fast) ease, background var(--t-fast) ease;
}
.sn-cart-item__remove:hover { color: #b32d2e; background: color-mix(in srgb, #b32d2e 10%, transparent); }
.sn-cart-item__remove .icon { width: 13px; height: 13px; }

/* Quantity stepper */
.sn-cart-item__qty {
	display: inline-flex; align-items: center; gap: .3rem;
	margin-block-start: .35rem;
}
.sn-qty__btn {
	width: 28px; height: 28px; border-radius: 50%;
	border: 1px solid var(--border); background: var(--surface);
	color: var(--text); font-weight: 800; line-height: 1;
	display: inline-flex; align-items: center; justify-content: center;
	transition: border-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-fast) ease;
}
.sn-qty__btn:hover { border-color: var(--primary); color: var(--primary); transform: scale(1.06); }
.sn-qty__input {
	width: 2.6rem; height: 28px; text-align: center;
	border: 0; background: transparent; color: var(--text);
	font-weight: 800; font-size: .95rem;
	-moz-appearance: textfield;
	appearance: textfield;
}
.sn-qty__input::-webkit-outer-spin-button,
.sn-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Drawer footer ---------- */
.sn-cart-drawer__foot {
	padding: 1.1rem 1.4rem 1.4rem;
	border-block-start: 1px solid var(--border);
	display: flex; flex-direction: column; gap: .6rem;
	background: var(--surface);
}
.sn-cart-drawer__foot[hidden] { display: none; }
.sn-cart-drawer__subtotal {
	display: flex; align-items: center; justify-content: space-between;
	font-weight: 800; margin: 0 0 .3rem;
}
.sn-cart-drawer__total { color: var(--primary); font-size: 1.08rem; }

/* ---------- Toast ---------- */
.sn-toast {
	position: fixed;
	inset-block-end: 1.4rem;
	inset-inline: 0;
	margin-inline: auto;
	width: max-content; max-width: 92vw;
	background: var(--secondary); color: var(--on-secondary);
	padding: .8rem 1.5rem; border-radius: 99px;
	box-shadow: var(--shadow-lg);
	font-weight: 700; font-size: .9rem;
	opacity: 0; transform: translateY(12px);
	transition: opacity var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
	z-index: 150; pointer-events: none;
	text-align: center;
}
.sn-toast.is-visible { opacity: 1; transform: translateY(0); }
.sn-toast.is-err { background: #b32d2e; color: #fff; }

@media (prefers-reduced-motion: reduce) {
	.sn-cart-drawer__panel, .sn-cart-drawer__backdrop, .sn-toast { transition: none; }
}

/* ==========================================================================
   Shop sidebar: price range + in-stock filters (AJAX, RTL-aware)
   ========================================================================== */

.woocommerce-page .site-main,
.woocommerce-page .site-main > .section,
.woocommerce-page .site-main > .section > .container {
	min-width: 0;
	max-width: 100%;
}
.woocommerce-page .site-main > .section > .container,
.woocommerce-page .site-main > .section > .container.sn-woocommerce-container {
	width: min(100% - 2.5rem, var(--container));
	margin-inline: auto;
}
.woocommerce-page .site-main { overflow-x: clip; }
.sn-shop-layout {
	display: grid;
	grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
	gap: clamp(1rem, 2.5vw, 2rem);
	align-items: start;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}
.sn-shop-main,
.sn-shop-results,
.woocommerce ul.products {
	min-width: 0;
	max-width: 100%;
	width: 100%;
}
.woocommerce ul.products { box-sizing: border-box; }

/* ---------- Sidebar ---------- */
.sn-shop-sidebar {
	position: sticky;
	inset-block-start: calc(var(--header-h) + 1rem);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: 1.4rem;
	box-shadow: var(--shadow-sm);
}

.sn-filter-toggle {
	display: none;
	width: 100%;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	background: var(--surface-2);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	padding: .7rem 1rem;
	font: inherit; font-weight: 700; font-size: .92rem;
	cursor: pointer;
}

.sn-shop-filters { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.1rem; }
.sn-shop-filters.is-busy { opacity: .55; pointer-events: none; }

.sn-filter-group { display: flex; flex-direction: column; gap: .6rem; }
.sn-filter-group__title { font-size: .95rem; font-weight: 800; margin: 0; }
.sn-filter-range__hint { margin: 0; font-size: .8rem; color: var(--muted); }

.sn-filter-price {
	display: flex;
	align-items: center;
	gap: .5rem;
}

.sn-filter-price input[type="number"] {
	width: 100%;
	min-width: 0;
	padding: .55rem .7rem;
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	background: var(--surface-2);
	color: var(--text);
	font: inherit; font-size: .88rem;
	-moz-appearance: textfield;
}
.sn-filter-price input::-webkit-outer-spin-button,
.sn-filter-price input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sn-filter-price input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.sn-filter-price__sep { color: var(--muted); }

/* On/off switch */
.sn-fe-switch { display: flex; align-items: center; gap: .65rem; cursor: pointer; user-select: none; }
.sn-fe-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sn-fe-switch__track {
	position: relative;
	inline-size: 2.7rem; block-size: 1.5rem; flex: none;
	border-radius: 999px;
	background: color-mix(in srgb, var(--text) 18%, transparent);
	transition: background var(--t-fast) ease;
}
.sn-fe-switch__track::after {
	content: '';
	position: absolute;
	inset-block-start: 3px;
	inset-inline-start: 3px;
	inline-size: 1.14rem; block-size: 1.14rem;
	border-radius: 50%;
	background: var(--surface);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: transform var(--t-fast) var(--ease-out);
}
.sn-fe-switch input:checked + .sn-fe-switch__track { background: var(--primary); }
.sn-fe-switch input:checked + .sn-fe-switch__track::after { transform: translateX(-1.2rem); }
.sn-fe-switch input:focus-visible + .sn-fe-switch__track { outline: 2px solid var(--primary); outline-offset: 2px; }
.sn-fe-switch__label { font-size: .9rem; font-weight: 600; }

.sn-filter-submit { margin-top: .3rem; }
.sn-filter-reset { font-size: .85rem; color: var(--muted); text-align: center; }
.sn-filter-reset:hover { color: var(--primary); }

/* ---------- Toolbar ---------- */
.sn-shop-main { display: flex; flex-direction: column; gap: 1.2rem; min-width: 0; }

.sn-shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	padding: .65rem 1rem;
}

.sn-shop-toolbar__count { margin: 0; font-size: .88rem; color: var(--muted); font-weight: 600; }

.sn-shop-orderby select {
	padding: .45rem 1rem .45rem .5rem;
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	background: var(--surface-2);
	color: var(--text);
	font: inherit; font-size: .88rem;
	cursor: pointer;
}

/* ---------- Results ---------- */
.sn-shop-results { transition: opacity var(--t-fast) ease; }
.sn-shop-results.is-loading { opacity: .35; pointer-events: none; }

@media (min-width: 960px) {
	ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
	.sn-shop-layout { grid-template-columns: 1fr; }

	html.sn-shop-js .sn-filter-toggle { display: flex; }
	html.sn-shop-js .sn-shop-layout > .sn-filter-toggle--open { grid-column: 1; }
	html.sn-shop-js .sn-shop-sidebar .sn-filter-toggle--close { margin-block-end: 1rem; }

	html.sn-shop-js .sn-shop-sidebar {
		position: fixed;
		inset-block: 0;
		inset-inline-end: 0; /* RTL: anchors to the right edge */
		inline-size: min(20rem, 88vw);
		z-index: 140;
		border-radius: 0;
		box-shadow: var(--shadow-lg);
		transform: translateX(105%); /* off-canvas, direction-aware */
		transition: transform var(--t) var(--ease-out);
		overflow-y: auto;
		overscroll-behavior: contain;
	}
	html:not([dir="rtl"]).sn-shop-js .sn-shop-sidebar { transform: translateX(-105%); }

	html.sn-shop-js body.sn-filters-open .sn-shop-sidebar { transform: translateX(0); }
	html.sn-shop-js body.sn-filters-open::after {
		content: '';
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, .45);
		z-index: 135;
	}

	.sn-shop-filters { margin-top: 1rem; }

	/* Keep wide WooCommerce tables inside the viewport instead of forcing
	 * the whole page to overflow horizontally on small screens. */
	.woocommerce table.shop_table,
	.woocommerce-cart-form,
	.woocommerce-checkout-review-order-table { display: block; max-width: 100%; overflow-x: auto; }
	.woocommerce table.shop_table { white-space: nowrap; }
}

@media (max-width: 600px) {
	.woocommerce-checkout .col2-set { grid-template-columns: 1fr; gap: .8rem; }
	.woocommerce form .form-row-first,
	.woocommerce form .form-row-last { width: 100%; float: none; }
	.woocommerce form .form-row { margin-block-end: .8rem; }
	.woocommerce div.product .woocommerce-tabs ul.tabs { overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
	.woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.sn-shop-sidebar { transition: none; }
}

/* ==========================================================================
   Account dashboard: welcome layout + stats + recent orders
   ========================================================================== */

.sn-account-dash { display: flex; flex-direction: column; gap: 1.6rem; }

/* ---------- Welcome header ---------- */
.sn-dash-welcome {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, var(--surface)), var(--surface) 65%);
	border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
	border-radius: var(--r);
	padding: clamp(1.1rem, 3vw, 1.7rem);
}
.sn-dash-welcome__avatar { flex: none; inline-size: 4.5rem; block-size: 4.5rem; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-sm); }
.sn-dash-welcome__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sn-dash-welcome__hi { margin: 0 0 .25rem; font-size: 1.15rem; font-weight: 800; }
.sn-dash-welcome__hi strong { color: var(--primary); }
.sn-dash-welcome__sub { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- Stat cards ---------- */
.sn-dash-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: .9rem;
}
.sn-dash-stat {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .15rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	padding: .95rem 1.1rem;
	color: var(--text);
	text-decoration: none;
	box-shadow: var(--shadow-sm);
	transition: transform var(--t-fast) var(--ease-out), border-color var(--t-fast) ease;
}
a.sn-dash-stat:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.sn-dash-stat__icon { color: var(--primary); margin-block-end: .3rem; }
.sn-dash-stat__icon svg { width: 1.5rem; height: 1.5rem; }
.sn-dash-stat__num { font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.sn-dash-stat__num .amount { font-size: 1.05rem; } /* wc_price wrapper */
.sn-dash-stat__label { color: var(--muted); font-size: .82rem; font-weight: 600; }

/* ---------- Orders + info grid ---------- */
.sn-dash-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
	gap: 1.4rem;
	align-items: start;
}

.sn-dash-orders__table {
	width: 100%;
	border-collapse: collapse;
	font-size: .92rem;
}
.sn-dash-orders__table th {
	text-align: start;
	color: var(--muted);
	font-size: .8rem;
	font-weight: 700;
	padding: .5rem .6rem;
	border-block-end: 2px solid var(--border);
}
.sn-dash-orders__table td { padding: .7rem .6rem; border-block-end: 1px solid var(--border); }
.sn-dash-orders__table tr:last-child td { border-block-end: 0; }

/* Status badges */
.sn-order-badge {
	display: inline-block;
	padding: .25rem .75rem;
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 700;
	background: var(--surface-2);
	color: var(--text);
	border: 1px solid var(--border);
}
.sn-order-badge.is-completed { background: color-mix(in srgb, #2e9e5b 14%, transparent); color: #1d7a42; border-color: color-mix(in srgb, #2e9e5b 35%, transparent); }
.sn-order-badge.is-processing { background: color-mix(in srgb, var(--accent) 18%, transparent); color: color-mix(in srgb, var(--accent) 60%, var(--text)); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.sn-order-badge.is-on-hold,
.sn-order-badge.is-pending { background: color-mix(in srgb, #d9a441 16%, transparent); color: #9c6f14; border-color: color-mix(in srgb, #d9a441 40%, transparent); }
.sn-order-badge.is-cancelled,
.sn-order-badge.is-failed { background: color-mix(in srgb, #b32d2e 12%, transparent); color: #b32d2e; border-color: color-mix(in srgb, #b32d2e 35%, transparent); }
.sn-order-badge.is-refunded { background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--muted); }

.sn-dash-orders__view { font-weight: 700; font-size: .85rem; }
.sn-dash-orders__all { display: inline-block; margin-block-start: .9rem; font-weight: 700; font-size: .9rem; }
.sn-dash-orders__all:hover { color: var(--primary); }

/* ---------- Account info card ---------- */
.sn-dash-info__list { margin: 0; display: flex; flex-direction: column; gap: .8rem; }
.sn-dash-info__list div { display: flex; justify-content: space-between; gap: 1rem; border-block-end: 1px dashed var(--border); padding-block-end: .7rem; }
.sn-dash-info__list dt { color: var(--muted); font-size: .85rem; font-weight: 600; }
.sn-dash-info__list dd { margin: 0; font-weight: 700; font-size: .9rem; text-align: start; word-break: break-word; }
.sn-dash-info__actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-block-start: 1.2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
	.sn-dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sn-dash-grid { grid-template-columns: 1fr; }

	/* Order table collapses to stacked cards */
	.sn-dash-orders__table thead { display: none; }
	.sn-dash-orders__table tr { display: block; border: 1px solid var(--border); border-radius: var(--r-sm); padding: .8rem 1rem; margin-block-end: .8rem; }
	.sn-dash-orders__table td { display: flex; justify-content: space-between; align-items: center; border: 0; padding: .3rem 0; }
	.sn-dash-orders__table td::before {
		content: attr(data-label);
		color: var(--muted);
		font-weight: 700;
		font-size: .8rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	a.sn-dash-stat { transition: none; }
}

/* ==========================================================================
   Customer support panel (My Account → پشتیبانی)
   ========================================================================== */

.sn-support-list { display: flex; flex-direction: column; gap: .7rem; margin-block: 1.1rem; }

.sn-support-item {
	display: flex;
	flex-direction: column;
	gap: .45rem;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	padding: .85rem 1.05rem;
	color: var(--text);
	text-decoration: none;
	transition: border-color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
}
.sn-support-item:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); transform: translateY(-2px); }
.sn-support-item__title { font-weight: 700; font-size: .95rem; }
.sn-support-item__meta { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; color: var(--muted); font-size: .8rem; }

/* New-ticket accordion */
.sn-support-new { margin-block-start: 1.4rem; }
.sn-support-new > summary { display: inline-flex; cursor: pointer; list-style: none; }
.sn-support-new > summary::-webkit-details-marker { display: none; }
.sn-support-new__form {
	margin-block-start: 1rem;
	display: flex;
	flex-direction: column;
	gap: .9rem;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	padding: 1.1rem;
}
.sn-support-new__form label strong { display: block; margin-block-end: .35rem; }
.sn-support-new__form input[type="text"],
.sn-support-new__form select,
.sn-support-new__form textarea,
.sn-support-reply-form textarea {
	width: 100%;
	padding: .6rem .8rem;
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	background: var(--surface);
	color: var(--text);
	font: inherit;
	font-size: .92rem;
}
.sn-support-new__form input:focus,
.sn-support-new__form select:focus,
.sn-support-new__form textarea:focus,
.sn-support-reply-form textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }

/* Thread view */
.sn-support-back { display: inline-block; margin-block-end: .8rem; font-size: .88rem; color: var(--muted); }
.sn-support-back:hover { color: var(--primary); }
.sn-support-meta { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; color: var(--muted); font-size: .85rem; margin-block: .4rem 1.2rem; }

.sn-support-msgs {
	display: flex;
	flex-direction: column;
	gap: .9rem;
	margin-block-end: 1.3rem;
}
.sn-msg {
	max-width: 85%;
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	padding: .8rem 1.05rem;
	background: var(--surface-2);
}
.sn-msg.is-customer { align-self: flex-start; background: var(--surface-2); }
.sn-msg.is-staff {
	align-self: flex-end;
	background: color-mix(in srgb, var(--primary) 8%, var(--surface));
	border-color: color-mix(in srgb, var(--primary) 25%, var(--border));
}
.sn-msg__head {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	font-size: .78rem;
	color: var(--muted);
	margin-block-end: .45rem;
}
.sn-msg__head strong { color: var(--text); font-size: .85rem; }
.sn-msg__body { white-space: pre-wrap; font-size: .92rem; line-height: 1.8; }

.sn-support-reply-form { display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }
.sn-support-reply-form textarea { resize: vertical; }
.sn-support-form-msg { margin: 0; font-size: .85rem; font-weight: 600; color: #1d7a42; }
.sn-support-form-msg.is-err { color: #b32d2e; }
.sn-support-hp { position: absolute; inset-inline-start: -9999px; opacity: 0; }
.sn-support-closed-note { color: var(--muted); font-size: .9rem; }
form.is-busy { opacity: .6; pointer-events: none; }

@media (max-width: 600px) {
	.sn-msg { max-width: 100%; }
}

/* ---------- Support teaser on the account dashboard ---------- */
.sn-dash-support { margin-block-start: .4rem; }
.sn-dash-support__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin: 0;
}
.sn-dash-support__count { margin: 0; font-size: .95rem; color: var(--muted); }
.sn-dash-support__count strong { color: var(--primary); font-size: 1.1rem; }

.sn-dash-support__latest {
	display: flex;
	align-items: center;
	gap: .8rem;
	flex-wrap: wrap;
	margin-block-start: .95rem;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	padding: .75rem 1rem;
	color: var(--text);
	text-decoration: none;
	transition: border-color var(--t-fast) ease;
}
.sn-dash-support__latest:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.sn-dash-support__title { font-weight: 700; font-size: .9rem; }
.sn-dash-support__reply {
	color: var(--muted);
	font-size: .84rem;
	flex-basis: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ==========================================================================
   Customer Club (باشگاه مشتریان)
   ========================================================================== */

.sn-club__earning-note { margin: -.65rem 0 1.15rem; color: var(--muted); font-size: .88rem; }
.sn-club__summary {
	display: flex;
	align-items: center;
	justify-content: space-around;
	gap: 1.4rem;
	flex-wrap: wrap;
	background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, var(--surface)), var(--surface) 70%);
	border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
	border-radius: var(--r);
	padding: 1.5rem;
	margin-block-end: 1.3rem;
	text-align: center;
}
.sn-club__points-num { display: block; font-size: 2.2rem; font-weight: 800; color: var(--primary); line-height: 1.15; }
.sn-club__points-label { color: var(--muted); font-size: .88rem; font-weight: 600; }
.sn-club__tier-badge {
	display: inline-block;
	padding: .4rem 1.3rem;
	border-radius: 999px;
	font-weight: 800;
	border: 1px solid var(--border);
	background: var(--surface);
}
.sn-club__tier-badge.is-bronze { color: #a05a2c; background: color-mix(in srgb, #cd7f32 16%, transparent); border-color: color-mix(in srgb, #cd7f32 40%, transparent); }
.sn-club__tier-badge.is-silver { color: #5e6b75; background: color-mix(in srgb, #a8b4bd 22%, transparent); border-color: color-mix(in srgb, #a8b4bd 45%, transparent); }
.sn-club__tier-badge.is-gold { color: #9c6f14; background: color-mix(in srgb, var(--accent) 20%, transparent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.sn-club__tier-next { margin: .5rem 0 0; color: var(--muted); font-size: .85rem; }

.sn-club__tiers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .8rem;
	margin-block-end: 1.4rem;
}
.sn-club__tier-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	padding: .7rem 1rem;
	font-size: .9rem;
	opacity: .55;
}
.sn-club__tier-item.is-reached { opacity: 1; border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.sn-club__tier-item span { color: var(--muted); font-size: .82rem; }

.sn-club__redeem { margin-block-end: 1.4rem; }
.sn-club__redeem > summary { display: inline-flex; cursor: pointer; list-style: none; }
.sn-club__redeem > summary::-webkit-details-marker { display: none; }
.sn-club__redeem-form {
	margin-block-start: 1rem;
	display: flex;
	align-items: flex-end;
	gap: .7rem;
	flex-wrap: wrap;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	padding: 1rem;
}
.sn-club__hint { width: 100%; margin: 0; color: var(--muted); font-size: .85rem; }
.sn-club__redeem-form input[type="number"] {
	width: 9rem;
	padding: .55rem .7rem;
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	background: var(--surface);
	color: var(--text);
	font: inherit;
}
.sn-club__table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sn-club__table th { text-align: start; color: var(--muted); font-size: .8rem; padding: .45rem .6rem; border-block-end: 2px solid var(--border); }
.sn-club__table td { padding: .65rem .6rem; border-block-end: 1px solid var(--border); }
.sn-club__table td.is-plus { color: #1d7a42; font-weight: 800; }
.sn-club__table td.is-minus { color: #b32d2e; font-weight: 800; }

@media (max-width: 600px) {
	.sn-club__tiers { grid-template-columns: 1fr; }
	.sn-club__table thead { display: none; }
	.sn-club__table tr { display: block; border: 1px solid var(--border); border-radius: var(--r-sm); padding: .7rem 1rem; margin-block-end: .7rem; }
	.sn-club__table td { display: flex; justify-content: space-between; border: 0; padding: .25rem 0; }
	.sn-club__table td::before { content: attr(data-label); color: var(--muted); font-weight: 700; font-size: .8rem; }
	.sn-club__table td.is-plus::before, .sn-club__table td.is-minus::before { color: inherit; }
}

/* ---------- Satisfaction rating on closed tickets ---------- */
.sn-rating {
	display: flex;
	align-items: center;
	gap: .8rem;
	flex-wrap: wrap;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	padding: .8rem 1.1rem;
	margin-block: .4rem 1rem;
}
.sn-rating__label { font-weight: 700; font-size: .9rem; }
.sn-rating__stars { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.sn-rating__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sn-rating__stars label {
	font-size: 1.5rem;
	line-height: 1;
	color: var(--border);
	cursor: pointer;
	transition: color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
}
.sn-rating__stars label:hover,
.sn-rating__stars label:hover ~ label,
.sn-rating__stars input:checked ~ label { color: var(--accent); transform: scale(1.12); }
.sn-rating__stars input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }
.sn-rating--done { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.sn-rating__thanks { margin: 0; font-weight: 700; font-size: .92rem; display: flex; align-items: center; gap: .5rem; }
.sn-rating .sn-stars { font-size: 1.1rem; }

/* ---------- FAQ suggestions in the new-ticket form ---------- */
.sn-faq-suggest {
	background: color-mix(in srgb, var(--accent) 8%, var(--surface));
	border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
	border-radius: var(--r-sm);
	padding: .8rem 1rem;
}
.sn-faq-suggest__title { margin: 0 0 .55rem; font-size: .82rem; font-weight: 700; color: var(--muted); }
.sn-faq-suggest__item {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	margin-block-end: .45rem;
}
.sn-faq-suggest__item summary {
	cursor: pointer;
	list-style: none;
	font-weight: 700;
	font-size: .88rem;
	padding: .55rem .8rem;
	display: flex;
	align-items: center;
	gap: .5rem;
}
.sn-faq-suggest__item summary::-webkit-details-marker { display: none; }
.sn-faq-suggest__item summary::before { content: '+'; color: var(--primary); font-weight: 800; }
.sn-faq-suggest__item[open] summary::before { content: '−'; }
.sn-faq-suggest__item p { margin: 0; padding: 0 .8rem .7rem 1.6rem; color: var(--muted); font-size: .86rem; line-height: 1.8; }

/* --- FAQ suggestion thumbs feedback ------------------------------------ */
.sn-faq-suggest__vote { display: flex; align-items: center; gap: .4rem; padding: 0 .8rem .7rem 1.6rem; }
.sn-faq-suggest__vote-label { font-size: .78rem; color: var(--muted); }
.sn-faq-vote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); cursor: pointer; font-size: .95rem; line-height: 1; padding: .3rem .55rem; transition: transform .15s ease, border-color .15s ease; }
.sn-faq-vote:hover { transform: translateY(-1px); border-color: var(--primary); }
.sn-faq-suggest__vote.is-voted .sn-faq-vote { opacity: .35; pointer-events: none; }
.sn-faq-suggest__vote[data-voted="up"] .sn-faq-vote[data-vote="up"],
.sn-faq-suggest__vote[data-voted="down"] .sn-faq-vote[data-vote="down"] { opacity: 1; border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.sn-faq-suggest__item.is-voted p { color: var(--text); }

/* --- Deep-link highlight for the newest staff reply --------------------- */
.sn-msg:target { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent); }

/* --- Open-ticket chips in the support summary card ---------------------- */
.sn-dash-support__chips { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.sn-dash-support__chip {
	display: inline-flex; align-items: center; gap: .45rem;
	max-width: 100%;
	padding: .38rem .7rem;
	border: 1px solid var(--border); border-radius: 999px;
	background: var(--surface);
	font-size: .82rem;
	transition: border-color .15s ease, background .15s ease;
}
.sn-dash-support__chip:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.sn-dash-support__chip-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 15rem; }
.sn-dash-support__more { margin: .55rem 0 0; font-size: .8rem; color: var(--muted); }

/* --- Close-or-rate nudge (ticket waiting on the customer) --------------- */
.sn-dash-support__nudge {
	margin-block-start: .9rem;
	padding: .9rem 1rem;
	border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
	border-inline-start: 3px solid var(--accent);
	border-radius: var(--r-sm);
	background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}
.sn-dash-support__nudge p { margin: 0 0 .7rem; font-size: .86rem; line-height: 1.8; }
.sn-dash-support__nudge-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* --- Gold-tier member badge on the support card -------------------------- */
.sn-dash-support--gold { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.sn-dash-support__gold {
	display: inline-flex; align-items: center;
	margin-inline-start: .5rem;
	padding: .12rem .55rem;
	border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--accent) 14%, transparent);
	color: var(--accent);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .02em;
	vertical-align: middle;
}

/* --- Gold-tier club badge on product reviews --- */
.sn-review-gold {
	display: inline-block;
	margin-inline-start: 4px;
	background: color-mix(in srgb, var(--accent) 18%, transparent);
	color: var(--accent);
	border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
	border-radius: 999px;
	padding: 0 8px;
	font-size: .78em;
	line-height: 1.4;
	font-weight: 600;
	white-space: nowrap;
}

/* --- SMS opt-out privacy note (checkout) --------------------------- */
.sn-sms-privacy { font-size: 12px; line-height: 1.8; color: #6b6b6b; margin: 4px 0 16px; }
.sn-sms-privacy a { color: var(--primary, #c2213d); text-decoration: underline; text-underline-offset: 2px; }
.sn-sms-privacy a:hover { color: #a01c33; }
