/* OG Cashback - Christmas theme (OG-20261128-01). Every rule is scoped to html.og-xmas, which only
   xmas.js adds (and only until 5 Jan 2027 23:59 Bangkok). Without the class this file does nothing. */

/* Santa hat on the logo mark. Geometry copied from the approved email header (header-xmas.html):
   mark 112px wide -> hat 92px wide at left -22px / top -40px, rotated -18deg. Expressed as % of the
   mark so it scales with every logo size (landing 30px/22px tall, member 30px/52px wide). */
html.og-xmas .og-xmas-mk{position:relative;display:inline-block;line-height:0;flex-shrink:0;vertical-align:middle}
html.og-xmas .og-xmas-mk>img{display:block;margin:0}
html.og-xmas .og-xmas-hat{position:absolute;left:-19.6%;top:-53%;width:82%;height:auto;transform:rotate(-18deg);pointer-events:none;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.55))}
/* member sign-in card: the logo img is a centred block (margin:0 auto 14px) - the wrapper takes that role */
html.og-xmas .card>.og-xmas-mk{display:block;width:52px;margin:0 auto 14px}
html.og-xmas .card>.og-xmas-mk>img{width:100%}
html[data-theme="light"].og-xmas .og-xmas-hat{filter:drop-shadow(0 1px 2px rgba(0,0,0,.22))}
/* RTL (ar): the lockup text sits to the LEFT of the mark, so the hat would hang into it. Mirror the hat onto the
   outer (right) corner of the mark instead - same artwork, same rotation, mirrored; layout and spacing untouched. */
html[dir="rtl"].og-xmas .og-xmas-hat{left:auto;right:-19.6%;transform:scaleX(-1) rotate(-18deg)}

/* Snowfall canvas - never takes clicks. Two placements (xmas.js picks one):
   -in   : inside a host block (Landing #hero). z 2 = above the hero mesh (0) and particles (1), below the
           hero text, status box and buttons (3), so no flake is ever drawn over copy or a CTA.
   -back : fixed layer behind the content (Member Area), same layer as its #bg3d background (z -1). */
html.og-xmas #og-xmas-snow{pointer-events:none;display:block}
html.og-xmas #og-xmas-snow.og-xmas-snow-in{position:absolute;left:0;top:0;width:100%;height:100%;z-index:2}
html.og-xmas #og-xmas-snow.og-xmas-snow-back{position:fixed;left:0;top:0;width:100%;height:100%;z-index:-1}
@media (prefers-reduced-motion:reduce){html.og-xmas #og-xmas-snow{display:none}}
@media print{html.og-xmas #og-xmas-snow{display:none}}
