/* === PF: Outcall-only warning modal (contact click gate) === */

body.pf-outcall-modal-open {
  overflow: hidden;
}

.pf-outcall-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100002; /* чуть выше ec-contact-modal */
}

.pf-outcall-modal[aria-hidden="false"] {
  display: block;
}

.pf-outcall-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.pf-outcall-modal__window {
  position: relative;
  width: min(720px, calc(100vw - 24px));
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);

  /* Layout: keep actions at bottom, scroll content */
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  overflow: hidden;

  padding: 18px 18px 22px;
}

.pf-outcall-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.pf-outcall-modal__title {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.2;
}

/* Primary content (single sentence with inline regions list) */
.pf-outcall-modal__text,
.pf-outcall-modal__areas {
  margin: 0 0 16px;

  font-size: 20px;
  line-height: 1.45;

  flex: 1 1 auto;
  overflow: auto;
}

.pf-outcall-modal__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  padding-top: 10px;
}

.pf-outcall-modal__btn {
  cursor: pointer;
  padding: 12px 18px;
  font-size: 16px;
  min-width: 140px;
}

.pf-outcall-modal__btn--cancel {
  opacity: 0.85;
}

/* === PF: Outcall modal area selection (WhatsApp) — keep style consistent with PF area dropdown ===
 * Reference: assets/css/portfolio-filter.css (.select2-dropdown.pf-area-dropdown)
 */

/* Container for area buttons (rendered only in select_area mode) */
.pf-outcall-modal__areas {
  /* same dark translucent background as PF area dropdown */
  background-color: rgba(5, 7, 15, 0.78);
  border-radius: 4px;
  border: none;

  /* mirror dropdown internal spacing */
  padding-top: 8px;
  padding-bottom: 8px;

  /* keep it readable even if parent font rules change */
  color: var(--pf-bg);
}

.pf-outcall-modal__area-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pf-outcall-modal__area-list li {
  margin: 0;
  padding: 0;
}

/* Button styled as a list item (like select2 results option) */
.pf-outcall-area-choice {
  display: block;
  width: 100%;
  box-sizing: border-box;

  background: transparent;
  border: none;

  /* direction-aware alignment (rtl/hebrew should align right) */
  text-align: start;

  color: var(--pf-bg);

  padding: 10px 12px;
  font-size: 20px;
  line-height: 1.25;

  cursor: pointer;
}

.pf-outcall-area-choice:hover,
.pf-outcall-area-choice:focus {
  background-color: rgba(255, 255, 255, 0.08);
  outline: none;
}

/* Visible focus for keyboard users */
.pf-outcall-area-choice:focus-visible {
  outline: 2px solid rgba(148, 163, 184, 0.8);
  outline-offset: -2px;
}

