/* ── Homepage offer popup — fully scoped, no global overrides ─────────────── */

.udyot-offer-modal {
  /* Local aliases for the pp-* variables used by the supplied markup.
     Defined on the modal itself so the pricing page styles are untouched. */
  --pp-ink: var(--ink, #0f1530);
  --pp-ink-3: var(--ink-3, #5f6b85);
  --pp-line: var(--mist-2, #e3e7f2);
  --pp-white: var(--white, #ffffff);
  --pp-blue: var(--blue, #1d4ed8);
  --pp-mono: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);

  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

/* Keep it hidden even if another stylesheet sets display on divs. */
.udyot-offer-modal[hidden] {
  display: none;
}

.udyot-offer-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0.62);
}

.udyot-offer-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: calc(100vh - 48px);
  /* overflow-y: auto; */
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(10, 15, 30, 0.28);
  padding: 16px;
  box-sizing: border-box;
}

.udyot-offer-modal__close {
  position: absolute;
  top: -15px;
  right: -15px;
  /* top: 14px;
  right: 14px; */
  z-index: 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pp-line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--pp-ink);
  cursor: pointer;
  padding: 0;
  line-height: 0;
}

.udyot-offer-modal__close:hover,
.udyot-offer-modal__close:focus-visible {
  background: var(--pp-blue);
  border-color: var(--pp-blue);
  color: #ffffff;
  outline: none;
}

/* Minimal styles required by the supplied offer markup. */
.udyot-offer-modal .pp-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.udyot-offer-modal .pp-panel {
  background: var(--pp-white);
  border: 1px solid var(--pp-line);
  border-radius: 16px;
  padding: 28px;
  box-sizing: border-box;
}

.udyot-offer-modal .pp-btn {
  display: inline-block;
  border: 1px solid var(--pp-line);
  border-radius: 999px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-sizing: border-box;
}

.udyot-offer-modal .pp-btn.is-primary {
  background: var(--pp-blue);
  border-color: var(--pp-blue);
  color: #ffffff;
}

.udyot-offer-modal .pp-btn.is-primary:hover,
.udyot-offer-modal .pp-btn.is-primary:focus-visible {
  filter: brightness(1.08);
  color: #ffffff;
}

/* Prevent background scrolling only while the modal is open. */
body.udyot-offer-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .udyot-offer-modal {
    padding: 12px;
  }

  .udyot-offer-modal__dialog {
    padding: 10px;
    max-height: calc(100vh - 24px);
  }

  .udyot-offer-modal .pp-panel {
    padding: 20px;
  }

  .udyot-offer-modal__close {
    top: 8px;
    right: 8px;
  }
}