
.db-popup,
.db-popup * {
  box-sizing: border-box;
}
.db-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  padding: 24px;
  align-items: center;
  justify-content: center;
  font-family: Ysabeau Office, Poppins, Arial, sans-serif;
}
.db-popup.is-active {
  display: flex;
}
.db-popup[hidden] {
  display: none;
}
.db-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(25, 23, 20, 0.64);
}
.db-popup__modal {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  background: #f7efe4;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  color: #413a35;
}
.db-popup__close {
  position: sticky;
  top: 10px;
  float: right;
  margin: 10px 10px -54px 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #3e5b2b;
  color: #fff;
  font:
    32px/1 Arial,
    sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 6px #0003;
  z-index: 3;
}
.db-popup__content {
  display: flex;
  min-height: 580px;
}
.db-popup__image-wrap {
  position: relative;
  width: 46%;
  overflow: hidden;
}
.db-popup__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
}
.db-popup__hearts {
  position: absolute;
  top: 20px;
  left: 18px;
  width: 82px;
  height: 100px;
  color: #9d6846;
  filter: drop-shadow(0 1px 3px #fff);
}
.db-popup__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 85px;
  color: #faf3ea;
}
.db-popup__text {
  width: 54%;
  padding: 60px 30px 34px;
  text-align: center;
  background: radial-gradient(ellipse at top, #fffaf3, #f5ece1);
}
.db-popup .db-popup__title {
  margin: 0 0 10px;
  font-family: Satisfy, 'Brush Script MT', cursive;
  font-size: clamp(36px, 4.5vw, 59px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -1.5px;
  text-transform: none;
  color: #9d6846;
}
.db-popup__subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.db-popup__divider {
  display: block;
  width: 122px;
  height: 1px;
  background: #b99175;
  margin: 24px auto;
}
.db-popup__desc {
  margin: 0 auto 28px;
  max-width: 390px;
  font-size: 18px;
  line-height: 1.6;
}
.db-popup .db-popup__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 68px;
  padding: 16px 20px;
  border-radius: 100px;
  background: #79281d;
  color: #fff !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 3px 5px #0002;
  transition: background 0.2s;
}
.db-popup__button svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.db-popup__arrow {
  font-size: 28px;
  font-weight: 400;
}
.db-popup .db-popup__button:hover,
.db-popup__close:hover {
  background: #805135;
  color: #fff;
}
.db-popup__button:focus-visible,
.db-popup__close:focus-visible {
  outline: 3px solid #413a35;
  outline-offset: 3px;
}
.db-popup .db-popup__benefits {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}
.db-popup__benefits li {
  font-size: 12px;
  line-height: 1.5;
}
.db-popup__benefits svg {
  display: block;
  width: 29px;
  height: 29px;
  margin: 0 auto 9px;
  fill: none;
  stroke: #9d6846;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.db-popup-open {
  overflow: hidden;
}
/* Keep the slide-in popup anchored to the bottom-right while scrolling. */
.db-popup[data-interaction='fly-in'] {
  overflow: hidden;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
}
.db-popup[data-interaction='fly-in'] .db-popup__overlay {
  display: none;
}
.db-popup[data-interaction='fly-in'] .db-popup__modal {
  width: min(400px, 100%);
  pointer-events: auto;
}
.db-popup[data-interaction='fly-in'] .db-popup__content {
  flex-direction: column;
  min-height: 0;
}
.db-popup[data-interaction='fly-in'] .db-popup__image-wrap,
.db-popup[data-interaction='fly-in'] .db-popup__text {
  width: 100%;
}
.db-popup[data-interaction='fly-in'] .db-popup__image-wrap {
  height: 480px;
  flex-shrink: 0;
}
.db-popup[data-interaction='fly-in'] .db-popup__wave {
  height: 40px;
}
.db-popup[data-interaction='fly-in'] .db-popup__text {
  padding: 22px 20px 26px;
}
.db-popup[data-interaction='fly-in'] .db-popup__title {
  font-size: 38px;
}
.db-popup[data-interaction='fly-in'] .db-popup__subtitle {
  font-size: 12px;
}
.db-popup[data-interaction='fly-in'] .db-popup__divider {
  margin: 16px auto;
}
.db-popup[data-interaction='fly-in'] .db-popup__desc {
  font-size: 15px;
  margin-bottom: 20px;
}
.db-popup[data-interaction='fly-in'] .db-popup__button {
  font-size: 18px;
  min-height: 46px;
  padding: 5px 12px;
  gap: 9px;
}
.db-popup[data-interaction='fly-in'].is-active .db-popup__modal {
  animation: db-popup-fly-in 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.db-popup[data-interaction='fly-in'].is-active .db-popup__overlay {
  animation: db-popup-backdrop-in 350ms ease both;
}
.db-popup[data-interaction='fly-in'].is-closing .db-popup__modal {
  animation: db-popup-fly-out 300ms ease-in both;
}
.db-popup[data-interaction='fly-in'].is-closing .db-popup__overlay {
  animation: db-popup-backdrop-in 300ms ease reverse both;
}
@keyframes db-popup-fly-in {
  from {
    opacity: 0;
    transform: translateX(100vw);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes db-popup-fly-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100vw);
  }
}
@keyframes db-popup-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (max-width: 700px) {
  .db-popup {
    padding: 14px;
  }
  .db-popup__modal {
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
    border-radius: 20px;
  }
  .db-popup__content {
    flex-direction: column;
    min-height: 0;
  }
  .db-popup__image-wrap,
  .db-popup__text {
    width: 100%;
  }
  .db-popup__image-wrap {
    height: clamp(180px, 29vh, 260px);
    flex-shrink: 0;
  }
  .db-popup__image {
    object-position: center 43%;
  }
  .db-popup__hearts {
    top: 12px;
    left: 12px;
    width: 60px;
    height: 76px;
  }
  .db-popup__wave {
    height: 40px;
  }
  .db-popup__text {
    padding: 22px 20px 26px;
  }
  .db-popup .db-popup__title {
    font-size: clamp(34px, 8vw, 48px);
    letter-spacing: -1px;
  }
  .db-popup__subtitle {
    font-size: 12px;
  }
  .db-popup__divider {
    margin: 16px auto;
  }
  .db-popup__desc {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .db-popup .db-popup__button {
    font-size: 14px;
    min-height: 56px;
    padding: 14px 12px;
    gap: 9px;
  }
  .db-popup__button svg {
    width: 23px;
    height: 23px;
  }
  .db-popup__arrow {
    font-size: 23px;
  }
  .db-popup .db-popup__benefits {
    margin-top: 20px;
    gap: 6px;
  }
  .db-popup__benefits li {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .db-popup[data-interaction='fly-in'] .db-popup__modal,
  .db-popup[data-interaction='fly-in'] .db-popup__overlay {
    animation: none;
  }
  .db-popup .db-popup__button {
    transition: none;
  }
}
