html.ld-savings-open { overflow: hidden; }

#ld-savings-popup {
  width: min(700px, calc(100% - 32px));
  max-width: 700px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 26px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #faf7f2;
  color: #173b61;
  box-shadow: 0 18px 70px #081c3559;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  text-align: left;
}
#ld-savings-popup:not([open]) { display: none; }
#ld-savings-popup::backdrop { background: rgb(6 22 42 / 65%); }
#ld-savings-popup * { box-sizing: border-box; }
#ld-savings-popup .ld-popup {
  position: relative;
  display: grid;
  grid-template-columns: 43% 57%;
  overflow: hidden;
  border-radius: 26px;
  background: #faf7f2;
}
#ld-savings-popup .ld-art {
  position: relative;
  min-width: 0;
  padding: 27px 22px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
  background: #173b61;
  color: #faf7f2;
}
#ld-savings-popup .ld-art::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: #244a70;
  left: -72px;
  top: 85px;
}
#ld-savings-popup .ld-brand {
  width: 220px;
  max-width: 100%;
  padding: 8px 12px;
  margin: 0;
  background: transparent;
}
#ld-savings-popup .ld-wordmark-window {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1725 / 801;
  overflow: hidden;
}
#ld-savings-popup .ld-wordmark-window img {
  position: absolute;
  display: block;
  width: 154.26087%;
  max-width: none;
  height: auto;
  left: -27.53623%;
  top: -4.36954%;
}
#ld-savings-popup .ld-art-caption {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #e7edf4;
}
#ld-savings-popup .ld-candy-wrap {
  position: relative;
  margin: 19px -9px 12px;
  display: grid;
  place-items: center;
  min-height: 176px;
}
#ld-savings-popup .ld-candy {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(-13deg);
  filter: drop-shadow(0 12px 13px #081c3559);
}
#ld-savings-popup .ld-sticker {
  align-self: flex-start;
  padding: 11px 14px;
  margin: 0 0 2px 4px;
  border-radius: 8px;
  background: #ffda85;
  color: #173b61;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  transform: rotate(-5deg);
  box-shadow: 4px 5px 0 #0c2a47;
}
#ld-savings-popup .ld-content { padding: 49px 29px 26px; min-width: 0; }
#ld-savings-popup .ld-close {
  position: absolute;
  right: 9px;
  top: 9px;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #eee9e2;
  color: #173b61;
  font: 400 29px/1 Arial, sans-serif;
  cursor: pointer;
}
#ld-savings-popup .ld-close:hover { background: #e3ddd4; }
#ld-savings-popup .ld-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  font-weight: 800;
}
#ld-savings-popup h2 {
  display: block;
  max-width: none;
  margin: 0 0 14px;
  color: #173b61;
  font: 800 28px/1.02 'Trebuchet MS', Arial, sans-serif;
  letter-spacing: -1px;
  text-transform: none;
}
#ld-savings-popup .ld-amount {
  display: block;
  margin: 0 0 1px;
  font-size: 76px;
  line-height: 1.04;
  letter-spacing: -4px;
  font-weight: 900;
  color: #d93340;
  white-space: nowrap;
}
#ld-savings-popup .ld-copy { font-size: 15px; line-height: 1.5; margin: 0 0 14px; }
#ld-savings-popup .ld-sum { font-size: 13px; line-height: 1.5; margin: 0 0 18px; font-weight: 700; }
#ld-savings-popup .ld-sum span { display: block; }
#ld-savings-popup .ld-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 13px 18px;
  border-radius: 999px;
  background: #d93340;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 800;
  box-shadow: 0 5px 0 #a7202b;
}
#ld-savings-popup .ld-cta:hover { background: #bc2632; }
#ld-savings-popup .ld-cta span { font-size: 23px; line-height: 1; }
#ld-savings-popup :is(button, a):focus-visible { outline: 3px solid #ffb74d; outline-offset: 3px; }
#ld-savings-popup .ld-fine {
  grid-column: 1 / -1;
  padding: 14px 22px;
  margin: 0;
  background: #f0ebe4;
  color: #4c5c6d;
  font-size: 11px;
  line-height: 1.5;
}
@media (max-width: 580px) {
  #ld-savings-popup { max-width: 420px; }
  #ld-savings-popup .ld-popup { grid-template-columns: 1fr; }
  #ld-savings-popup .ld-art {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 0;
    min-height: 0;
    padding: 18px 18px 20px;
  }
  #ld-savings-popup .ld-art::before { top: 15px; left: 42%; width: 220px; height: 220px; }
  #ld-savings-popup .ld-brand { width: 155px; max-width: 100%; padding: 0; }
  #ld-savings-popup .ld-art-caption { font-size: 11px; letter-spacing: .8px; }
  #ld-savings-popup .ld-candy-wrap {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: 100%;
    min-height: 0;
    margin: 4px 0 0;
  }
  #ld-savings-popup .ld-sticker {
    grid-column: 1 / -1;
    justify-self: start;
    margin: 4px 0 0;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.3;
  }
  #ld-savings-popup .ld-content { padding: 22px 24px 28px; }
  #ld-savings-popup h2 { font-size: 25px; }
  #ld-savings-popup .ld-amount { font-size: 64px; }
  #ld-savings-popup .ld-kicker { margin-bottom: 10px; }
  #ld-savings-popup .ld-fine { padding: 14px 24px; }
}
