/* SWYFT ONE entry popup — isolated from the existing site theme. */

dialog.pass-popup {
  width: min(420px, calc(100vw - 30px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 20px;
  color: #102d47;
  background: transparent;
  box-shadow: 0 28px 90px rgba(4, 22, 38, .28);
}

dialog.pass-popup::backdrop {
  background: rgba(5, 22, 37, .48);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

dialog.pass-popup[open] {
  animation: pass-popup-enter .24s cubic-bezier(.2, .75, .25, 1) both;
}

.pass-popup-card {
  position: relative;
  overflow: hidden;
  padding: 31px 29px 22px;
  border: 1px solid rgba(11, 34, 56, .08);
  border-radius: 20px;
  background: #fff;
}

.pass-popup-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  content: "";
  background: linear-gradient(
    90deg,
    #d2a653 0%,
    #efd58c 55%,
    #0b6d9f 100%
  );
}

.pass-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #e5ebef;
  border-radius: 50%;
  color: #536675;
  background: #f7f9fa;
  font: 400 21px/1 Arial, sans-serif;
  cursor: pointer;
  transition:
    background .18s ease,
    color .18s ease,
    transform .18s ease;
}

.pass-popup-close:hover {
  color: #0b2238;
  background: #edf2f5;
  transform: rotate(5deg);
}

.pass-popup-close:focus-visible,
.pass-popup-cta-title:focus-visible,
.pass-popup-whatsapp-link:focus-visible,
.pass-popup-call-link:focus-visible,
.pass-popup-later:focus-visible {
  outline: 3px solid #167db1;
  outline-offset: 3px;
}

.pass-popup-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 42px 13px 0;
  color: #557081;
  font: 800 10px/1.4 Manrope, "DM Sans", Arial, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.pass-popup-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d2a653;
  box-shadow: 0 0 0 4px rgba(210, 166, 83, .15);
}

.pass-popup-card h2 {
  margin: 0 0 12px;
  color: #0b2238;
  font: 800 clamp(24px, 5vw, 29px)/1.14
    Manrope, "DM Sans", Arial, sans-serif;
  letter-spacing: -.045em;
}

.pass-popup-card p {
  margin: 0 0 16px;
  color: #5c6f7d;
  font: 400 14px/1.7 "DM Sans", Arial, sans-serif;
}

/* Homepage visit number. */
.pass-popup-visit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 17px;
  padding: 10px 13px;
  border: 1px solid #e7edf1;
  border-radius: 9px;
  background: #f7f9fa;
}

.pass-popup-visit-label {
  color: #657987;
  font: 800 9px/1.4 Manrope, "DM Sans", Arial, sans-serif;
  letter-spacing: .13em;
}

.pass-popup-visit-number {
  color: #0b2238;
  font: 800 17px/1.2 Manrope, "DM Sans", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

/* Unified navy contact box. */
.pass-popup-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 18px 12px;
  border: 1px solid #0b2238;
  border-radius: 12px;
  color: #fff;
  background: #0b2238;
  font-family: Manrope, "DM Sans", Arial, sans-serif;
  transition: background .18s ease, box-shadow .18s ease;
}

.pass-popup-cta:hover {
  background: #10314c;
  box-shadow: 0 8px 20px rgba(11, 34, 56, .16);
}

.pass-popup-cta-divider {
  display: block;
  flex: 0 0 auto;
  height: 1px;
  margin: 10px 0;
  background: rgba(255, 255, 255, .2);
}

.pass-popup-cta-title {
  display: block;
  color: #fff;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.pass-popup-cta-title span {
  color: #f0cd7c;
  font-size: 19px;
}

.pass-popup-cta-title:hover {
  color: #f0cd7c;
}

/* WhatsApp link. */
.pass-popup-whatsapp-link {
  display: block;
  padding: 2px 0;
  border-radius: 5px;
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.pass-popup-whatsapp-label {
  display: block;
  margin-bottom: 3px;
  color: #dce7ef;
  font-size: 9px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .13em;
}

.pass-popup-whatsapp-title {
  display: block;
  color: #f0cd7c;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 800;
}

.pass-popup-whatsapp-link:hover .pass-popup-whatsapp-title {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Click-to-call phone number. */
.pass-popup-call-link {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 3px 0 1px;
  border-radius: 5px;
  color: #f0cd7c;
  background: transparent;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: .025em;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.pass-popup-call-link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pass-popup-call-label {
  display: block;
  margin-bottom: 2px;
  color: #dce7ef;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .12em;
}

/* Maybe later. */
.pass-popup-later {
  display: block;
  margin: 11px auto 0;
  padding: 7px 12px;
  border: 0;
  color: #6e7d87;
  background: transparent;
  font: 700 12px/1.3 "DM Sans", Arial, sans-serif;
  cursor: pointer;
}

.pass-popup-later:hover {
  color: #0b2238;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer text. */
.pass-popup-footnote {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #edf1f3;
  color: #8a969e;
  font: 800 8px/1.4 Manrope, "DM Sans", Arial, sans-serif;
  letter-spacing: .16em;
  text-align: center;
}

@keyframes pass-popup-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.985);
  }

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

@media (max-width: 480px) {
  .pass-popup-card {
    padding: 28px 22px 19px;
  }

  .pass-popup-card h2 {
    font-size: 25px;
  }

  .pass-popup-card p {
    font-size: 13px;
  }

  .pass-popup-cta {
    padding: 13px 12px 11px;
  }

  .pass-popup-cta-title {
    font-size: 16px;
  }

  .pass-popup-whatsapp-title {
    font-size: 15px;
  }

  .pass-popup-call-link {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog.pass-popup[open] {
    animation: none;
  }

  .pass-popup-close,
  .pass-popup-cta {
    transition: none;
  }
}
