/* The big Black Friday and Cyber Monday section above a plugin's pricing page
   (main-site/templates/offers/parts/plugin-sale-hero.php). Loaded only while the sale is live.
   Same family as the Black Friday page, on Shop Manager's navy. */
.ox-hero {
	position: relative; overflow: hidden; isolation: isolate; color: #fff;
	padding-block: clamp(52px, 6vw, 88px);
	background:
		radial-gradient(46% 90% at 4% 50%, rgba(255, 45, 63, .34), transparent 72%),
		radial-gradient(44% 90% at 96% 10%, rgba(0, 172, 245, .36), transparent 72%),
		linear-gradient(120deg, #06033a, #080056 58%, #0a0070);
}
.ox-hero[hidden] { display: none; }
html { scroll-behavior: smooth; }
.ox-hero { z-index: 1; }
.ox-hero .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Image Hover: its own pink on a dark plum. The page below has room for a fixed header it no longer needs. */
.ox-hero.is-image-hover {
	background:
		radial-gradient(46% 90% at 4% 50%, rgba(255, 45, 63, .3), transparent 72%),
		radial-gradient(44% 90% at 96% 10%, rgba(239, 65, 122, .42), transparent 72%),
		linear-gradient(120deg, #1a0612, #2a0a1e 58%, #36102a);
}
.ox-hero.is-image-hover .ox-hero-btn, .ox-hero.is-image-hover .ox-hero-btn:hover { color: #2a0a1e; }
.ox-hero.is-image-hover .ox-hero-copy { background: #b3124f; }
.ox-hero.is-image-hover .ox-hero-copy:hover { background: #8f0d3e; }
.ox-hero.is-image-hover .ox-hero-copy:focus-visible { outline-color: #b3124f; }
/* Flipbox: its own teal on a dark green. */
.ox-hero.is-flipbox {
	background:
		radial-gradient(46% 90% at 4% 50%, rgba(255, 45, 63, .24), transparent 72%),
		radial-gradient(44% 90% at 96% 10%, rgba(50, 188, 181, .42), transparent 72%),
		linear-gradient(120deg, #04201f, #062c2a 58%, #0a3836);
}
.ox-hero.is-flipbox .ox-hero-btn, .ox-hero.is-flipbox .ox-hero-btn:hover { color: #062c2a; }
.ox-hero.is-flipbox .ox-hero-copy { background: #0d6e69; }
.ox-hero.is-flipbox .ox-hero-copy:hover { background: #0a5753; }
.ox-hero.is-flipbox .ox-hero-copy:focus-visible { outline-color: #0d6e69; }
/* ThankRedirect: its own blue on a dark navy. */
.ox-hero.is-thank-redirect {
	background:
		radial-gradient(46% 90% at 4% 50%, rgba(255, 45, 63, .26), transparent 72%),
		radial-gradient(44% 90% at 96% 10%, rgba(43, 136, 242, .48), transparent 72%),
		linear-gradient(120deg, #04152e, #06214a 58%, #0a2c63);
}
.ox-hero.is-thank-redirect .ox-hero-btn, .ox-hero.is-thank-redirect .ox-hero-btn:hover { color: #06214a; }
.ox-hero.is-thank-redirect .ox-hero-copy { background: #1a5fc0; }
.ox-hero.is-thank-redirect .ox-hero-copy:hover { background: #154d9c; }
.ox-hero.is-thank-redirect .ox-hero-copy:focus-visible { outline-color: #1a5fc0; }
#oxOfferHero ~ div main { padding-top: clamp(48px, 6vw, 72px); }
.ox-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ox-hero .ox-hero-title { margin: 0; font-size: clamp(38px, 5.2vw, 76px); font-weight: 800; line-height: 1.04; letter-spacing: -.04em; background: linear-gradient(180deg, #fff 30%, #ffe3a3 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ox-hero-title span { display: block; }
/* The offer with the countdown beside it, the countdown drops under it when there is no room. */
.ox-hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px clamp(16px, 2vw, 28px); margin-top: clamp(18px, 2vw, 26px); }
.ox-hero-count { --t: clamp(52px, 3.9vw, 62px); display: grid; gap: 8px; }
.ox-hero-count:not(.is-on) { visibility: hidden; }
.ox-hero-count-label { font-size: 14px; font-weight: 600; line-height: 1; color: #ffe3a3; }
.ox-hero-tiles { display: flex; gap: 6px; }
.ox-hero-tiles span { display: grid; justify-items: center; align-content: center; gap: 4px; width: var(--t); height: calc(var(--t) * 1.08); border-radius: 12px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.ox-hero-tiles b { font-size: calc(var(--t) * .4); font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #fff; }
.ox-hero-tiles small { font-size: 11px; font-weight: 500; line-height: 1; color: #d9d6f2; }
.ox-hero .ox-hero-deal { display: inline-flex; align-items: center; gap: clamp(8px, .9vw, 14px); margin: 0; padding: clamp(6px, .7vw, 10px) clamp(16px, 1.7vw, 24px); border-radius: 14px; background: linear-gradient(135deg, #ff3346, #dc1230); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 20px 46px -18px rgba(255, 34, 58, .85); color: #fff; }
.ox-hero-deal b { font-size: clamp(42px, 4.6vw, 68px); font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.ox-hero-deal span { font-size: clamp(16px, 1.5vw, 22px); font-weight: 700; line-height: 1; }
.ox-hero .ox-hero-line { margin: clamp(16px, 1.6vw, 22px) 0 0; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.45; color: #e4e6f7; }
.ox-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: clamp(18px, 2vw, 26px); }
.ox-hero-btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 26px; border-radius: 12px; background: #fff; color: #080056; font-size: 16px; font-weight: 700; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.ox-hero-btn:hover { color: #080056; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); }
.ox-hero-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ox-hero .ox-hero-safe { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; color: #fff; }
.ox-hero-safe svg { flex: none; width: 20px; height: 20px; }

/* The coupon: gold paper with a notch on each side and a tear line, inside a dashed cut line with
   the scissors on it. Each billing type has its own code and Copy button. */
.ox-hero-panel { --cut: 60px; --n: 12px; position: relative; margin: 11px; filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .45)); }
.ox-hero-panel::before { content: ""; position: absolute; inset: -11px; border: 2px dashed rgba(255, 255, 255, .6); border-radius: 26px; pointer-events: none; }
.ox-hero-cut { position: absolute; z-index: 2; top: -26px; left: 12%; width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: #fff; color: #080056; transition: left .9s cubic-bezier(.4, 0, .2, 1); }
.ox-hero-panel:hover .ox-hero-cut { left: calc(88% - 30px); }
.ox-hero-ticket {
	padding: 0 clamp(16px, 1.8vw, 24px) clamp(16px, 1.6vw, 20px); border-radius: 18px; color: #2a1800;
	background: linear-gradient(135deg, #fff2c2, #ffd978 55%, #ffc24d);
	-webkit-mask: radial-gradient(circle var(--n) at 0 var(--cut), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--n) at 100% var(--cut), #0000 98%, #000) right / 51% 100% no-repeat;
	mask: radial-gradient(circle var(--n) at 0 var(--cut), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--n) at 100% var(--cut), #0000 98%, #000) right / 51% 100% no-repeat;
}
.ox-hero .ox-hero-panel-title { display: flex; align-items: center; height: var(--cut); margin: 0 0 16px; border-bottom: 2px dashed rgba(90, 58, 8, .45); font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: #2a1800; }
.ox-hero-codes { display: grid; gap: 10px; }
.ox-hero-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 8px 8px 8px 14px; border: 1.5px dashed rgba(90, 58, 8, .55); border-radius: 12px; background: rgba(255, 255, 255, .55); }
.ox-hero-code-for { flex: 1; font-size: 13px; font-weight: 600; white-space: nowrap; color: #5a3a08; }
.ox-hero-code strong { font-size: clamp(16px, 1.4vw, 19px); font-weight: 800; letter-spacing: .01em; white-space: nowrap; color: #241000; }
.ox-hero .ox-hero-copy { flex: none; min-width: 66px; height: 36px; margin: 0; padding: 0 12px; border: 0; border-radius: 9px; background: #080056; color: #fff; font-size: 13.5px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background .15s; }
.ox-hero .ox-hero-copy:hover { background: #16127e; }
.ox-hero .ox-hero-copy.is-done { background: #0a6b3a; color: #fff; }
.ox-hero .ox-hero-copy:focus-visible { outline: 2px solid #080056; outline-offset: 2px; }
.ox-hero .ox-hero-note { margin: 12px 0 0; font-size: 14px; font-weight: 500; color: #5a3a08; }
/* Where Claim deal lands: the billing switch, clear of the sticky header, with the plans under it. */
#pricing-table { display: block; scroll-margin-top: 92px; }

/* Celebration emojis, behind the words. */
.ox-hero-party { position: absolute; inset: 0; z-index: 0; max-width: 1440px; margin-inline: auto; pointer-events: none; }
.ox-hero-party span { position: absolute; left: var(--x); top: var(--y); font-size: var(--z); line-height: 1; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)); transform: rotate(var(--r)); animation: ox-hero-float 5s ease-in-out var(--d) infinite; }
/* The emoji burst and shower (offer-hero.js) */
.ox-confetti { position: fixed; inset: 0; z-index: 60; overflow: hidden; pointer-events: none; }
.ox-confetti span { position: absolute; top: 0; left: 0; line-height: 1; will-change: transform, opacity; }
@keyframes ox-hero-float { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-10px) rotate(calc(var(--r) + 8deg)); } }

@media (max-width: 960px) {
	.ox-hero-in { grid-template-columns: minmax(0, 1fr); }
	.ox-hero-panel { max-width: 520px; }
	.ox-hero-party span:nth-child(-n+3) { display: none; }
	.ox-hero-party span:nth-child(4) { left: 88%; top: 14px; }
	.ox-hero-party span:nth-child(5) { display: none; }
}
/* The smallest phones: the label sits over its code. */
@media (max-width: 400px) {
	.ox-hero-party span:nth-child(4) { display: none; }
	.ox-hero-code { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; row-gap: 2px; }
	.ox-hero-code-for { grid-area: 1 / 1; }
	.ox-hero-code strong { grid-area: 2 / 1; }
	.ox-hero .ox-hero-copy { grid-area: 1 / 2 / 3 / 3; align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
	.ox-hero-party span { animation: none; }
	.ox-hero .ox-hero-copy, .ox-hero-btn, .ox-hero-cut { transition: none; }
	.ox-hero-panel:hover .ox-hero-cut { left: 12%; }
}
