/* Storefront campaigns */
.sale-showcase { --sale-ink: #173c34; --sale-lime: #d9efaa; margin-block: clamp(1.75rem, 4vw, 3.5rem); scroll-margin-top: 5rem; }
.sale-showcase [hidden] { display: none !important; }
.sale-showcase button { cursor: pointer; font: inherit; }
.sale-heading, .sale-actions, .sale-controls, .sale-dialog-heading, .sale-notice { display: flex; align-items: center; }
.sale-heading { justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.sale-heading h2 { margin: 0; color: #192f28; font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.15; letter-spacing: -.04em; }
.sale-heading button, .sale-actions a { display: inline-flex; align-items: center; justify-content: center; gap: .85rem; min-height: 44px; font-weight: 650; font-size: .88rem; }
.sale-heading button { padding: .4rem .15rem .4rem .6rem; border: 0; color: var(--sale-ink); background: transparent; }
.sale-arrow { position: relative; width: 1rem; height: 2px; background: currentColor; flex: none; }
.sale-arrow::after { content: ""; position: absolute; right: 0; top: 50%; width: .45rem; height: .45rem; border: solid currentColor; border-width: 2px 2px 0 0; transform: translateY(-50%) rotate(45deg); }

.sale-stage { position: relative; }
.sale-window { overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 1rem; background: #13272b; }
.sale-showcase.is-ready .sale-window { overflow: hidden; scroll-snap-type: none; }
.sale-track { display: flex; }
.sale-showcase.is-ready .sale-track { transform: translateX(var(--slide-offset, 0%)); }
.sale-slide { flex: 0 0 100%; min-width: 0; position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(19rem, 28vw, 24rem); scroll-snap-align: start; color: white; background: #13272b; }
.sale-art { position: absolute; inset: 0 0 0 29%; z-index: -1; }
.sale-art img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 58%; }
.sale-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #13272b 0%, rgb(19 39 43 / 88%) 15%, rgb(19 39 43 / 12%) 65%, transparent); }
.has-poster .sale-art { left: 52%; background: #e9ebe6; }
.sale-art .sale-poster { object-fit: contain; }
.has-poster .sale-art::after { display: none; }
.sale-copy { box-sizing: border-box; width: 52%; padding: clamp(1.7rem, 3.8vw, 3.6rem); overflow-wrap: anywhere; }
.sale-copy h3 { color: white; margin: 0; font-size: clamp(1.12rem, 1.8vw, 1.55rem); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.sale-copy .sale-rate { color: white; margin: .4rem 0 .65rem; font-size: clamp(3.6rem, 6.4vw, 6rem); font-weight: 650; letter-spacing: -.075em; line-height: 1; }
.sale-rate span { font-family: Georgia, serif; font-style: italic; font-weight: 400; font-size: .77em; letter-spacing: -.055em; color: var(--sale-lime); }
.sale-copy .sale-scope { margin: 0; color: #e4eeea; font-size: .98rem; line-height: 1.45; }
.sale-actions { flex-wrap: wrap; gap: .65rem 1rem; margin-top: 1.5rem; }
.sale-actions a { padding: .65rem 1.1rem; border-radius: .45rem; color: #16362a; background: var(--sale-lime); text-decoration: none; }
.sale-actions a:hover { color: #132c23; background: #ecfacf; text-decoration: none; }
.sale-actions small { color: #e1e9e4; font-size: .8rem; }

.sale-controls { position: absolute; bottom: 1rem; right: 1rem; padding: .13rem; border-radius: 2rem; color: #fff; background: rgb(15 32 34 / 92%); box-shadow: 0 2px 10px #10222020; }
.sale-controls button, .sale-dialog-heading button, .sale-notice [data-dismiss] { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: inherit; }
.sale-controls button:hover { background: #ffffff21; }
.sale-chevron { width: .53rem; height: .53rem; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
[data-prev] .sale-chevron { transform: rotate(-135deg); }
.sale-position { display: inline-flex; align-items: baseline; gap: .33rem; color: #d7e2dc; font-size: .78rem; font-variant-numeric: tabular-nums; }
.sale-position b { font-size: .9rem; color: white; }
.sale-position span { color: #a4b5ac; }
.sale-controls [data-play] { position: relative; margin-left: .22rem; }
.sale-controls [data-play]::before { content: ""; position: absolute; left: -.16rem; height: 1rem; border-left: 1px solid #ffffff42; }
.sale-controls [data-play] span { width: .62rem; height: .78rem; border-inline: 3px solid currentColor; box-sizing: border-box; }
.sale-controls [data-paused="true"] span { width: 0; height: 0; border: solid transparent; border-width: .4rem 0 .4rem .62rem; border-left-color: currentColor; }

.sale-dialog { box-sizing: border-box; width: min(37rem, calc(100% - 1.25rem)); max-height: 85vh; max-height: 85dvh; padding: 0; border: 0; border-radius: 1rem; color: #20342c; background: #f7f8f5; box-shadow: 0 1.4rem 5rem #0b201f55; }
.sale-dialog[open] { display: flex; flex-direction: column; }
.sale-dialog:not([open]) { display: none; }
.sale-dialog::backdrop { background: rgb(15 30 30 / 58%); }
.sale-dialog-heading { flex: none; justify-content: space-between; gap: .8rem; padding: 1.3rem 1.4rem; background: white; border-bottom: 1px solid #dce4de; }
.sale-dialog-heading h2 { margin: 0; color: #1c312a; font-size: 1.55rem; line-height: 1.15; letter-spacing: -.04em; }
.sale-dialog-heading p { margin: .38rem 0 0; color: #55665e; font-size: .85rem; line-height: 1.4; }
.sale-dialog-heading button, .sale-notice [data-dismiss] { background: #eff3ef; color: var(--sale-ink); font-size: 1.35rem; }
.sale-dialog-heading button:hover { background: #e2eadf; }
.sale-dialog ul { overflow: auto; overscroll-behavior: contain; list-style: none; padding: 1rem; margin: 0; }
.sale-dialog li + li { margin-top: .6rem; }
.sale-dialog li a { display: grid; grid-template-columns: 3.4rem minmax(0,1fr) auto; align-items: center; gap: .85rem; padding-left: .85rem; border: 1px solid #dce4dc; border-radius: .7rem; color: inherit; background: white; text-decoration: none; }
.sale-dialog li a:hover { border-color: #83a383; box-shadow: 0 2px 9px #173c340d; text-decoration: none; }
.sale-thumb { overflow: hidden; aspect-ratio: 1; background: #f5f6f2; border-radius: .4rem; }
.sale-thumb img { width: 100%; height: 100%; display: block; object-fit: contain; }
.sale-thumb .sale-landscape { object-fit: cover; }
.sale-details { min-width: 0; padding-block: .9rem; overflow-wrap: anywhere; }
.sale-details > * { display: block; line-height: 1.35; }
.sale-details strong { font-size: 1rem; color: #182e26; }
.sale-details > span { margin-top: .22rem; font-size: .84rem; color: #43574d; }
.sale-details small { margin-top: .4rem; font-size: .73rem; color: #5b695f; }
.sale-ticket { align-self: stretch; min-width: 5rem; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: .6rem; border-left: 1px dashed #afc5af; border-radius: 0 .7rem .7rem 0; color: #214f39; background: #edf4e6; }
.sale-ticket b { font-size: 1.3rem; line-height: 1.1; letter-spacing: -.045em; }
.sale-ticket small { font-size: .72rem; }
.sale-notice { gap: .6rem; position: fixed; z-index: 60; right: 1rem; bottom: 1rem; max-width: calc(100vw - 2rem); padding: .35rem .4rem .35rem 1rem; border: 1px solid #d6e0d7; border-radius: 2rem; box-shadow: 0 4px 18px #142f2520; color: #273e32; background: white; font-size: .85rem; }
.sale-notice [data-browse] { min-height: 44px; border: none; color: #285d3b; background: transparent; font-weight: 650; }
.sale-showcase :is(a,button):focus-visible { outline: 3px solid #16886c; outline-offset: 2px; }
.sale-stage :is(a,button):focus-visible { outline-color: #fff; }
@media (max-width: 700px) {
  .sale-slide { align-items: end; min-height: 26rem; }
  .sale-art { inset: 0 0 25%; }
  .sale-art::after { background: linear-gradient(0deg, #13272b 0%, rgb(19 39 43 / 91%) 25%, rgb(19 39 43 / 8%) 76%); }
  .sale-copy { width: 100%; padding: 8rem 1.25rem 4.6rem; }
  .has-poster .sale-art { inset: 0 0 auto; height: 9rem; }
  .has-poster .sale-copy { padding-top: 10.25rem; }
  .sale-actions { margin-top: 1rem; }
  .sale-controls { right: auto; left: 1.25rem; bottom: .6rem; background: #263c3f; }
}
@media (max-width: 420px) {
  .sale-dialog-heading { padding: 1rem; }
  .sale-dialog ul { padding: .7rem; }
  .sale-dialog li a { grid-template-columns: 2.4rem minmax(0,1fr) auto; gap: .6rem; padding-left: .55rem; }
  .sale-ticket { min-width: 3.4rem; padding: .4rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .sale-showcase.is-ready .sale-track { transition: transform .45s ease-in-out; }
  .sale-arrow { transition: transform .18s ease; }
  :is(.sale-heading button,.sale-actions a):hover .sale-arrow { transform: translateX(2px); }
}
