/* DEV-4134: Christmas offer bar and homepage hero. */
.xm-bar, .xm-hero {
    --plum: #6e0072;
    --ink: #2e1a2f;
    --muted: #6a5a6b;
    --ornament: #f1c4f3;
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Source Sans Pro', Arial, sans-serif;
    font-family: var(--sans);
}

.xm-only-narrow {
    display: none;
}
@media (max-width: 759.98px) {
  .xm-only-wide {
      display: none !important;
  }
  .xm-only-narrow {
      display: block;
  }
}

/* The desktop header is fixed. Reserve its height including the preview bar. */
@media (min-width: 768px) {
    body.body-has-urgency-countdown:has(#main_header .xm-bar):not(.pyl-order-process) #content {
        margin-top: var(--xm-header-height, 160px) !important;
    }
}

/* Christmas offer bar */
.xm-bar {
    position: relative;
    overflow: hidden;
    clear: both;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    height: 52px;
    padding: 0 24px;
    background: var(--plum);
    color: #fff;
    white-space: nowrap;
}
.xm-bar__flake {
    position: absolute;
    pointer-events: none;
}
.xm-bar__text {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}
.xm-bar__tree {
    flex: none;
    display: block;
    width: 27px;
    height: 27px;
    margin-top: -3px;
}
.xm-bar__label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.xm-bar__dot {
    flex: none;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ornament);
}
.xm-bar__offer {
    font-size: 17px;
    line-height: 1;
    font-weight: 700;
}
.xm-bar__timer {
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: baseline;
    gap: .24em;
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.xm-bar__timer small {
    font-size: .8em;
    font-weight: inherit;
}
.xm-bar__apply {
    position: relative;
    flex: none;
    height: 32px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font: 700 13px/1 var(--sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}
.xm-bar__apply:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.1);
}
/* optical centring of caps in the bar (ignored by browsers without support; the layout still holds) */
.xm-bar__label, .xm-bar__offer {
    text-box: trim-both cap alphabetic;
}
@media (max-width: 759.98px) {
  .xm-bar {
        justify-content: space-between;
        gap: clamp(5px, 1.7vw, 12px);
      height: 48px;
        padding: 0 clamp(8px, 3vw, 22px);
  }
  .xm-bar__text {
        gap: clamp(4px, 1.5vw, 12px);
    }
    .xm-bar__dot:not(.xm-bar__dot--timer) {
        display: none;
  }
  .xm-bar__tree {
        width: clamp(16px, 5.3vw, 25px);
        height: clamp(16px, 5.3vw, 25px);
  }
  .xm-bar__label {
        font-size: clamp(11px, 3.15vw, 15px);
        letter-spacing: .05em;
  }
    .xm-bar__offer, .xm-bar__timer {
        font-size: clamp(12px, 3.65vw, 18px);
  }
  .xm-bar__apply {
        padding: 0 clamp(6px, 2.5vw, 16px);
        font-size: clamp(11px, 3.05vw, 14px);
  }
}

@media (max-width: 359px) {
    .xm-bar {
        padding-inline: 7px;
    }
    .xm-bar__label, .xm-bar__apply {
        letter-spacing: 0;
    }
}

/* XMAS homepage hero */
.xm-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    height: 564px;
    background: radial-gradient(50% 80% at 20% 45%, #fff 0%, rgba(255, 255, 255, 0) 75%), linear-gradient(180deg, #f8f3f8 0%, #fbf8fb 72%, #fff 100%);
}
.xm-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60%;
    overflow: hidden;
    /* Intersect the fade on the left with the fade at the bottom. */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.15) 6%, rgba(0,0,0,.45) 13%, rgba(0,0,0,.78) 21%, rgba(0,0,0,.95) 28%, #000 33%),
        linear-gradient(180deg, #000 0%, #000 74%, rgba(0,0,0,.5) 86%, transparent 95%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.15) 6%, rgba(0,0,0,.45) 13%, rgba(0,0,0,.78) 21%, rgba(0,0,0,.95) 28%, #000 33%),
        linear-gradient(180deg, #000 0%, #000 74%, rgba(0,0,0,.5) 86%, transparent 95%);
    mask-composite: intersect;
}
.xm-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 35%;
}
.xm-shade {
    display: none;
}
.xm-snow {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.xm-flake {
    position: absolute;
    top: 0;
    will-change: transform;
}
.xm-flake > span {
    display: block;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0 30%, rgba(255,255,255,.6) 52%, rgba(255,255,255,0) 72%);
}

/* captions follow the video (desktop: one line under the video; phone: one line under the video, above the copy) */
.xm-caption {
    position: absolute;
    z-index: 1;
    left: 64%;
    right: 24px;
    bottom: 12px;
    height: 18px;
}
.xm-cap {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .25s ease;
}
.xm-cap.is-on {
    opacity: 1;
    transition: opacity .45s ease .3s;
}
.xm-cap__label {
    color: var(--plum);
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.xm-cap__text {
    color: var(--muted);
    font-size: 15px;
    line-height: 1;
    font-weight: 600;
}

.xm-panel {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 46%;
    height: 100%;
    padding: 0 40px 0 60px;
    display: flex;
    align-items: center;
}
.xm-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: 540px;
}
.xm-capline {
    position: relative;
    width: 100%;
    height: 17px;
    margin-bottom: 14px;
}
.xm-capline__item {
    position: absolute;
    left: 0;
    top: 0;
    color: #7d6c7e;
    font-size: 13px;
    line-height: 17px;
    letter-spacing: .01em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .25s ease;
}
.xm-capline__item.is-on {
    opacity: 1;
    transition: opacity .45s ease .3s;
}
.xm-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    color: var(--plum);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.xm-eyebrow__rule {
    display: block;
    width: 32px;
    height: 1px;
    background: var(--plum);
    opacity: .5;
}
.xm-title {
    margin: 0;
    color: var(--ink);
    font-family: var(--serif);
    font-variation-settings: 'SOFT' 60, 'WONK' 0;
    font-optical-sizing: auto;
    font-variant-numeric: lining-nums;
    font-size: 60px;
    line-height: 1.06;
    font-weight: 380;
    letter-spacing: -.015em;
    text-wrap: balance;
}
.xm-title__offer {
    color: var(--plum);
    font-weight: 480;
}
.xm-sub {
    margin: 20px 0 0;
    max-width: 440px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.5;
    text-wrap: pretty;
}
.xm-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 34px;
}
.xm-cta {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 54px;
    padding: 0 30px;
    border-radius: 4px;
    background: var(--plum);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}
.xm-cta:hover, .xm-cta:focus {
    background: #5a005e;
    color: #fff;
    text-decoration: none;
}
.xm-cta:focus-visible, .xm-bar__apply:focus-visible {
    outline: 2px solid var(--plum);
    outline-offset: 3px;
}
.xm-bar__apply:focus-visible {
    outline-color: #fff;
}

@media (max-width: 759.98px) {
  .xm-hero {
      flex-direction: column;
      height: auto;
      padding-bottom: 14px;
      background: linear-gradient(180deg, #faf6fa 0%, #faf6fa 52%, #fff 100%);
  }
  .xm-media {
      position: relative;
      top: auto;
      right: auto;
      bottom: auto;
      width: 100%;
      aspect-ratio: 16 / 10;
      -webkit-mask-image: none;
      mask-image: none;
  }
  .xm-video {
      object-position: 50% 50%;
  }
  .xm-shade {
      display: block;
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(250,246,250,0) 74%, rgba(250,246,250,.6) 90%, #faf6fa 100%);
  }
  .xm-caption {
      display: none;
  }
  .xm-panel {
      width: auto;
      height: auto;
      padding: 12px 20px 22px;
  }
  .xm-copy {
      width: 100%;
      max-width: none;
  }
  .xm-eyebrow {
      margin-bottom: 10px;
      font-size: 11px;
  }
  .xm-eyebrow__rule {
      width: 22px;
  }
  .xm-title {
      font-size: 31px;
      line-height: 1.1;
  }
  .xm-sub {
      margin-top: 10px;
      max-width: none;
      font-size: 15px;
  }
  .xm-actions {
      width: 100%;
      margin-top: 16px;
  }
  .xm-cta {
      width: 100%;
      height: 50px;
  }
}

.xm-bar__apply:disabled {
    cursor: default;
}

.xm-bar__form {
    margin-block: 0;
    margin-right: 0;
}

.xm-bar__status:not(:empty) {
    position: absolute;
    inset: auto 0 1px;
    text-align: center;
    font-size: 11px;
    line-height: 1;
}

.xm-bar:has(.xm-bar__status:not(:empty)) {
    padding-bottom: 12px;
}

.xm-bar__applied {
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.xm-shade {
    pointer-events: none;
}

@media (min-width: 760px) and (max-width: 1099px) {
  .xm-panel {
      padding-inline: 36px 24px;
  }
  .xm-title {
      font-size: clamp(36px, 5vw, 54px);
  }
  .xm-caption {
      left: 56%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xm-cap, .xm-cap.is-on, .xm-capline__item, .xm-capline__item.is-on {
      transition: none;
  }
}
