/* Shared Xentra/products pricing coming-soon modal */
:root {
  --px-brand: linear-gradient(115deg, #1769AA 0%, #20B8C5 100%);
}

body.px-pricing-open {
  overflow: hidden;
}

.px-pricing-modal[hidden] {
  display: none !important;
}

.px-pricing-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: clamp(.5rem, 1.8vw, 1.25rem);
  padding-top: max(clamp(.5rem, 1.8vw, 1.25rem), env(safe-area-inset-top));
  padding-bottom: max(clamp(.5rem, 1.8vw, 1.25rem), env(safe-area-inset-bottom));
  padding-left: max(clamp(.5rem, 1.8vw, 1.25rem), env(safe-area-inset-left));
  padding-right: max(clamp(.5rem, 1.8vw, 1.25rem), env(safe-area-inset-right));
}

.px-pricing-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 28, 38, .72);
  backdrop-filter: blur(8px);
}

.px-pricing-modal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1280px, 96vw);
  height: 94vh;
  height: 94dvh;
  max-height: 94dvh;
  padding: 0;
  overflow: hidden;
  border-radius: clamp(16px, 2vw, 28px);
  border: 1px solid rgba(32, 184, 197, .28);
  background: #ffffff;
  box-shadow: 0 32px 80px rgba(11, 31, 43, .36);
  text-align: center;
}

.px-pricing-modal-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #1769AA;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(11, 31, 43, .2);
}

.px-pricing-modal-close:hover {
  background: #fff;
  color: #0b1c28;
}

.px-pricing-modal-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #0b1c28;
}

.px-pricing-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

.px-pricing-modal-body {
  flex: 0 0 auto;
  padding: clamp(1.15rem, 2.4vw, 2rem) clamp(1.25rem, 3vw, 2.75rem)
    clamp(1.35rem, 2.8vw, 2.25rem);
  text-align: center;
}

.px-pricing-modal-title {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto .65rem;
  background: var(--px-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.px-pricing-modal-copy {
  display: block;
  width: fit-content;
  max-width: min(42ch, 100%);
  margin: 0 auto;
  background: var(--px-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.01em;
}

/* iPad / tablet */
@media (max-width: 1024px) {
  .px-pricing-modal-dialog {
    width: 96vw;
    height: 94vh;
    height: 94dvh;
    max-height: 94dvh;
  }

  .px-pricing-modal-close {
    width: 42px;
    height: 42px;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .px-pricing-modal {
    padding: .4rem;
    padding-top: max(.4rem, env(safe-area-inset-top));
    padding-bottom: max(.4rem, env(safe-area-inset-bottom));
  }

  .px-pricing-modal-dialog {
    width: 100%;
    height: min(100%, 96dvh);
    max-height: 96dvh;
    border-radius: 16px;
  }

  .px-pricing-modal-media {
    flex: 1 1 62%;
  }

  .px-pricing-modal-body {
    padding: 1.1rem 1.15rem 1.35rem;
  }

  .px-pricing-modal-title {
    font-size: clamp(1.3rem, 6.5vw, 1.7rem);
    margin-bottom: .5rem;
  }

  .px-pricing-modal-copy {
    font-size: clamp(.95rem, 4vw, 1.08rem);
    max-width: 28ch;
  }

  .px-pricing-modal-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.45rem;
  }
}

/* Short phones / landscape phones */
@media (max-height: 560px) {
  .px-pricing-modal-dialog {
    height: 96dvh;
    max-height: 96dvh;
  }

  .px-pricing-modal-media {
    flex: 1 1 55%;
  }

  .px-pricing-modal-body {
    padding: .85rem 1rem 1rem;
  }

  .px-pricing-modal-title {
    font-size: 1.2rem;
    margin-bottom: .35rem;
  }

  .px-pricing-modal-copy {
    font-size: .92rem;
  }
}
