/* Scoped promotion component; deliberately independent of the existing theme. */
body.jf-promotion-is-open { overflow: hidden; }
.jf-promotion-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(1000px, 90vw);
  max-width: 1000px;
  max-height: 80vh;
  max-height: 80dvh;
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #151515;
  box-shadow: 0 18px 70px rgb(0 0 0 / 28%);
}
.jf-promotion-dialog:not([open]) { display: none; }
.jf-promotion-dialog[open] { display: block; }
.jf-promotion-dialog::backdrop { background: rgb(0 0 0 / 70%); }
.jf-promotion-layout { display: grid; grid-template-columns: 1fr 2fr; align-items: stretch; }
.jf-promotion-picture { display: block; margin: 0; padding: 0; }
.jf-promotion-picture img { display: block; width: 100%; height: auto; margin: 0; border-radius: 0; }
.jf-promotion-content { box-sizing: border-box; min-width: 0; padding: 40px; text-align: center; }
.jf-promotion-content h2 { margin: 0 0 16px; padding: 0; font-size: 28px; line-height: 1.25; font-weight: 700; color: #111; letter-spacing: 0; }
.jf-promotion-description { margin: 0 0 28px; font-size: 18px; font-weight: 400; line-height: 36px; }
.jf-promotion-dialog .jf-promotion-form { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; border: 0; max-width: none; box-shadow: none; text-align: left; }
.jf-promotion-dialog .jf-promotion-field { position: relative; display: block; margin: 0; padding: 0; height: 64px; }
.jf-promotion-field > img, .jf-promotion-field > svg { position: absolute; top: 50%; left: 20px; width: 24px; height: 25px; margin: 0; transform: translateY(-50%); pointer-events: none; z-index: 1; }
.jf-promotion-dialog .jf-promotion-field input { box-sizing: border-box; display: block; width: 100%; height: 64px; margin: 0; padding: 0 20px 0 60px; border: 1px solid #b4b4b4; border-radius: 0; background: #fff; color: #161616; box-shadow: none; font: inherit; font-size: 16px; line-height: 1.5; }
.jf-promotion-dialog .jf-promotion-field input::placeholder { color: #555; opacity: 1; }
.jf-promotion-dialog .jf-promotion-field input:focus { outline: 2px solid #3a1a3d; outline-offset: 2px; border-color: #3a1a3d; }
.jf-promotion-dialog .jf-promotion-consent { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 13px; line-height: 20px; font-weight: 400; text-align: left; }
.jf-promotion-dialog .jf-promotion-consent input { width: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0 0; padding: 0; accent-color: #3a1a3d; }
.jf-promotion-consent a { color: #3a1a3d; text-decoration: underline; text-underline-offset: 2px; }
.jf-promotion-dialog .jf-promotion-submit { box-sizing: border-box; display: block; width: 100%; min-height: 72px; margin: 0; padding: 18px; border: 1px solid #3a1a3d; border-radius: 0; background: #3a1a3d; color: #fff; font: inherit; font-size: 18px; line-height: 28px; font-weight: 700; letter-spacing: .3px; text-align: center; cursor: pointer; }
.jf-promotion-dialog .jf-promotion-submit:hover { background: #512757; border-color: #512757; }
.jf-promotion-dialog .jf-promotion-submit:disabled { cursor: wait; opacity: .65; }
.jf-promotion-result, .jf-promotion-coupon-result { margin: 0; font-size: 14px; line-height: 22px; text-align: center; overflow-wrap: anywhere; }
.jf-promotion-result:empty { display: none; }
.jf-promotion-result.is-error { color: #9b2222; }
.jf-promotion-coupon-result[data-status="activated"] { color: #17613b; }
.jf-promotion-coupon-result[hidden] { display: none; }
.jf-promotion-terms { margin: 18px 0 0; font-size: 12px; line-height: 18px; color: #666; }
.jf-promotion-close, .jf-promotion-welcome-close { box-sizing: border-box; position: absolute; z-index: 3; display: grid; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; color: #171717; font: inherit; font-weight: 400; cursor: pointer; box-shadow: none; }
.jf-promotion-close { top: 10px; right: 10px; width: 32px; height: 32px; font-size: 30px; line-height: 1; }
.jf-promotion-close:hover, .jf-promotion-welcome-close:hover { color: #3a1a3d; background: #f3edf4; }
.jf-promotion-close:focus-visible, .jf-promotion-welcome-close:focus-visible, .jf-promotion-submit:focus-visible { outline: 2px solid #3a1a3d; outline-offset: 3px; }
.jf-promotion-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.jf-promotion-welcome { position: fixed; left: 16px; bottom: 16px; z-index: 90; width: 300px; max-width: calc(100vw - 32px); margin: 0; padding: 0; background: #fff; box-shadow: 0 5px 20px rgb(0 0 0 / 18%); }
.jf-promotion-welcome[hidden] { display: none; }
.jf-promotion-welcome > img { display: block; width: 100%; height: auto; margin: 0; border-radius: 0; }
.jf-promotion-welcome-close { top: 8px; right: 8px; width: 30px; height: 30px; font-size: 27px; line-height: 1; }
[data-jf-promo-open][data-jf-promo-activated="true"] { cursor: pointer; }
@media (min-width: 768px) and (max-width: 1023px) {
  .jf-promotion-dialog { width: 90vw; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); }
  .jf-promotion-layout { display: block; }
  .jf-promotion-picture img { width: 100%; height: auto; max-height: 300px; object-fit: cover; object-position: center; }
  .jf-promotion-content { padding: 36px 40px; }
}
@media (max-width: 767px) {
  .jf-promotion-dialog { top: 24px; bottom: auto; width: 90vw; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); margin: 0 auto; }
  .jf-promotion-layout { display: block; }
  .jf-promotion-picture img { width: 100%; height: auto; max-height: 300px; object-fit: cover; object-position: center; }
  .jf-promotion-content { padding: 28px 20px; }
  .jf-promotion-content h2 { font-size: 26px; line-height: 32px; margin-bottom: 12px; }
  .jf-promotion-description { font-size: 16px; line-height: 26px; margin-bottom: 24px; }
  .jf-promotion-dialog .jf-promotion-consent { font-size: 12px; line-height: 18px; }
  .jf-promotion-welcome { width: 230px; }
}
