/* .63.40.220: right-to-left copy of rewards.css. rewards.css uses logical properties only (inline/block), so the rules are the same; keep the two files in step. */
/* .63.40.220 (owner, 11 Nov 2026): rewards - the homepage "More Than A Store" section (template-parts/home/rewards.php)
 * and the /rewards/ page (page-rewards.php). Loaded only on the front page and the Rewards template.
 * Every card has its own coloured gradient icon tile that floats gently; the hero graphic floats as one piece.
 * Logical properties only, so rewards-rtl.css is the same rules. No motion with prefers-reduced-motion. */

/* ---------- colours per reward ---------- */
.sx-rw-tone--refer{ --a: #2563EB; --b: #60A5FA; }
.sx-rw-tone--creator{ --a: #E11D48; --b: #FB923C; }
.sx-rw-tone--studio{ --a: #7C3AED; --b: #A78BFA; }
.sx-rw-tone--birthday{ --a: #DB2777; --b: #F472B6; }
.sx-rw-tone--topup{ --a: #059669; --b: #34D399; }
.sx-rw-tone--bulk{ --a: #FD7702; --b: #FFB45E; }
.sx-rw-tone--renew{ --a: #4F46E5; --b: #818CF8; }
.sx-rw-tone--members{ --a: #0284C7; --b: #7DD3FC; }
.sx-rw-tone--firstvideo{ --a: #7C3AED; --b: #A78BFA; }
.sx-rw-tone--music{ --a: #C026D3; --b: #E879F9; }
.sx-rw-tone--script{ --a: #0D9488; --b: #5EEAD4; }
.sx-rw-tone--daily{ --a: #D97706; --b: #FBBF24; }
.sx-rw-tone--packs{ --a: #2563EB; --b: #60A5FA; }
.sx-rw-tone--bundles{ --a: #E11D48; --b: #FB7185; }
.sx-rw-tone--refund{ --a: #059669; --b: #34D399; }
.sx-rw-tone--courses{ --a: #0891B2; --b: #22D3EE; }
.sx-rw-tone--lesson{ --a: #4F46E5; --b: #818CF8; }
.sx-rw-tone--chat{ --a: #7C3AED; --b: #A78BFA; }
.sx-rw-tone--gift{ --a: #DB2777; --b: #F472B6; }
.sx-rw-tone--warranty{ --a: #16A34A; --b: #4ADE80; }
.sx-rw-tone--tips{ --a: #0284C7; --b: #38BDF8; }
.sx-rw-tone--save1000{ --a: #E11D48; --b: #FB923C; }
.sx-rw-tone--drama{ --a: #D97706; --b: #FBBF24; }

/* ---------- grid ---------- */
.sx-rw-grid{ display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-block-start: 8px; }
@media (min-width: 600px){
	.sx-rw-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
	.sx-rw-grid--one{ grid-template-columns: minmax(0, 420px); justify-content: center; }
	.sx-rw-grid--few{ max-width: 860px; margin-inline: auto; }
}
@media (min-width: 1024px){
	.sx-rw-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
	.sx-rw-grid--page{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sx-rw-grid--page.sx-rw-grid--few{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sx-rw-grid--page.sx-rw-grid--one{ grid-template-columns: minmax(0, 420px); }
}

/* ---------- card ---------- */
html body .sx-rw-card{
	position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0;
	min-width: 0; margin: 0; padding: 22px 20px 20px;
	border: 1px solid var(--glass-border, rgba(28, 20, 16, .10)); border-radius: 20px;
	background: var(--surface-bg, #FFFFFF);
	box-shadow: 0 18px 40px -30px rgba(28, 20, 16, .45);
	overflow-wrap: anywhere; text-align: start;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
html body .sx-rw-card:hover{ transform: translateY(-3px); border-color: color-mix(in srgb, var(--a, #FD7702) 40%, transparent); box-shadow: 0 24px 46px -28px color-mix(in srgb, var(--a, #FD7702) 70%, transparent); }
html body .sx-rw-card[hidden]{ display: none !important; }

.sx-rw-tile{
	flex: 0 0 auto; width: 58px; height: 58px; margin-block-end: 16px; border-radius: 18px;
	display: grid; place-items: center; color: #FFFFFF;
	background: linear-gradient(135deg, var(--a, #FD7702), var(--b, #FFB45E));
	box-shadow: 0 14px 26px -14px var(--a, #FD7702), inset 0 1px 0 rgba(255, 255, 255, .25);
	animation: sxRwFloat 6.5s ease-in-out infinite; will-change: transform;
}
.sx-rw-tile svg, .sx-rw-tile .sx-ico{ width: 28px !important; height: 28px !important; color: #FFFFFF !important; stroke: currentColor; }
@keyframes sxRwFloat{ 0%, 100%{ transform: translateY(0); } 50%{ transform: translateY(-6px); } }
.sx-rw-grid > :nth-child(8n+1) .sx-rw-tile{ animation-delay: 0s; }
.sx-rw-grid > :nth-child(8n+2) .sx-rw-tile{ animation-delay: -1.4s; animation-duration: 7.2s; }
.sx-rw-grid > :nth-child(8n+3) .sx-rw-tile{ animation-delay: -2.8s; }
.sx-rw-grid > :nth-child(8n+4) .sx-rw-tile{ animation-delay: -4.2s; animation-duration: 7.6s; }
.sx-rw-grid > :nth-child(8n+5) .sx-rw-tile{ animation-delay: -.7s; animation-duration: 7s; }
.sx-rw-grid > :nth-child(8n+6) .sx-rw-tile{ animation-delay: -2.1s; }
.sx-rw-grid > :nth-child(8n+7) .sx-rw-tile{ animation-delay: -3.5s; animation-duration: 7.4s; }
.sx-rw-grid > :nth-child(8n+8) .sx-rw-tile{ animation-delay: -4.9s; animation-duration: 6.8s; }

html body .sx-rw-card .sx-rw-card__title{ margin: 0 0 8px; font-size: 1.125rem; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; color: var(--text-strong, #1C1410); }
html body .sx-rw-card .sx-rw-card__line{ margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--text-main, #3A2E26); }
html body .sx-rw-card .sx-rw-card__line b,
html body .sx-rw-card .sx-rw-how b{ font-weight: 800; color: #C2410C; } /* review: 5.2:1 on white (#E25A00 was under 4.5:1) */

.sx-rw-ticks{ list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
html body .sx-rw-ticks li{ display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: .875rem; line-height: 1.45; color: var(--text-main, #3A2E26); }
.sx-rw-ticks__ico{ flex: 0 0 auto; width: 20px; height: 20px; margin-block-start: 1px; border-radius: 50%; display: grid; place-items: center; color: #FFFFFF; background: #16A34A; }
.sx-rw-ticks__ico svg{ width: 12px; height: 12px; stroke-width: 3; }

html body .sx-rw-card .sx-rw-how{ margin: 12px 0 0; padding-block-start: 12px; border-block-start: 1px dashed var(--glass-border, rgba(28, 20, 16, .12)); font-size: .875rem; line-height: 1.6; color: var(--text-muted, #6B5E54); }
.sx-rw-how__label{ font-weight: 700; color: var(--text-strong, #1C1410); }

html body .sx-rw-card .sx-rw-code{ display: inline-flex; align-items: center; gap: 10px; margin: 12px 0 0; padding-block: 6px; padding-inline: 14px 6px; border: 1.5px dashed color-mix(in srgb, var(--a, #FD7702) 60%, transparent); border-radius: 999px; font-size: .8125rem; color: var(--text-muted, #6B5E54); }
.sx-rw-code b{ padding: 6px 12px; border-radius: 999px; font-size: .875rem; font-weight: 800; letter-spacing: .06em; color: #FFFFFF; background: linear-gradient(135deg, #BE123C, #C2410C); } /* review: white text needs a deep fill (5:1 or more) */

.sx-rw-actions{ display: flex; flex-wrap: wrap; gap: 8px; width: 100%; margin-block-start: auto; padding-block-start: 16px; }
html body a.sx-rw-btn{ min-height: 44px; padding: 10px 16px; gap: 8px; font-size: .875rem; font-weight: 700; border-radius: 999px; }
.sx-rw-btn__go{ display: inline-grid; place-items: center; transition: transform .2s ease; }
.sx-rw-btn__go svg{ width: 16px; height: 16px; }
.sx-rw-btn:hover .sx-rw-btn__go, .sx-rw-btn:focus-visible .sx-rw-btn__go,
.sx-rw-more__btn:hover .sx-rw-btn__go, .sx-rw-more__btn:focus-visible .sx-rw-btn__go{ transform: translateX(3px); }
[dir="rtl"] .sx-rw-btn__go svg{ transform: scaleX(-1); }
[dir="rtl"] .sx-rw-btn:hover .sx-rw-btn__go, [dir="rtl"] .sx-rw-btn:focus-visible .sx-rw-btn__go,
[dir="rtl"] .sx-rw-more__btn:hover .sx-rw-btn__go, [dir="rtl"] .sx-rw-more__btn:focus-visible .sx-rw-btn__go{ transform: translateX(-3px); }

/* ---------- the "Right now" card (homepage) ---------- */
html body .sx-rw-card.sx-rw-now{
	border: 2px solid rgba(253, 119, 2, .55);
	background: linear-gradient(160deg, rgba(253, 119, 2, .12), var(--surface-bg, #FFFFFF) 58%);
	box-shadow: 0 22px 46px -28px rgba(253, 119, 2, .75);
}
.sx-rw-pill{ display: inline-flex; align-items: center; gap: 7px; margin-block-end: 14px; padding: 5px 12px; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #FFFFFF; background: linear-gradient(135deg, #BE123C, #C2410C); } /* review: white 12px text, 5:1 or more (it ended on #FD7702, 2.7:1) */
.sx-rw-pill__dot{ width: 7px; height: 7px; border-radius: 50%; background: #FFFFFF; animation: sxRwPulse 1.8s ease-in-out infinite; }
@keyframes sxRwPulse{ 0%, 100%{ opacity: 1; } 50%{ opacity: .35; } }
html body .sx-rw-now .sx-rw-slide{ flex: 1 1 auto; width: 100%; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; animation: sxRwIn .5s ease both; }
html body .sx-rw-now .sx-rw-slide:hover{ transform: none; box-shadow: none; }
@keyframes sxRwIn{ from{ opacity: 0; } to{ opacity: 1; } }
.sx-rw-dots{ display: flex; justify-content: center; gap: 6px; width: 100%; margin-block-start: 12px; }
.sx-rw-dots[hidden]{ display: none; }
.sx-rw-dots i{ width: 7px; height: 7px; border-radius: 50%; background: rgba(253, 119, 2, .25); transition: background-color .3s ease, width .3s ease; }
.sx-rw-dots i.is-on{ width: 18px; border-radius: 4px; background: #FD7702; }

.sx-rw-more{ display: flex; justify-content: center; margin-block-start: 28px; }
html body a.sx-rw-more__btn{ min-height: 48px; padding-inline: 26px; }

/* ---------- /rewards/ page ---------- */
.rw-hero__grid{ display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.rw-hero__copy{ min-width: 0; }
.rw-hero__actions .bm-btn svg{ width: 18px; height: 18px; }
.rw-jump{ display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 24px; }
html body .rw-jump a{ display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--glass-border); border-radius: 999px; background: rgba(253, 119, 2, .06); color: var(--text-main); font-size: .875rem; font-weight: 600; text-decoration: none; }
html body .rw-jump a:hover, html body .rw-jump a:focus-visible{ border-color: var(--primary-color, #FD7702); color: var(--primary-color, #FD7702); }
.rw-jump a[hidden]{ display: none !important; }
.rw-page .rw-sec{ scroll-margin-block-start: 80px; }

.rw-hero__art{ position: relative; min-width: 0; display: flex; justify-content: center; }
.rw-art{ position: relative; width: min(100%, 440px); padding-block: 18px; animation: sxRwArt 7.5s ease-in-out infinite; will-change: transform; }
@keyframes sxRwArt{ 0%, 100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }
@keyframes sxRwArtPh{ 0%, 100%{ transform: translateY(0); } 50%{ transform: translateY(-7px); } }
.rw-art__svg{ display: block; width: 100%; height: auto; overflow: visible; }
.rw-art__shadow{ fill: rgba(28, 20, 16, .12); }
.rw-art__star{ transform-box: fill-box; transform-origin: center; animation: sxRwTwinkle 3.2s ease-in-out infinite; }
.rw-art__star--2{ animation-delay: -.8s; }
.rw-art__star--3{ animation-delay: -1.6s; }
.rw-art__star--4{ animation-delay: -2.4s; }
.rw-art__star--5{ animation-delay: -1.2s; }
.rw-art__star--6{ animation-delay: -2s; }
@keyframes sxRwTwinkle{ 0%, 100%{ opacity: 1; transform: scale(1); } 50%{ opacity: .4; transform: scale(.75); } }
.rw-toast{ position: absolute; display: flex; align-items: center; gap: 10px; max-width: 64%; padding-block: 10px; padding-inline: 10px 14px; border-radius: 16px; background: var(--surface-bg, #FFFFFF); border: 1px solid var(--glass-border); box-shadow: 0 18px 40px -18px rgba(28, 20, 16, .5); }
.rw-toast b{ display: block; font-size: .8125rem; font-weight: 800; line-height: 1.2; color: var(--text-strong, #1C1410); }
.rw-toast small{ display: block; font-size: .6875rem; color: var(--text-muted, #6B5E54); }
.rw-toast--friend{ inset-block-start: 6%; inset-inline-end: 0; }
.rw-toast--bday{ inset-block-end: 4%; inset-inline-start: 0; }
.rw-toast__ico{ flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #FFFFFF; }
.rw-toast__ico svg{ width: 16px; height: 16px; color: #FFFFFF; }
.rw-toast__ico--blue{ background: linear-gradient(135deg, #2563EB, #60A5FA); }
.rw-toast__ico--pink{ background: linear-gradient(135deg, #DB2777, #F472B6); }

.rw-note-sec{ padding-block: 8px 48px !important; }
html body .rw-note{ display: flex; align-items: flex-start; gap: 12px; max-width: 760px; margin: 0 auto; padding: 16px 18px; border: 1px solid rgba(253, 119, 2, .3); border-radius: 16px; background: rgba(253, 119, 2, .06); font-size: .9375rem; line-height: 1.6; color: var(--text-main); }
.rw-note strong{ color: var(--text-strong, #1C1410); }
.rw-note__ico{ flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #FFFFFF; background: linear-gradient(135deg, #FD7702, #FFB45E); }
.rw-note__ico svg{ width: 18px; height: 18px; }
.rw-cta-actions{ display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

@media (max-width: 960px){
	.rw-hero__grid{ grid-template-columns: minmax(0, 1fr); }
	.rw-hero__art{ order: 2; }
	.rw-art{ width: min(100%, 400px); }
}

/* ---------- phone ---------- */
@media (max-width: 480px){
	/* 16px side gutters on phones (sections.css sets 8px !important on every .nt-container at this width) */
	html body .sx-rw-home > .nt-container, html body .rw-page > section > .nt-container{ padding-inline: 16px !important; }
	html body .sx-rw-card{ padding: 18px 16px 16px; border-radius: 18px; }
	.sx-rw-tile{ width: 52px; height: 52px; margin-block-end: 14px; border-radius: 16px; }
	.sx-rw-tile svg, .sx-rw-tile .sx-ico{ width: 26px !important; height: 26px !important; }
	html body .sx-rw-card .sx-rw-card__title{ font-size: 1.0625rem; }
	html body a.sx-rw-btn{ flex: 1 1 auto; }
	html body a.sx-rw-more__btn{ width: 100%; }
	.rw-hero__actions .bm-btn, .rw-cta-actions .bm-btn{ width: 100%; }
	.rw-art{ padding-block: 12px; }
	.rw-art{ animation-name: sxRwArtPh; }
	.rw-toast{ gap: 8px; padding-block: 8px; padding-inline: 8px 10px; border-radius: 14px; max-width: 70%; }
	.rw-toast__ico{ width: 28px; height: 28px; border-radius: 9px; }
	.rw-toast b{ font-size: .75rem; }
	.rw-toast small{ font-size: .625rem; }
	.rw-note{ padding: 14px; font-size: .875rem; }
}

/* ---------- dark mode ---------- */
html[data-sx-theme="dark"] body .sx-rw-card{ background: var(--card-bg, #1F1916); border-color: rgba(255, 236, 220, .10); box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .9); }
html[data-sx-theme="dark"] body .sx-rw-card:hover{ border-color: color-mix(in srgb, var(--b, #FFB45E) 45%, transparent); box-shadow: 0 24px 46px -26px rgba(0, 0, 0, .95); }
html[data-sx-theme="dark"] body .sx-rw-card .sx-rw-card__line b,
html[data-sx-theme="dark"] body .sx-rw-card .sx-rw-how b{ color: #FF9A4D; }
html[data-sx-theme="dark"] body .sx-rw-card .sx-rw-how{ border-block-start-color: rgba(255, 236, 220, .14); }
html[data-sx-theme="dark"] body .sx-rw-card.sx-rw-now{ border-color: rgba(253, 119, 2, .6); background: linear-gradient(160deg, rgba(253, 119, 2, .16), var(--card-bg, #1F1916) 58%); box-shadow: 0 22px 46px -26px rgba(253, 119, 2, .45); }
html[data-sx-theme="dark"] body .sx-rw-now .sx-rw-slide, html[data-sx-theme="dark"] body .sx-rw-now .sx-rw-slide:hover{ background: none; box-shadow: none; }
html[data-sx-theme="dark"] .sx-rw-tile{ box-shadow: 0 14px 26px -14px color-mix(in srgb, var(--a, #FD7702) 80%, #000000), inset 0 1px 0 rgba(255, 255, 255, .2); }
html[data-sx-theme="dark"] .sx-rw-ticks__ico{ background: #22C55E; }
html[data-sx-theme="dark"] .sx-rw-dots i{ background: rgba(253, 119, 2, .3); }
html[data-sx-theme="dark"] .sx-rw-dots i.is-on{ background: #FD7702; }
html[data-sx-theme="dark"] body .rw-jump a{ background: rgba(255, 255, 255, .04); }
html[data-sx-theme="dark"] .rw-art__shadow{ fill: rgba(0, 0, 0, .45); }
html[data-sx-theme="dark"] .rw-toast{ background: var(--surface-elevated, #2A221D); border-color: rgba(255, 236, 220, .12); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9); }
html[data-sx-theme="dark"] body .rw-note{ background: rgba(253, 119, 2, .10); border-color: rgba(253, 119, 2, .35); }
/* review: in dark mode the Reviews band above is the same warm #342216 (dark.css), so this band takes the night colour
 * and the two read as separate sections; one hairline between them. */
html[data-sx-theme="dark"] body .bm-home > .sx-rw-home{ background-color: #16120F !important; border-block-start-color: transparent; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
	.sx-rw-tile, .rw-art, .rw-art *, .sx-rw-pill__dot, html body .sx-rw-now .sx-rw-slide{ animation: none !important; }
	html body .sx-rw-card, .sx-rw-btn__go{ transition: none; }
	html body .sx-rw-card:hover{ transform: none; }
	/* review: also keyboard focus and right-to-left (higher-specificity rules above); the SVG's RTL flip is on the svg, not here */
	.sx-rw-btn__go{ transform: none !important; }
}
