/* v0.5.3 sparkling gold trim: a rotating conic-gradient border (::before) plus small sparkles that travel the edge (::after).
   Both are absolutely positioned outside the content box, so nothing shifts. CSS only; JS just pauses it off-screen. */
@property --bhT{syntax:'<angle>';inherits:true;initial-value:0deg}
.bh-trim,.bh-wc .wc-block-components-checkout-place-order-button,.bh-wc .wc-block-cart__submit-button,.bh-wc-note{position:relative;isolation:isolate;overflow:visible!important;animation:bhTrimSpin 12s linear infinite}
:is(.bh-trim,.bh-wc .wc-block-components-checkout-place-order-button,.bh-wc .wc-block-cart__submit-button,.bh-wc-note)::before,
:is(.bh-trim,.bh-wc .wc-block-components-checkout-place-order-button,.bh-wc .wc-block-cart__submit-button,.bh-wc-note)::after{content:'';position:absolute;inset:-4px;border-radius:inherit;padding:3px;pointer-events:none;z-index:-1;
 -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
/* sweeping gold band */
:is(.bh-trim,.bh-wc .wc-block-components-checkout-place-order-button,.bh-wc .wc-block-cart__submit-button,.bh-wc-note)::before{
 background:conic-gradient(from var(--bhT),#c9a14a 0deg,#f2d58a 40deg,#fff8e1 70deg,#f2d58a 100deg,#c9a14a 150deg,#e3c272 210deg,#c9a14a 260deg,#f2d58a 310deg,#c9a14a 360deg);
 filter:drop-shadow(0 0 4px #f2d58aaa)}
/* travelling sparkles: three tiny bright points riding the same edge, counter-phase, twinkling */
:is(.bh-trim,.bh-wc .wc-block-components-checkout-place-order-button,.bh-wc .wc-block-cart__submit-button,.bh-wc-note)::after{inset:-6px;padding:7px;
 background:conic-gradient(from calc(var(--bhT) * -1.6),transparent 0 52deg,#fff 55deg,#fffbe8 57deg,transparent 61deg 170deg,#fff7d6 173deg,#fff 175deg,transparent 179deg 285deg,#fff 288deg,#f2d58a 290deg,transparent 294deg);
 filter:blur(.6px) drop-shadow(0 0 3px #fff) drop-shadow(0 0 6px #f2d58a);animation:bhTrimTw 3.6s ease-in-out infinite alternate}
@keyframes bhTrimSpin{to{--bhT:360deg}}
@keyframes bhTrimTw{from{opacity:.35}to{opacity:1}}
/* buttons: the trim replaces the old static gold ring shadow */
.bh-wc :is(.wc-block-components-checkout-place-order-button,.wc-block-cart__submit-button){box-shadow:0 14px 28px -16px #2f4a6d!important}
.bh-trim.bh-trim-off,.bh-trim-off:is(.wc-block-components-checkout-place-order-button,.wc-block-cart__submit-button,.bh-wc-note),.bh-trim-off::after{animation-play-state:paused}
/* Calm mode + reduced motion: static gold border with a soft glow */
@media (prefers-reduced-motion:reduce){:is(.bh-trim,.bh-wc .wc-block-components-checkout-place-order-button,.bh-wc .wc-block-cart__submit-button,.bh-wc-note){animation:none}
 :is(.bh-trim,.bh-wc .wc-block-components-checkout-place-order-button,.bh-wc .wc-block-cart__submit-button,.bh-wc-note)::before{background:linear-gradient(135deg,#c9a14a,#f2d58a,#c9a14a);filter:drop-shadow(0 0 6px #f2d58a99)}
 :is(.bh-trim,.bh-wc .wc-block-components-checkout-place-order-button,.bh-wc .wc-block-cart__submit-button,.bh-wc-note)::after{display:none}}
html.bh-calm :is(.bh-trim,.bh-wc .wc-block-components-checkout-place-order-button,.bh-wc .wc-block-cart__submit-button,.bh-wc-note){animation:none}
html.bh-calm :is(.bh-trim,.bh-wc .wc-block-components-checkout-place-order-button,.bh-wc .wc-block-cart__submit-button,.bh-wc-note)::before{background:linear-gradient(135deg,#c9a14a,#f2d58a,#c9a14a);filter:drop-shadow(0 0 6px #f2d58a99)}
html.bh-calm :is(.bh-trim,.bh-wc .wc-block-components-checkout-place-order-button,.bh-wc .wc-block-cart__submit-button,.bh-wc-note)::after{display:none}
