/* ============================================================
   Phone Gate v5 — WhatsApp-window structure, Hapisga branding
   - Filled brand-blue header with phone icon (right), X (left)
   - White body, light-grey chat bubbles stacked
   - Host ID card with name/label right, avatar middle, message pill left
   - +972 prefix input with label
   - No backdrop dim — curly line + "חיבור מאובטח" badge persist
   ============================================================ */

.pg-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #eef1f4 0%, #e3e8ed 100%);
  font-family: var(--hp-font);
  direction: rtl;
  color: var(--hp-fg-2);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.pg-stage {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  background: #f7f8fa;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

/* ============ Sticky top bar ============ */
.pg-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pg-topbar .brand {
  font-weight: 700; font-size: 17px; color: var(--hp-brand-dark); letter-spacing: -0.3px;
}
.pg-topbar .actions { display: flex; gap: 8px; align-items: center; }
.pg-topbar-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--hp-bg-2);
  border: none; cursor: pointer; color: var(--hp-fg-2);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.pg-topbar-icon:hover { background: var(--hp-bg-3); }
.pg-topbar-icon.primary {
  background: var(--hp-brand); color: #fff;
  box-shadow: 0 4px 12px rgba(9,165,217,0.32);
  position: relative;
}
.pg-topbar-icon.primary:hover { background: var(--hp-brand-hover); }
.pg-topbar-icon.primary.idle::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(9,165,217,0.3);
  animation: pgRing 2s ease-out infinite;
}
@keyframes pgRing {
  0% { opacity: 1; transform: scale(0.85); }
  100% { opacity: 0; transform: scale(1.4); }
}
.pg-topbar-icon.primary.vibrating { animation: pgVibrate 0.45s ease-out; }
@keyframes pgVibrate {
  0%, 100% { transform: translateX(0) rotate(0); }
  15% { transform: translateX(-2px) rotate(-8deg); }
  30% { transform: translateX(2px) rotate(8deg); }
  45% { transform: translateX(-2px) rotate(-6deg); }
  60% { transform: translateX(2px) rotate(6deg); }
  75% { transform: translateX(-1px) rotate(-3deg); }
}

/* ============ Villa content ============ */
.pg-villa { flex: 1; display: flex; flex-direction: column; }
.pg-villa-hero {
  height: 240px;
  background:
    radial-gradient(ellipse 400px 200px at 30% 70%, #2a4a5e 0%, transparent 60%),
    linear-gradient(135deg, #1a3a4e, #2e5a72);
  position: relative;
}
.pg-villa-hero .pg-photo-count {
  position: absolute; bottom: 14px; inset-inline-start: 14px;
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 11.5px; padding: 5px 10px; border-radius: 999px;
  backdrop-filter: blur(8px);
}
.pg-villa-info { padding: 18px 20px; background: #fff; }
.pg-villa-title {
  font-size: 22px; font-weight: 700; color: var(--hp-fg-1);
  margin: 0 0 6px; letter-spacing: -0.3px; line-height: 1.25;
}
.pg-villa-loc { font-size: 13px; color: var(--hp-fg-3); margin-bottom: 14px; }
.pg-villa-loc .dot { color: var(--hp-brass); margin: 0 6px; }
.pg-villa-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--hp-fg-2); margin-bottom: 16px; }
.pg-villa-rating .star { color: var(--hp-brass); font-size: 14px; }
.pg-villa-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--hp-border-soft);
  border-bottom: 1px solid var(--hp-border-soft);
  margin-bottom: 16px; text-align: center;
}
.pg-villa-meta .item { font-size: 11px; color: var(--hp-fg-3); }
.pg-villa-meta .item b { display: block; font-size: 14px; color: var(--hp-fg-1); font-weight: 600; margin-top: 2px; }
.pg-villa-desc { font-size: 14px; line-height: 1.65; color: var(--hp-fg-2); }
.pg-villa-desc p { margin: 0 0 10px; }
.pg-villa-price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 16px 20px; background: #fff;
  border-top: 8px solid #f7f8fa;
}
.pg-villa-price-row .price { font-size: 22px; font-weight: 700; color: var(--hp-fg-1); }
.pg-villa-price-row .price small { font-size: 13px; font-weight: 400; color: var(--hp-fg-3); }
.pg-villa-price-row .nights { font-size: 12px; color: var(--hp-fg-3); }

/* ============================================================
   Floating widget overlay — no dim
   Uses position:fixed so the widget always appears in the viewport
   regardless of how far the user scrolled before clicking the CTA.
   ============================================================ */
.pg-widget-overlay {
  position: fixed; inset: 0;
  /* Must sit ABOVE the unit-page gallery/lightbox (z-index 9999–10000) and the
     booking popups (999999999) so the call popup is visible when triggered from
     a unit page. Stays click-through when closed (pointer-events:none below). */
  z-index: 2147483000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  pointer-events: none;
}
.pg-widget-overlay.open .pg-widget,
.pg-widget-overlay.open .pg-demo-switcher,
.pg-widget-overlay.open .pg-line { pointer-events: auto; }

/* Connecting line + secure badge */
.pg-line {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 51;
}
.pg-line path.pg-line-path {
  fill: none;
  stroke: rgba(9, 165, 217, 0.55);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
}
.pg-widget-overlay.open .pg-line path.pg-line-path {
  animation: pgDrawLine 0.7s cubic-bezier(.4,.0,.2,1) 0.1s forwards;
}
@keyframes pgDrawLine { to { stroke-dashoffset: 0; } }

.pg-secure-badge {
  position: absolute;
  width: 82px; height: 82px;
  border-radius: 50%;
  background: #EFEFEA;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}
.pg-widget-overlay.open .pg-secure-badge {
  animation: pgBadgeIn 0.35s ease-out 0.55s forwards;
}
@keyframes pgBadgeIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.pg-secure-badge .art {
  color: var(--hp-brass);
  display: flex; align-items: center; justify-content: center;
}
.pg-secure-badge .art svg { width: 32px; height: 32px; display: block; }
.pg-secure-badge .row {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 600;
  color: #4a3500;
  letter-spacing: 0;
}
.pg-secure-badge .check {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--hp-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pg-secure-badge .check svg { width: 8px; height: 8px; }

/* ============================================================
   The widget
   ============================================================ */
.pg-widget {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 22px;
  box-shadow:
    0 30px 60px rgba(20, 50, 80, 0.18),
    0 8px 20px rgba(20, 50, 80, 0.08),
    0 0 0 0.5px rgba(0,0,0,0.04);
  position: relative; z-index: 52;
  overflow: hidden;
  transform: scale(0.85) translateY(-12px);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(.2,1.15,.4,1) 0.4s, opacity 0.3s ease 0.4s;
}
.pg-widget-overlay.open .pg-widget {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ============ Filled header — brand blue (all states) ============ */
.pg-w-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #09a5d9;
  color: #fff;
  position: relative;
}
.pg-w-head-title {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* phone icon (first) + text on the right in RTL */
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}
.pg-w-head-title .ico {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.pg-w-head-title .ico svg { width: 13px; height: 13px; transform: scaleX(-1); }
.pg-w-head-title .ico.pulse {
  animation: pgHeadIconPulse 1.6s ease-in-out infinite;
}
@keyframes pgHeadIconPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 4px rgba(255,255,255,0.18); }
}
.pg-w-head-title .live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--hp-green);
  box-shadow: 0 0 0 0 rgba(9, 217, 92, 0.6);
  animation: pgLiveDot 1.4s ease-out infinite;
  display: inline-block;
  margin-inline-end: 6px;
}
.pg-w-head-title .ico.live-phone {
  background: var(--hp-green);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(9, 217, 92, 0.55);
  animation: pgLiveDot 1.4s ease-out infinite;
}
.pg-w-head-title .ico.live-phone svg { transform: scaleX(-1); }
.pg-w-head-title .ico.no-answer-phone {
  background: var(--hp-red);
  color: #fff;
}
.pg-w-head-title .ico.no-answer-phone svg { width: 13px; height: 13px; transform: scaleX(-1); }
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.1px;
  white-space: nowrap;
}
.pg-w-head-title {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}
.pg-w-favorites { margin-top: 18px; }
.pg-w-notes-card { margin-top: 14px; }
.pg-call-status .sep {
  opacity: 0.55;
  font-weight: 400;
}
.pg-call-status .timer {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.4px;
  opacity: 0.95;
}
@keyframes pgLiveDot {
  0% { box-shadow: 0 0 0 0 rgba(9, 217, 92, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(9, 217, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(9, 217, 92, 0); }
}

/* Compact Reservation Anchor — present on all 3 call states */
.pg-anchor-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 14px;
}

/* Ultra-minimal StateConnected body */
.pg-w-mini {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 18px 14px 8px;
}
.pg-w-mini-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--hp-fg-1);
  margin: 0;
  letter-spacing: -0.2px;
}
.pg-w-mini-heart {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hp-brand);
  margin: -2px 0 0;
}
.pg-w-mini-heart svg { width: 44px; height: 44px; }
.pg-sn-textbox-area {
  height: 64px;
  padding: 10px 12px;
  resize: none;
  line-height: 44px;
  font-size: 13px;
  color: var(--hp-fg-1);
}
.pg-sn-textbox-area::placeholder {
  font-size: 12.5px;
  font-weight: 400;
  color: #94a3b8;
}
/* Heart toggle */
.pg-w-mini-heart-toggle {
  border: none;
  background: transparent;
  padding: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hp-brand);
  transition: color 0.18s, transform 0.12s;
}
.pg-w-mini-heart-toggle:hover { color: var(--hp-brand-hover); }
.pg-w-mini-heart-toggle:active { transform: scale(0.92); }
.pg-w-mini-heart-toggle.on { color: var(--hp-brand); animation: pgHeartPop 0.4s cubic-bezier(.2,1.4,.5,1); }
.pg-w-mini-heart-toggle.on svg { fill: currentColor; }
@keyframes pgHeartPop {
  0% { transform: scale(0.9); }
  60% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* Inline note input wrapper with "נשמר" check */
.pg-sn-input-wrap {
  position: relative;
}
.pg-sn-input-wrap .pg-sn-textbox-area {
  padding-inline-start: 38px;
}
.pg-sn-saved-mark {
  position: absolute;
  top: 50%;
  inset-inline-start: 12px;
  transform: translateY(-50%) scale(0.6);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hp-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.3s cubic-bezier(.2,1.4,.5,1);
}
.pg-sn-saved-mark.show {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.pg-sn-saved-mark svg { width: 12px; height: 12px; }
.pg-anchor-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--hp-fg-1);
  letter-spacing: -0.1px;
  padding: 0 4px;
}
.pg-anchor-header .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hp-brass);
}
.pg-anchor {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  align-items: stretch;
  margin: 0;
  background: var(--hp-bg-2);
  border-radius: 12px;
  padding: 4px 4px 8px;
}
.pg-anchor .pg-anchor-header {
  grid-column: 1 / -1;
  justify-self: center;
  padding: 6px 8px 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--hp-fg-1);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin: 0 -4px 4px;
  width: calc(100% + 8px);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.pg-anchor .pg-anchor-header .ico {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: #09a5d9;
  margin: 0;
  vertical-align: 0;
}
.pg-anchor .pg-anchor-header .ico svg { width: 100%; height: 100%; }
.pg-anchor-empty { grid-template-columns: repeat(2, 1fr); direction: rtl; }
.pg-anchor-empty .pg-anchor-header { grid-column: 1 / -1; }
.pg-anchor-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 6px;
  text-align: center;
  position: relative;
}
.pg-anchor-cell + .pg-anchor-cell::after {
  content: '';
  position: absolute;
  inset-inline-end: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: rgba(0,0,0,0.08);
}
.pg-anchor-cell .row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #09a5d9;
}
.pg-anchor-cell .row svg { width: 14px; height: 14px; }
.pg-anchor-cell .label {
  font-size: 10px;
  color: var(--hp-fg-3);
  font-weight: 500;
  letter-spacing: 0.1px;
}
.pg-anchor-cell .value {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--hp-fg-1);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.1px;
  white-space: nowrap;
}

/* Empty-search state — 2 columns instead of 3; price on right */
.pg-anchor-empty { grid-template-columns: repeat(2, 1fr); direction: rtl; }
.pg-anchor-empty .pg-anchor-cell:first-child { order: 2; }
.pg-anchor-empty .pg-anchor-cell:last-child { order: 1; }
.pg-anchor-empty .pg-anchor-cell .row { color: var(--hp-fg-3); }
.pg-anchor-empty .pg-anchor-cell .value { color: var(--hp-fg-1); font-weight: 600; font-size: 12px; }

/* ============================================================
   Notes card — wraps label + hearts + textarea on Connected state
   ============================================================ */
.pg-w-notes-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pg-w-notes-card:focus-within {
  box-shadow: none;
}
.pg-w-notes-card .pg-w-notes-label {
  margin-bottom: 0;
}
.pg-w-notes-card .pg-w-notes {
  border: 1.5px solid var(--hp-border-soft);
  background: #fff;
  padding: 10px 12px;
  min-height: 96px;
  border-radius: 10px;
  white-space: pre-line;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pg-w-notes-card .pg-w-notes:focus {
  border-color: var(--hp-brand);
  box-shadow: 0 0 0 3px var(--hp-brand-tint-15);
}

/* ============================================================
   Hearts rating
   ============================================================ */
.pg-hearts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 0 2px;
  border-top: 1px dashed rgba(0,0,0,0.08);
  padding-top: 10px;
}
.pg-hearts-label {
  font-size: 11.5px;
  color: var(--hp-fg-3);
  font-weight: 500;
  text-align: right;
}
.pg-hearts-row {
  display: flex;
  flex-direction: row-reverse;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
}
.pg-heart {
  width: 30px; height: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hp-fg-4);
  padding: 0;
  border-radius: 6px;
  transition: color 0.15s, transform 0.08s;
}
.pg-heart svg { width: 22px; height: 22px; }
.pg-heart:hover { transform: scale(1.12); }
.pg-heart.filled { color: var(--hp-brand); }
.pg-heart:focus-visible { outline: 2px solid var(--hp-brand-tint-15); }

/* ============================================================
   Favorites primary button
   ============================================================ */
.pg-w-favorites {
  margin-top: 12px;
  width: 100%;
  height: 48px;
  background: var(--hp-brand);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 14px rgba(9,165,217,0.28);
  transition: background 0.15s, transform 0.06s;
  white-space: nowrap;
}
.pg-w-favorites svg { width: 18px; height: 18px; }
.pg-w-favorites:hover { background: var(--hp-brand-hover); }
.pg-w-favorites:active { transform: scale(0.99); }
.pg-w-favorites.saved {
  background: #fff;
  color: var(--hp-brand);
  border: 1.5px solid var(--hp-brand);
  box-shadow: none;
}
.pg-w-favorites.saved svg { color: var(--hp-red); }
.pg-w-favorites + .pg-w-caption { margin-top: 8px; }

/* ============================================================
   Smart structured notes form (State 2)
   ============================================================ */
.pg-smartnotes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

/* Unified pre-filled text-input rows for State 2 */
.pg-sn-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pg-sn-row-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.1px;
  padding: 0 12px;
}
.pg-sn-textbox {
  width: 100%;
  height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pg-sn-textbox::placeholder { color: #94a3b8; font-weight: 400; font-size: 12.5px; }
.pg-sn-textbox:focus {
  border-color: var(--hp-brand);
  box-shadow: 0 0 0 2px var(--hp-brand-tint-15);
}

/* Override pricetag to align with the rest */
.pg-sn-pricetag-full {
  width: 100%;
  height: 40px;
  min-height: 40px;
  box-sizing: border-box;
  border-radius: 10px !important;
  padding: 0 10px 0 14px;
  gap: 6px;
  background: #fff;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: stretch;
}
.pg-sn-pricetag-full input {
  flex: 1;
  width: auto;
  height: 100%;
  min-height: 38px;
  font-size: 13px;
  line-height: 38px;
}
.pg-sn-pricetag-full input::placeholder { font-size: 12.5px; }
.pg-sn-pricetag-full .suffix { font-size: 13px; color: #64748b; font-weight: 700; display: inline-flex; align-items: center; }
.pg-sn-pricetag-full:focus-within {
  background: #fff;
  border-color: var(--hp-brand);
  box-shadow: 0 0 0 2px var(--hp-brand-tint-15);
}
.pg-sn-pricetag-full:focus-within .suffix { color: var(--hp-brand); }
.pg-sn-pricetag-full.on { background: #fff; border-color: #94a3b8; }
.pg-sn-pricetag-full.on .suffix { color: #1e293b; }

.pg-smartnotes { gap: 10px; }
.pg-sn-row-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Split textbox — two centered inputs that look like one field */
.pg-sn-splitbox {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pg-sn-splitbox:focus-within {
  border-color: var(--hp-brand);
  box-shadow: 0 0 0 2px var(--hp-brand-tint-15);
}
.pg-sn-split-input {
  flex: 1;
  width: 0;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  text-align: center;
  padding: 0 6px;
  font-variant-numeric: tabular-nums;
}
.pg-sn-split-input::placeholder { color: #94a3b8; font-weight: 400; }
.pg-sn-split-sep {
  display: inline-flex;
  align-items: center;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 300;
  user-select: none;
}
.pg-sn-pricetag-full {
  width: 100%;
  height: 36px;
  padding: 0 8px 0 14px;
  gap: 6px;
}
.pg-sn-pricetag-full input {
  flex: 1;
  width: auto;
  font-size: 14px;
}
.pg-sn-pricetag-full input::placeholder {
  font-size: 13px;
}
.pg-sn-pricetag-full .suffix {
  font-size: 13px;
}

/* Cell wrapper for chip + inline controls */
.pg-sn-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: start;
}
.pg-sn-cell-extra {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 4px 2px;
}

/* Native select styled to match */
.pg-sn-select {
  width: 100%;
  height: 30px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 0 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--hp-fg-1);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: left 8px center;
  background-size: 12px;
  padding-inline-start: 22px;
}
.pg-sn-select:focus {
  border-color: var(--hp-brand);
  box-shadow: 0 0 0 2px var(--hp-brand-tint-15);
}

/* Mini toggle buttons (breakfast: כלול/תוספת) */
.pg-sn-mini {
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pg-sn-mini:hover { background: #f8fafc; border-color: #94a3b8; }
.pg-sn-mini.on {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
  font-weight: 600;
}

/* Mini price input (when breakfast = paid) */
.pg-sn-mini-price {
  display: inline-flex;
  align-items: center;
  height: 26px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  padding: 0 6px;
  gap: 3px;
}
.pg-sn-mini-price input {
  width: 50px;
  height: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--hp-fg-1);
  font-variant-numeric: tabular-nums;
  padding: 0 2px;
  text-align: left;
  direction: ltr;
}
.pg-sn-mini-price input::placeholder { color: #94a3b8; font-weight: 500; font-size: 11px; }
.pg-sn-mini-price .suffix {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 700;
}

/* 2-column logistics grid */
.pg-sn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.pg-sn-grid .pg-sn-chip {
  width: 100%;
  height: 36px;
  border-radius: 10px;
  padding: 0 12px;
  justify-content: center;
  font-size: 12.5px;
  color: #334155;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-weight: 500;
  position: relative;
}
.pg-sn-grid .pg-sn-chip:hover {
  color: var(--hp-fg-1);
  background: #f8fafc;
  border-color: #94a3b8;
}
.pg-sn-grid .pg-sn-chip .ico { color: #64748b; width: 14px; height: 14px; display: inline-flex; flex-shrink: 0; }
.pg-sn-grid .pg-sn-chip .ico svg { width: 100%; height: 100%; }
.pg-sn-grid .pg-sn-chip:hover .ico { color: #475569; }

/* Active = premium neutral slate (no neon green) */
.pg-sn-grid .pg-sn-chip.on {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #1e293b;
  font-weight: 600;
}
.pg-sn-grid .pg-sn-chip.on .ico { color: #1e293b; }
.pg-sn-grid .pg-sn-chip .ico.check,
.pg-sn-grid .pg-sn-chip.on .ico {
  color: #0f172a;
}

/* Inline-dropdown chip: native select overlays the chip */
.pg-sn-chip-select {
  cursor: pointer;
  overflow: hidden;
  gap: 6px;
}
.pg-sn-chip-select .lbl {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pg-sn-chip-select .caret {
  width: 12px; height: 12px;
  display: inline-flex;
  color: #94a3b8;
  flex-shrink: 0;
}
.pg-sn-chip-select .caret svg { width: 100%; height: 100%; }
.pg-sn-chip-select.on .caret { color: #475569; }
.pg-sn-chip-select .pg-sn-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: none;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 12.5px;
}
.pg-sn-chip-select .pg-sn-native option { color: #1e293b; }
.pg-sn-scroller-wrap {
  position: relative;
  margin: 0 -14px; /* extend to widget edges so scroll feels edge-to-edge */
}
.pg-sn-scroller {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 14px;
}
.pg-sn-scroller::-webkit-scrollbar { display: none; }
.pg-sn-scroller-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 28px;
  pointer-events: none;
  background: linear-gradient(to right, #fff, rgba(255,255,255,0));
  z-index: 1;
}

/* Price tag — neutral when empty, brand when filled/focused */
.pg-sn-pricetag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px 0 10px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: text;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.pg-sn-pricetag .suffix {
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  transition: color 0.15s;
}
.pg-sn-pricetag input {
  width: 84px;
  height: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-fg-1);
  font-variant-numeric: tabular-nums;
  padding: 0;
  text-align: right;
  direction: ltr;
  min-width: 0;
}
.pg-sn-pricetag input::placeholder { color: #94a3b8; font-weight: 500; font-size: 11.5px; }
.pg-sn-pricetag:focus-within {
  background: rgba(9, 165, 217, 0.06);
  border-color: var(--hp-brand);
}
.pg-sn-pricetag:focus-within .suffix { color: var(--hp-brand); }
.pg-sn-pricetag.on {
  background: rgba(9, 165, 217, 0.06);
  border-color: rgba(9, 165, 217, 0.45);
}
.pg-sn-pricetag.on .suffix { color: var(--hp-brand-dark); }

/* Chips inside scroller */
.pg-sn-scroller .pg-sn-chip {
  flex-shrink: 0;
  height: 28px;
  padding: 0 11px 0 9px;
  color: #334155;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-weight: 500;
}
.pg-sn-scroller .pg-sn-chip .ico { color: #64748b; }
.pg-sn-scroller .pg-sn-chip:hover {
  color: var(--hp-fg-1);
  background: #f8fafc;
  border-color: #94a3b8;
}
.pg-sn-scroller .pg-sn-chip:hover .ico { color: #475569; }
/* Active = "Agreed/Confirmed" — soft hospitality green */
.pg-sn-scroller .pg-sn-chip.on {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
  font-weight: 600;
}
.pg-sn-scroller .pg-sn-chip.on .ico { color: #15803d; }
.pg-sn-scroller .pg-sn-chip .ico.check { color: #16a34a; }
.pg-sn-scroller .pg-sn-chip .ico.check svg { width: 12px; height: 12px; }
.pg-sn-price-wrap {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid #f1f3f5;
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
  overflow: hidden;
  height: 34px;
}
.pg-sn-price-wrap:focus-within {
  border-color: var(--hp-brand);
  box-shadow: 0 0 0 2px var(--hp-brand-tint-15);
}
.pg-sn-price-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--hp-fg-1);
  padding: 0 10px;
  height: 100%;
  min-width: 0;
  text-align: left;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
}
.pg-sn-price-input::placeholder { color: var(--hp-fg-4); font-weight: 400; }
.pg-sn-price-suffix {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  background: #f7f8fa;
  color: var(--hp-fg-3);
  font-size: 12px;
  font-weight: 600;
  border-inline-start: 1px solid #f1f3f5;
}
.pg-sn-discount {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #78350f;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 4px 2px;
  animation: pgFadeIn 0.25s ease-out;
  line-height: 1.4;
}
.pg-sn-discount .ico {
  width: 16px;
  height: 16px;
  color: var(--hp-brass);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pg-sn-discount .ico svg { width: 100%; height: 100%; }
.pg-sn-discount .text { flex: 1; }
.pg-sn-discount b { color: #4a3500; font-weight: 700; }
@keyframes pgFadeIn {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tag chips */
.pg-sn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pg-sn-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 11px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: #475569;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.pg-sn-chip:hover { background: #f1f5f9; color: var(--hp-fg-1); }
.pg-sn-chip.on {
  background: rgba(9, 165, 217, 0.08);
  border-color: rgba(9, 165, 217, 0.28);
  color: var(--hp-brand-dark);
  font-weight: 600;
}
.pg-sn-chip .ico {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: #94a3b8;
}
.pg-sn-chip .ico svg { width: 100%; height: 100%; }
.pg-sn-chip.on .ico { color: var(--hp-brand); }

/* Inline time pills (single row, no wrapper card) */
.pg-sn-inline-pills {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 4px 2px 0;
  flex-wrap: wrap;
}
.pg-sn-inline-label {
  font-size: 11px;
  color: var(--hp-fg-3);
  font-weight: 500;
  margin-inline-end: 2px;
}
.pg-sn-time-pill {
  border: 1px solid var(--hp-border-soft);
  background: #fff;
  color: var(--hp-fg-2);
  border-radius: 999px;
  padding: 2px 8px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-variant-numeric: tabular-nums;
}
.pg-sn-time-pill.on {
  background: var(--hp-brand);
  border-color: var(--hp-brand);
  color: #fff;
}

/* Optional extra note */
.pg-sn-extra {
  width: 100%;
  height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--hp-fg-1);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pg-sn-extra::placeholder { color: #64748b; font-weight: 400; }
.pg-sn-extra:focus {
  border-color: var(--hp-brand);
  box-shadow: 0 0 0 2px var(--hp-brand-tint-15);
}

/* Hearts rating section divider */
.pg-w-rating-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.pg-w-rating-row .pg-hearts-label {
  text-align: center;
  font-size: 12.5px;
  color: var(--hp-fg-3);
  font-weight: 500;
}
.pg-w-rating-row .pg-hearts-row {
  justify-content: center;
}
.pg-w-notes-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
  margin-bottom: 8px;
}

/* Mobile variant of Step 1 — direct call trigger */
.pg-w-mobile-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 14px 14px;
  background: #fff;
}
.pg-w-mobile-onboard {
  background: var(--hp-bg-2);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
}
.pg-w-mobile-onboard-top {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hp-fg-1);
  margin: 0;
  line-height: 1.5;
}
.pg-w-mobile-onboard-bottom {
  font-size: 12px;
  font-weight: 500;
  color: var(--hp-fg-3);
  margin: 8px 0 0;
  line-height: 1.55;
}
.pg-w-bubble-secondary {
  background: rgba(0,0,0,0.04);
  color: var(--hp-fg-2);
  font-weight: 400;
}
.pg-w-bubble + .pg-w-bubble { margin-top: 0; margin-bottom: 12px; }
.pg-w-host-card-compact { margin-bottom: 0; }
.pg-w-mobile-legal-tight { font-size: 11px; color: var(--hp-fg-4); margin-bottom: 10px; }
.pg-w-mobile-legal-tight a { color: var(--hp-brand-dark); text-decoration: underline; }
.pg-w-submit-link {
  text-decoration: none;
  height: 50px;
  font-size: 15.5px;
}
.pg-w-mobile-legal {
  font-size: 11px;
  color: var(--hp-fg-3);
  text-align: center;
  margin: 2px 0 0;
  line-height: 1.55;
}
.pg-w-mobile-legal a { color: var(--hp-brand-dark); text-decoration: underline; }

/* ============================================================
   Success panes — Notes saved / Message sent
   ============================================================ */
.pg-w-success-pane {
  background: #fff;
  padding: 28px 22px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pg-w-big-check {
  width: 96px; height: 96px;
  color: var(--hp-green);
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
}
.pg-w-big-check svg { width: 96px; height: 96px; display: block; }

.pg-anim-circle {
  animation: pgDrawCircle 0.6s cubic-bezier(.4,.0,.2,1) forwards;
}
@keyframes pgDrawCircle { to { stroke-dashoffset: 0; } }
.pg-anim-check {
  animation: pgDrawCheck 0.4s cubic-bezier(.2,1,.4,1) 0.45s forwards;
}
@keyframes pgDrawCheck { to { stroke-dashoffset: 0; } }

.pg-anim-plane {
  color: var(--hp-brand);
  animation: pgPlaneFly 0.7s cubic-bezier(.2,1.2,.4,1);
}
@keyframes pgPlaneFly {
  0% { transform: translate(20px, 20px) scale(0.7) rotate(-12deg); opacity: 0; }
  60% { transform: translate(-4px, -4px) scale(1.05) rotate(2deg); opacity: 1; }
  100% { transform: translate(0, 0) scale(1) rotate(0); opacity: 1; }
}

.pg-w-success-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--hp-fg-1);
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}
.pg-w-success-sub {
  font-size: 13px;
  color: var(--hp-fg-3);
  line-height: 1.55;
  margin: 0 0 22px;
  max-width: 280px;
}
.pg-w-success-body {
  text-align: right;
  width: 100%;
  margin: 0 0 22px;
}
.pg-w-success-intro {
  font-size: 13px;
  color: var(--hp-fg-2);
  margin: 0 0 8px;
  font-weight: 500;
}
.pg-w-success-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pg-w-success-list li {
  position: relative;
  padding-inline-start: 14px;
  font-size: 13px;
  color: var(--hp-fg-2);
  line-height: 1.55;
}
.pg-w-success-list li::before {
  content: '•';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  color: var(--hp-brand);
  font-weight: 700;
}
.pg-w-success-list b { color: var(--hp-fg-1); font-weight: 700; }
.pg-w-success-aside {
  font-size: 11.5px;
  color: var(--hp-fg-3);
  line-height: 1.5;
  margin: 10px 0 0;
  padding-inline-start: 14px;
}
.pg-w-success-aside em { font-style: italic; }

/* Roomier variant for the redesigned message-sent screen */
.pg-w-success-pane-roomy { padding: 32px 24px 24px; }
.pg-w-success-title-wide {
  max-width: 320px;
  line-height: 1.35;
  margin: 0 auto 14px;
}
.pg-w-success-desc {
  font-size: 13.5px;
  color: var(--hp-fg-2);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 300px;
  text-align: center;
}
.pg-w-success-actions-roomy { margin-top: 14px; }
.pg-w-success-actions-spacious { margin-top: 26px; gap: 6px; }

/* Notify-by-SMS row */
.pg-w-notify-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 14px 4px 0;
  cursor: pointer;
  transition: opacity 0.15s;
}
.pg-w-notify-row:hover { opacity: 0.85; background: transparent; }
.pg-w-notify-row.on { border-color: transparent; }
.pg-w-notify-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pg-w-notify-box {
  width: 20px; height: 20px;
  border-radius: 5px;
  background: #fff;
  border: 1.5px solid var(--hp-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.pg-w-notify-box svg { width: 12px; height: 12px; display: none; }
.pg-w-notify-row.on .pg-w-notify-box {
  background: var(--hp-brand);
  border-color: var(--hp-brand);
}
.pg-w-notify-row.on .pg-w-notify-box svg { display: block; }
.pg-w-notify-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hp-fg-2);
}
.pg-w-success-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pg-w-success-secondary {
  background: transparent;
  border: none;
  color: var(--hp-fg-3);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.pg-w-success-secondary:hover { background: var(--hp-bg-2); color: var(--hp-fg-2); }

/* Connecting state */
.pg-w-connecting { padding: 14px 0 16px; background: #fff; }
.pg-w-connecting-head {
  text-align: center;
  padding: 22px 0 18px;
}
.pg-w-ringing-mark {
  width: 96px; height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(9, 165, 217, 0.08);
  display: flex; align-items: center; justify-content: center;
  color: #09a5d9;
  position: relative;
}
.pg-w-ringing-mark::before,
.pg-w-ringing-mark::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(9, 165, 217, 0.32);
  animation: pgRingingWave 2s ease-out infinite;
  opacity: 0;
}
.pg-w-ringing-mark::after { animation-delay: 0.7s; }
@keyframes pgRingingWave {
  0% { opacity: 0.9; transform: scale(0.85); }
  100% { opacity: 0; transform: scale(1.55); }
}
.pg-w-ringing-mark svg { width: 48px; height: 48px; animation: pgPhoneVibrate 0.9s ease-in-out infinite; }
@keyframes pgPhoneVibrate {
  0%, 100% { transform: scaleX(-1) rotate(0); }
  20% { transform: scaleX(-1) rotate(-14deg); }
  40% { transform: scaleX(-1) rotate(14deg); }
  60% { transform: scaleX(-1) rotate(-10deg); }
  80% { transform: scaleX(-1) rotate(8deg); }
}
.pg-w-connecting-head h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--hp-fg-1);
  margin: 0;
  letter-spacing: -0.2px;
}
.pg-w-connecting-tip { margin: 14px 14px 0; }

/* New-user layout: title → meet block → animation → tip */
.pg-w-connecting-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--hp-fg-1);
  letter-spacing: -0.2px;
  text-align: center;
  margin: 0;
  padding: 22px 14px 14px;
}
.pg-w-connecting-anim {
  text-align: center;
  padding: 14px 0 8px;
}
.pg-w-connecting-anim .pg-w-ringing-mark {
  margin-bottom: 0;
}

/* ============================================================
   Smooth waiting → connected transition (Option B)
   - Animation/favorites mount with their own entry animation
   - A green check "success pulse" overlays the body briefly
     when the call transitions from waiting → connected
   ============================================================ */
.pg-w-call-stage {
  position: relative;
}

/* Phone animation entry (when arriving at waiting) */
.pg-w-anim-enter {
  animation: pgAnimEnter 0.35s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes pgAnimEnter {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* Favorites slide-up + fade, waits for the pulse to fully clear */
.pg-w-fav-enter {
  animation: pgFavEnter 0.5s cubic-bezier(.2,.9,.3,1) 0.75s both;
}
@keyframes pgFavEnter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Green check overlay — pops over the body, fades after ~750ms */
.pg-w-call-pulse {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14px;
  pointer-events: none;
  z-index: 5;
}
.pg-w-call-pulse-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--hp-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 24px rgba(16, 185, 129, 0.32),
    0 0 0 8px rgba(16, 185, 129, 0.14);
  animation: pgPulsePop 0.75s cubic-bezier(.2, 1.5, .3, 1) forwards;
  transform: scale(0);
  opacity: 0;
}
@keyframes pgPulsePop {
  0%   { opacity: 0; transform: scale(0); }
  30%  { opacity: 1; transform: scale(1.12); }
  55%  { opacity: 1; transform: scale(1); }
  80%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.95); }
}

/* Quick name capture on the connecting screen (new user only) */
.pg-w-meet-block {
  margin: 0 14px 6px;
  padding: 14px 14px 14px;
  background: var(--hp-bg-1, #f6f8fb);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 14px;
  text-align: center;
  animation: pgMeetIn 0.4s ease-out both;
}
@keyframes pgMeetIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pg-w-meet-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-fg-2);
  margin: 0 0 10px;
  letter-spacing: -0.1px;
}
.pg-w-name-wrap-block {
  display: flex;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  align-items: center;
  gap: 0;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pg-w-name-wrap-block:focus-within {
  border-color: var(--hp-brand);
  box-shadow: 0 0 0 2px var(--hp-brand-tint-15);
}
.pg-w-name-wrap-block .pg-w-name-input {
  font-size: 14.5px;
  padding: 0 6px;
  height: 100%;
  font-weight: 500;
}

/* Two equal-width fields, each with its own AJAX-save indicator */
.pg-w-meet-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pg-w-meet-field {
  position: relative;
}
.pg-w-meet-input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 36px; /* extra inline-end for check mark (LTR base; flipped by RTL doc) */
  padding-inline-start: 14px;
  padding-inline-end: 36px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--hp-fg-1);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-align: start;
}
.pg-w-meet-input::placeholder {
  color: var(--hp-fg-4);
  font-weight: 400;
}
.pg-w-meet-input:focus {
  border-color: var(--hp-brand);
  box-shadow: 0 0 0 2px var(--hp-brand-tint-15);
}
.pg-w-meet-saved-mark {
  position: absolute;
  top: 50%;
  inset-inline-end: 10px;
  transform: translateY(-50%) scale(0.6);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--hp-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.3s cubic-bezier(.2,1.4,.5,1);
}
.pg-w-meet-saved-mark.show {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.pg-w-meet-saved-mark svg { width: 12px; height: 12px; }

/* Connected state */
.pg-w-connected { padding: 12px 14px 14px; background: #fff; }
.pg-w-connected-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(9, 217, 92, 0.08);
  border-radius: 10px;
  margin: 12px 0;
}
.pg-w-connected-status .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--hp-green);
  box-shadow: 0 0 0 0 rgba(9, 217, 92, 0.55);
  animation: pgLiveDot 1.4s ease-out infinite;
  flex-shrink: 0;
}
.pg-w-connected-status .label {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #096b2e;
}
.pg-w-connected-status .timer {
  font-size: 12px;
  font-weight: 600;
  color: #096b2e;
  font-variant-numeric: tabular-nums;
  background: rgba(9, 217, 92, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
}

.pg-w-notes-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--hp-fg-1);
  margin-bottom: 4px;
  padding: 0 2px;
  letter-spacing: -0.2px;
}
.pg-w-notes-label .icon {
  color: var(--hp-brand);
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--hp-brand-tint-50);
  align-items: center;
  justify-content: center;
}
.pg-w-notes-label .icon svg { width: 14px; height: 14px; }
.pg-w-notes {
  width: 100%;
  min-height: 90px;
  resize: none;
  border: 1.5px solid var(--hp-border-soft);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--hp-fg-1);
  line-height: 1.5;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pg-w-notes::placeholder { color: var(--hp-fg-4); }
.pg-w-notes:focus {
  border-color: var(--hp-brand);
  box-shadow: 0 0 0 3px var(--hp-brand-tint-15);
}

.pg-w-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 8px 4px;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  text-align: right;
  transition: background 0.15s;
}
.pg-w-checkbox:hover { background: rgba(0,0,0,0.02); }
.pg-w-checkbox .box {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: #fff;
  border: 1.5px solid var(--hp-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
  transition: background 0.15s, border-color 0.15s;
  margin-top: 1px;
}
.pg-w-checkbox.on .box {
  background: var(--hp-green);
  border-color: var(--hp-green);
}
.pg-w-checkbox.on .box svg { display: block; }
.pg-w-checkbox .box svg { display: none; width: 12px; height: 12px; }
.pg-w-checkbox .text {
  flex: 1;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--hp-fg-1);
  line-height: 1.45;
}
.pg-w-checkbox .text .sms {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--hp-brand-dark);
  font-weight: 600;
}
.pg-w-checkbox .text .sms svg { width: 13px; height: 13px; }
.pg-w-caption {
  font-size: 10.5px;
  color: var(--hp-fg-3);
  margin: 8px 4px 0;
  text-align: center;
}

.pg-w-end-call {
  margin-top: 12px;
  width: 100%;
  height: 44px;
  background: var(--hp-red);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.15s, transform 0.06s;
  white-space: nowrap;
}
.pg-w-end-call:hover { background: #e63d28; }
.pg-w-end-call:active { transform: scale(0.99); }
.pg-w-end-call svg { transform: rotate(135deg); }

/* No-answer state */
.pg-w-noanswer { padding: 18px 14px 16px; background: #fff; }
.pg-w-noanswer-head {
  text-align: right;
  margin: 2px 2px 14px;
}
.pg-w-noanswer-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--hp-fg-1);
  margin: 0 0 4px;
  letter-spacing: -0.3px;
}
.pg-w-noanswer-sub {
  font-size: 13px;
  color: var(--hp-fg-3);
  margin: 0;
  line-height: 1.5;
}
.pg-w-noanswer-icon { display: none; }

/* Sender chip — light brand-tint pill */
.pg-w-sender-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--hp-brand-tint-50);
  border-radius: 10px;
  margin-bottom: 14px;
}
.pg-w-sender-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--hp-brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pg-w-sender-icon svg { width: 12px; height: 12px; }
.pg-w-sender-text {
  font-size: 12.5px;
  color: var(--hp-brand-dark);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Unified name input (new-user variant of sender chip) */
.pg-w-sender-text { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pg-w-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--hp-border);
  border-radius: 6px;
  padding: 2px 8px;
  width: 176px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pg-w-name-wrap:focus-within {
  border-color: var(--hp-brand);
  box-shadow: 0 0 0 3px var(--hp-brand-tint-15);
}
.pg-w-name-input {
  width: 50%;
  background: transparent;
  border: 0;
  outline: none;
  padding: 0;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hp-fg-1);
  min-width: 0;
}
.pg-w-name-input::placeholder { color: var(--hp-fg-4); font-weight: 400; }
.pg-w-name-divider {
  width: 1px; height: 12px; background: #e5e7eb; flex-shrink: 0;
}
.pg-w-sender-phone { white-space: nowrap; }

/* Compact trip summary (read-only banner) */
.pg-w-trip-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #fafbfc;
  border: 1px solid var(--hp-border-soft);
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--hp-fg-2);
}
.pg-w-trip-text {
  flex: 1;
  line-height: 1.45;
}
.pg-w-trip-text b {
  color: var(--hp-fg-1);
  font-weight: 700;
}
.pg-w-trip-edit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: var(--hp-brand-dark);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.15s;
}
.pg-w-trip-edit svg { width: 14px; height: 14px; flex-shrink: 0; }
.pg-w-trip-summary.empty {
  background: rgba(9, 165, 217, 0.05);
  border-color: rgba(9, 165, 217, 0.18);
}
.pg-w-trip-summary.empty .pg-w-trip-text {
  color: var(--hp-fg-2);
}

/* Accordion */
.pg-w-trip-summary { transition: border-radius 0.25s ease, border-bottom-color 0.25s ease, margin 0.25s ease; }
.pg-w-trip-summary.expanded {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
  margin-bottom: 0;
}
.pg-w-trip-accordion {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(.2,1,.4,1), margin 0.3s ease;
  margin: 0;
}
.pg-w-trip-accordion.open {
  max-height: 200px;
  margin: 0 0 12px;
}
.pg-w-trip-accordion-inner {
  background: #fafbfc;
  border: 1px solid var(--hp-border-soft);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 12px;
  margin-top: 0;
}
.pg-w-trip-accordion-inner .pg-w-form-row { margin-bottom: 8px; }
.pg-w-trip-accordion-inner .pg-w-form-row:last-of-type { margin-bottom: 0; }
.pg-w-trip-accordion-inner .pg-w-fieldbox { background: #fff; }

.pg-w-textarea-tall {
  min-height: 160px;
}

/* Two-column form rows */
.pg-w-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.pg-w-fieldbox {
  background: #fff;
  border: 1.5px solid var(--hp-border-soft);
  border-radius: 12px;
  padding: 8px 12px 8px;
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pg-w-fieldbox:focus-within {
  border-color: var(--hp-brand);
  box-shadow: 0 0 0 3px var(--hp-brand-tint-15);
}
.pg-w-fieldbox-label {
  display: block;
  font-size: 11px;
  color: var(--hp-brand-dark);
  font-weight: 600;
  margin-bottom: 2px;
  letter-spacing: 0.2px;
  text-align: right;
}
.pg-w-fieldbox-input {
  width: 100%;
  height: 26px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 400;
  color: var(--hp-fg-1);
  outline: none;
  font-family: inherit;
  padding: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
}

/* Stepper variant */
.pg-w-fieldbox.stepper { padding: 8px 8px 6px; }
.pg-w-fieldbox.stepper .pg-w-fieldbox-label { padding: 0 4px; }
.pg-w-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
}
.pg-w-stepper .step {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--hp-brand);
  background: #fff;
  color: var(--hp-brand);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: background 0.15s;
}
.pg-w-stepper .step:hover { background: var(--hp-brand-tint-50); }
.pg-w-stepper .step:active { transform: scale(0.95); }
.pg-w-stepper .count {
  font-size: 16px;
  font-weight: 500;
  color: var(--hp-fg-1);
  font-variant-numeric: tabular-nums;
  min-width: 22px;
  text-align: center;
}

.pg-w-submit-tall {
  height: 50px;
  font-size: 15.5px;
}

.pg-w-noanswer .pg-w-textarea {
  width: 100%;
  min-height: 160px;
  resize: none;
  overflow: hidden;
  border: 1.5px solid var(--hp-border-soft);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--hp-fg-1);
  line-height: 1.55;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pg-w-noanswer .pg-w-textarea::placeholder { color: var(--hp-fg-4); }
.pg-w-noanswer .pg-w-textarea:focus {
  border-color: var(--hp-brand);
  box-shadow: 0 0 0 3px var(--hp-brand-tint-15);
}
.pg-w-noanswer-head h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--hp-fg-1);
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}
.pg-w-noanswer-head p {
  font-size: 13px;
  color: var(--hp-fg-3);
  margin: 0;
  line-height: 1.5;
}
/* (legacy no-answer textarea rules — replaced above) */

/* Demo state switcher — fixed to viewport right edge so it never covers the mockup */
.pg-demo-switcher {
  position: fixed;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  inset-inline-start: auto;
  bottom: auto;
  inset-inline-start: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--hp-border-soft);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  z-index: 200;
  font-size: 11px;
  backdrop-filter: blur(8px);
}
.pg-demo-switcher .label {
  font-size: 9px;
  color: var(--hp-fg-3);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0 6px;
}
.pg-demo-switcher button {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  color: var(--hp-fg-2);
  text-align: right;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.pg-demo-switcher button:hover { background: var(--hp-bg-2); }
.pg-demo-switcher button.active {
  background: #1A365D;
  color: #fff;
  font-weight: 600;
}
.pg-w-head-close {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none; cursor: pointer;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
.pg-w-head-close:hover { background: rgba(255,255,255,0.28); }

/* ============ Body sections ============ */
.pg-w-top { padding: 14px 14px 12px; background: #fff; }
.pg-w-action {
  padding: 16px 14px 16px;
  background: #f3f6f9;
  border-top: 1px solid rgba(0,0,0,0.04);
  border-radius: 18px 18px 0 0;
  margin-top: -6px;
  position: relative;
  z-index: 1;
}

.pg-w-bubble {
  display: block;
  background: var(--hp-bg-2);
  color: var(--hp-fg-1);
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 10px;
  max-width: 100%;
}

/* Host ID Card */
.pg-w-host-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--hp-brass-border);
  border-radius: 14px;
  margin-bottom: 12px;
}
.pg-w-host-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.pg-w-host-msg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--hp-brand-dark);
  background: #fff;
  border: 1px solid var(--hp-border-soft);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.pg-w-host-rating {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  white-space: nowrap;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
}
.pg-w-host-rating-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--hp-brand-dark);
  letter-spacing: 0.1px;
}
.pg-w-host-rating-score {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--hp-fg-3);
  font-variant-numeric: tabular-nums;
}
.pg-w-host-rating-star {
  color: var(--hp-brand);
  font-size: 11px;
  line-height: 1;
}
.pg-w-host-msg .icon { color: var(--hp-brand); display: inline-flex; }
.pg-w-host-msg .icon svg { width: 13px; height: 13px; }
.pg-w-host-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.10);
  color: var(--hp-brass);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pg-w-host-avatar svg { width: 22px; height: 22px; }
.pg-w-host-avatar.has-pic { background-size: cover; background-position: center; background-repeat: no-repeat; }
.pg-w-host-info {
  text-align: right;
  min-width: 0;
}
.pg-w-host-label {
  font-size: 11px;
  color: var(--hp-fg-3);
  font-weight: 500;
  letter-spacing: 0.2px;
}
.pg-w-host-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--hp-fg-1);
}
.pg-w-online-dot {
  width: 7px; height: 7px;
  background: var(--hp-green);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(9, 217, 92, 0.55);
  animation: pgDotPulse 2s ease-out infinite;
}
@keyframes pgDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(9, 217, 92, 0.55); }
  70% { box-shadow: 0 0 0 5px rgba(9, 217, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(9, 217, 92, 0); }
}

.pg-w-legal {
  font-size: 10.5px;
  color: var(--hp-fg-3);
  line-height: 1.5;
  margin: 0 0 14px;
  padding: 0 2px;
  text-align: center;
}
.pg-w-legal a { color: var(--hp-brand-dark); text-decoration: underline; }

/* Field block — label + input */
.pg-w-field { margin-bottom: 12px; }
.pg-w-field-label {
  display: block;
  font-size: 11.5px;
  color: var(--hp-fg-3);
  font-weight: 600;
  margin: 0 4px 6px;
  letter-spacing: 0.2px;
}

.pg-w-input-wrap {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid var(--hp-border-soft);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pg-w-input-wrap:focus-within {
  border-color: var(--hp-brand);
  box-shadow: 0 0 0 4px var(--hp-brand-tint-15);
}
.pg-w-input-wrap.errored { border-color: var(--hp-red); }
.pg-w-prefix {
  display: flex; align-items: center; gap: 5px;
  padding: 0 12px;
  color: var(--hp-fg-2);
  font-size: 14px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  border-inline-end: 1px solid var(--hp-border-soft);
  flex-shrink: 0;
  direction: ltr;
}
.pg-w-prefix .flag { font-size: 15px; }
.pg-w-input {
  flex: 1;
  height: 46px;
  border: none; background: transparent;
  padding: 0 14px;
  font-size: 15px; font-weight: 500;
  color: var(--hp-fg-1);
  outline: none;
  font-family: inherit;
  direction: ltr; text-align: right;
  min-width: 0;
}
.pg-w-input::placeholder { color: var(--hp-fg-4); font-weight: 400; }
.pg-w-input-err {
  font-size: 11px;
  color: var(--hp-red);
  margin: 6px 4px 0;
  min-height: 14px;
}

.pg-w-submit {
  width: 100%;
  height: 48px;
  background: var(--hp-brand);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 14px rgba(9,165,217,0.30);
  transition: background 0.15s, transform 0.06s;
  white-space: nowrap;
}
.pg-w-submit:hover:not(:disabled) { background: var(--hp-brand-hover); }
.pg-w-submit:active:not(:disabled) { transform: scale(0.99); }
.pg-w-submit:disabled { opacity: 0.85; cursor: wait; }

.pg-w-microcopy {
  text-align: center;
  font-size: 11.5px;
  color: var(--hp-fg-3);
  margin: 8px 0 0;
  line-height: 1.4;
}

.pg-w-microcopy-existing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.pg-w-microcopy-existing .pg-w-microcopy { margin: 0; }
/* Universal rule: every element with dir="ltr" inside the widget gets
   explicit LTR direction + isolation. The `dir="ltr"` attribute alone is
   weakened by surrounding CSS (letter-spacing, text-align centering, etc.)
   — this forces it. Covers bdi, span, a, input, anything. Applies to:
   existing-user microcopy phone, no-answer sender chip phone, success
   phone link, anchor banknote/calendar values, no-answer date inputs,
   any future Latin-digit run. Was 22 attempts on the first widget surface;
   this rule prevents re-discovering it on every screen. */
.pg-widget [dir="ltr"] {
  direction: ltr;
  unicode-bidi: isolate;
}
.pg-w-microcopy-existing bdi {
  color: var(--hp-fg-2);
}
.pg-w-link-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 11.5px;
  color: var(--hp-brand-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  cursor: pointer;
  font-weight: 600;
}
.pg-w-link-btn:hover { color: var(--hp-brand); }
.pg-w-link-btn:focus-visible {
  outline: 2px solid rgba(9,165,217,0.4);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ============ Widget Step 2 (Success) ============ */
.pg-w-success {
  text-align: center;
  padding: 18px 16px 8px;
  background: #fff;
}
.pg-w-success-mark {
  width: 52px; height: 52px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: rgba(9,217,92,0.10);
  display: flex; align-items: center; justify-content: center;
  color: var(--hp-green);
  animation: pgPop 0.45s cubic-bezier(.2,1.4,.5,1);
}
@keyframes pgPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.pg-w-success-mark svg { width: 28px; height: 28px; }
.pg-w-success-headline {
  font-size: 18px; font-weight: 700; color: var(--hp-fg-1);
  margin: 0 0 2px; letter-spacing: -0.2px;
}
.pg-w-success-sub {
  font-size: 12.5px; color: var(--hp-fg-3); margin: 0 0 8px;
}
.pg-w-success-sub .host { color: var(--hp-fg-2); font-weight: 500; }
.pg-w-phone {
  display: block;
  font-size: 24px; font-weight: 700; color: var(--hp-brand);
  text-decoration: none; letter-spacing: 0.4px;
  font-variant-numeric: tabular-nums;
  margin: 4px 0 14px;
}
.pg-w-call-now {
  width: 100%; height: 44px;
  background: var(--hp-brand); color: #fff; border: none;
  border-radius: 12px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 14px rgba(9,165,217,0.28);
  white-space: nowrap;
  transition: background 0.15s;
}
.pg-w-call-now:hover { background: var(--hp-brand-hover); }
.pg-w-success-extras {
  background: #fafbfc;
  padding: 14px;
  border-top: 1px solid rgba(0,0,0,0.04);
}
.pg-w-sms-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px; cursor: pointer; text-align: right;
  transition: background 0.15s;
}
.pg-w-sms-toggle:hover { background: #fcfcfd; }
.pg-w-sms-toggle .icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--hp-bg-2); color: var(--hp-brass);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pg-w-sms-toggle .icon svg { width: 14px; height: 14px; }
.pg-w-sms-toggle .label {
  flex: 1; font-size: 12px; font-weight: 500;
  color: var(--hp-fg-1); line-height: 1.3;
}
.pg-w-switch {
  width: 36px; height: 22px;
  background: var(--hp-border);
  border-radius: 999px; position: relative; flex-shrink: 0;
  transition: background 0.2s;
}
.pg-w-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; background: #fff;
  border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: transform 0.2s;
}
.pg-w-sms-toggle.on .pg-w-switch { background: var(--hp-green); }
.pg-w-sms-toggle.on .pg-w-switch::after { transform: translateX(14px); }

.pg-w-tip {
  display: flex; gap: 9px;
  margin-top: 10px;
  padding: 10px 12px;
  background: #faf6ee;
  border: 1px solid var(--hp-brass-border);
  border-radius: 12px;
  text-align: right;
}
.pg-w-tip .bullet {
  flex-shrink: 0; width: 22px; height: 22px;
  border-radius: 50%; background: var(--hp-brass); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.pg-w-tip .bullet svg { width: 12px; height: 12px; }
.pg-w-tip .text { font-size: 11px; line-height: 1.5; color: var(--hp-fg-2); }
.pg-w-tip .text b { color: var(--hp-fg-1); font-weight: 700; }

.pg-w-footer {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 10px;
  font-size: 10.5px; color: var(--hp-fg-3);
  line-height: 1.4; text-align: center;
}
.pg-w-footer .rec-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--hp-red);
  flex-shrink: 0; animation: pgPulse 1.8s ease-in-out infinite;
}
@keyframes pgPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.pg-w-step {
  animation: pgWStepIn 0.3s cubic-bezier(.2,1,.4,1);
}
@keyframes pgWStepIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 460px) {
  .pg-stage {
    margin-top: 30px;
    margin-bottom: 30px;
    min-height: calc(100vh - 60px);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.12);
  }
}
