@font-face {
  font-family: "Qanelas";
  src: url("../fonts/Qanelas-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Qanelas";
  src: url("../fonts/Qanelas-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

.pods-custom-popup {
  --pods-popup-bg: #f4efe7;
  --pods-popup-panel: #fbf8f2;
  --pods-popup-text: #201a16;
  --pods-popup-muted: #6f6258;
  --pods-popup-border: rgba(88, 72, 58, 0.18);
  --pods-popup-bronze: #9a7a52;
  --pods-popup-bronze-dark: #745a3a;
  --pods-popup-overlay: rgba(19, 15, 12, 0.62);
  --pods-popup-font: "Qanelas", "Avenir Next", "Inter", sans-serif;

  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--pods-popup-text);
  font-family: var(--pods-popup-font);
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.pods-custom-popup,
.pods-custom-popup * {
  box-sizing: border-box;
}

.pods-custom-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.pods-custom-popup__overlay {
  position: absolute;
  inset: 0;
  background: var(--pods-popup-overlay);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pods-custom-popup__modal {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(340px, 44%) minmax(0, 56%);
  width: min(960px, calc(100vw - 48px));
  max-height: min(780px, calc(100vh - 48px));
  overflow: hidden;
  background: var(--pods-popup-panel);
  border: 1px solid var(--pods-popup-border);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(18, 13, 9, 0.32), 0 1px 0 rgba(255, 255, 255, 0.48) inset;
  outline: none;
  transform: translateY(18px);
  transition: transform 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

.pods-custom-popup.is-visible .pods-custom-popup__modal {
  transform: translateY(0);
}

.pods-custom-popup__visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #cfc1ad;
}

.pods-custom-popup__visual-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.02);
  transform: scale(1.015);
}

.pods-custom-popup__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 17, 13, 0.1) 0%, rgba(21, 17, 13, 0.24) 58%, rgba(21, 17, 13, 0.68) 100%),
    linear-gradient(90deg, rgba(31, 24, 18, 0.18), rgba(31, 24, 18, 0));
}

.pods-custom-popup__visual-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 1;
  color: #fbf8f2;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.34);
}

.pods-custom-popup__visual-caption span {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.pods-custom-popup__visual-caption small {
  display: block;
  color: rgba(251, 248, 242, 0.8);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pods-custom-popup__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  padding: 52px 48px 44px;
  background:
    linear-gradient(145deg, rgba(244, 239, 231, 0.56), rgba(251, 248, 242, 0) 46%),
    var(--pods-popup-panel);
}

.pods-custom-popup__close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(88, 72, 58, 0.16);
  border-radius: 999px;
  background: rgba(251, 248, 242, 0.9);
  color: var(--pods-popup-text);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(18, 13, 9, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.64);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, color 220ms ease, transform 220ms ease;
  overflow: hidden;
}

.pods-custom-popup.is-visible .pods-custom-popup__close {
  animation: podsPopupCloseReveal 620ms cubic-bezier(0.19, 1, 0.22, 1) 180ms backwards;
}

.pods-custom-popup__close::before {
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0));
  content: "";
  pointer-events: none;
}

.pods-custom-popup__close span,
.pods-custom-popup__close span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: background-color 220ms ease, transform 220ms ease;
}

.pods-custom-popup__close span {
  transform: translate(-50%, -50%) rotate(45deg);
}

.pods-custom-popup__close span::after {
  top: 0;
  left: 0;
  transform: rotate(90deg);
}

.pods-custom-popup__close:hover,
.pods-custom-popup__close:focus-visible {
  border-color: rgba(116, 90, 58, 0.32);
  background: rgba(255, 248, 237, 0.98);
  color: var(--pods-popup-bronze-dark);
  box-shadow: 0 16px 34px rgba(18, 13, 9, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.74);
  transform: translateY(-1px);
}

.pods-custom-popup__close:focus-visible,
.pods-custom-popup__primary:focus-visible,
.pods-custom-popup__secondary:focus-visible,
.pods-custom-popup__dismiss:focus-visible {
  outline: 1px solid var(--pods-popup-bronze);
  outline-offset: 4px;
}

.pods-custom-popup__label {
  margin: 0 0 16px;
  color: var(--pods-popup-bronze-dark);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.pods-custom-popup__title {
  max-width: 560px;
  margin: 0 0 18px;
  color: var(--pods-popup-text);
  font-family: var(--pods-popup-font);
  font-size: clamp(34px, 3.6vw, 44px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

.pods-custom-popup__body {
  max-width: 520px;
  margin: 0;
  color: var(--pods-popup-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: 0;
}

.pods-custom-popup__bullets {
  display: grid;
  gap: 11px;
  margin: 26px 0 0;
  padding: 0;
  color: var(--pods-popup-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  list-style: none;
}

.pods-custom-popup__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pods-custom-popup__bullets span {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--pods-popup-bronze);
  font-size: 13px;
  line-height: 1.2;
}

.pods-custom-popup__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin-top: 32px;
}

.pods-custom-popup__primary,
.pods-custom-popup__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: 100%;
  min-width: 0;
  padding: 13px 16px;
  color: #faf3e3;
  background-color: #786456;
  border: 2px solid transparent;
  border-radius: 4px;
  font-family: "Qanelas-Medium", var(--pods-popup-font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  box-shadow: none;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.pods-custom-popup__primary:hover,
.pods-custom-popup__primary:focus-visible,
.pods-custom-popup__secondary:hover,
.pods-custom-popup__secondary:focus-visible {
  color: #786456;
  background-color: #fff8ed;
  border-color: #786456;
  transform: translateY(-1px);
}

.pods-custom-popup__microcopy {
  margin: 18px 0 0;
  color: var(--pods-popup-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.pods-custom-popup__dismiss {
  align-self: flex-start;
  margin: 18px 0 0;
  padding: 0 0 4px;
  color: var(--pods-popup-muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(111, 98, 88, 0.32);
  border-radius: 0;
  font-family: var(--pods-popup-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  cursor: pointer;
  transition: color 220ms ease, border-color 220ms ease;
}

.pods-custom-popup__dismiss:hover {
  color: var(--pods-popup-text);
  border-color: rgba(32, 26, 22, 0.48);
}

html.pods-custom-popup-open,
body.pods-custom-popup-open {
  overflow: hidden !important;
}

@media (max-width: 980px) {
  .pods-custom-popup__modal {
    grid-template-columns: minmax(280px, 42%) minmax(0, 58%);
    width: min(920px, calc(100vw - 32px));
  }

  .pods-custom-popup__content {
    padding: 44px 36px 36px;
  }

  .pods-custom-popup__title {
    font-size: clamp(31px, 4.5vw, 39px);
  }

  .pods-custom-popup__actions {
    grid-template-columns: 1fr;
  }

  .pods-custom-popup__primary,
  .pods-custom-popup__secondary {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .pods-custom-popup {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
  }

  .pods-custom-popup__overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .pods-custom-popup__modal {
    display: block;
    width: 100%;
    max-height: 90vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 26px 26px 0 0;
    overflow: auto;
    transform: translateY(26px);
    -webkit-overflow-scrolling: touch;
  }

  .pods-custom-popup__visual {
    min-height: 0;
    height: 156px;
  }

  .pods-custom-popup__visual-image {
    object-position: center 58%;
  }

  .pods-custom-popup__visual-caption {
    left: 24px;
    right: 68px;
    bottom: 20px;
  }

  .pods-custom-popup__visual-caption span {
    font-size: 16px;
  }

  .pods-custom-popup__visual-caption small {
    font-size: 10px;
    letter-spacing: 0.13em;
  }

  .pods-custom-popup__close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }

  .pods-custom-popup__content {
    min-height: 0;
    padding: 25px 24px 26px;
  }

  .pods-custom-popup__label {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .pods-custom-popup__title {
    margin-bottom: 14px;
    font-size: 31px;
    line-height: 1.08;
  }

  .pods-custom-popup__body {
    font-size: 15px;
    line-height: 1.6;
  }

  .pods-custom-popup__bullets {
    display: none;
  }

  .pods-custom-popup__actions {
    gap: 12px;
    margin-top: 24px;
  }

  .pods-custom-popup__primary,
  .pods-custom-popup__secondary {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 13px;
  }

  .pods-custom-popup__secondary {
    border: 2px solid transparent;
    text-decoration: none;
  }

  .pods-custom-popup__microcopy {
    margin-top: 14px;
    font-size: 12px;
  }

  .pods-custom-popup__dismiss {
    margin-top: 16px;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .pods-custom-popup__title {
    font-size: 28px;
  }

  .pods-custom-popup__content {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@keyframes podsPopupCloseReveal {
  0% {
    opacity: 0;
    transform: translateY(-6px) scale(0.92);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pods-custom-popup,
  .pods-custom-popup__modal,
  .pods-custom-popup__primary,
  .pods-custom-popup__secondary,
  .pods-custom-popup__dismiss,
  .pods-custom-popup__close,
  .pods-custom-popup__close span,
  .pods-custom-popup__close span::after {
    animation: none !important;
    transition: none !important;
  }

  .pods-custom-popup__modal,
  .pods-custom-popup.is-visible .pods-custom-popup__modal,
  .pods-custom-popup__visual-image {
    transform: none !important;
  }
}
