/**
 * Global widgets — mobile first (sticky CTA is the phone conversion bar).
 */
.dl-agent[hidden],
.dl-cookie[hidden] { display: none; }

.dl-agent {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: end stretch;
  padding: 0;
}
.dl-agent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}
.dl-agent-panel {
  position: relative;
  width: 100%;
  max-height: min(92vh, 100%);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  background: var(--dl-card-2);
  border: 1px solid var(--dl-border);
  border-radius: 20px 20px 0 0;
  box-shadow: var(--dl-shadow);
}
.dl-agent-close {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--dl-border);
  border-radius: 50%;
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
}
.dl-agent-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, var(--dl-primary), var(--dl-pink));
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 800;
}
.dl-agent-panel h2 { margin: 0.15rem 0; font-size: 1.25rem; }
.dl-agent-panel > p:not(.dl-kicker) { color: var(--dl-muted); font-size: 0.92rem; }

/* WA sits above sticky CTA on phone — tip is desktop hover only */
.dl-wa {
  position: fixed;
  left: 0.85rem;
  bottom: calc(var(--dl-sticky-h, 56px) + 0.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  direction: ltr;
}
.dl-wa-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.5rem 0.9rem 0.5rem 0.65rem;
  background: #25d366;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  direction: ltr;
}
.dl-wa-icon {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}
.dl-wa-btn {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  direction: rtl;
}
/* Tip lives above the pill; fixed width so Hebrew doesn’t stack into a skinny tower */
.dl-wa-tip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.55rem);
  width: 15.5rem;
  max-width: min(15.5rem, calc(100vw - 1.7rem));
  margin: 0;
  padding: 0.65rem 0.8rem;
  background: #fff;
  border-radius: 12px;
  color: #17121d;
  font-size: 0.8rem;
  line-height: 1.45;
  box-shadow: var(--dl-shadow);
  direction: rtl;
  text-align: right;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.35rem);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.dl-wa-tip::after {
  content: "";
  position: absolute;
  top: auto;
  bottom: -6px;
  left: 1.35rem;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-top-color: #fff;
}
/* Phones / touch: no hover tip — button label is the CTA */
@media (hover: none), (pointer: coarse) {
  .dl-wa-tip {
    display: none !important;
  }
}
/* Mouse / trackpad only: tip on hover or keyboard focus */
@media (hover: hover) and (pointer: fine) {
  .dl-wa:hover .dl-wa-tip,
  .dl-wa:focus-within .dl-wa-tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.dl-sticky-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--dl-sticky-h, 56px);
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--amber);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
}

.dl-cookie {
  position: fixed;
  right: 0;
  left: 0;
  bottom: calc(var(--dl-sticky-h, 56px) + env(safe-area-inset-bottom, 0px));
  z-index: 250;
  padding: 0.8rem 1rem;
  background: var(--dl-card-2);
  border-block: 1px solid var(--dl-border);
  box-shadow: var(--dl-shadow);
}
.dl-cookie p {
  margin: 0 0 0.65rem;
  color: var(--dl-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.dl-cookie .dl-btn { padding: 10px 18px; }
body:has(.dl-cookie:not([hidden])) .dl-wa { bottom: calc(var(--dl-sticky-h, 56px) + 8rem + env(safe-area-inset-bottom, 0px)); }
.dl-newsletter { display: grid; gap: 0.55rem; }
.dl-newsletter .dl-btn { width: 100%; }

@media (min-width: 600px) and (max-width: 899px) {
  .dl-cookie { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; }
  .dl-cookie p { margin: 0; }
  body:has(.dl-cookie:not([hidden])) .dl-wa { bottom: calc(var(--dl-sticky-h, 56px) + 5.5rem + env(safe-area-inset-bottom, 0px)); }
}

@media (min-width: 900px) {
  .dl-agent { place-items: center; }
  .dl-agent-panel {
    width: min(100%, 520px);
    padding: 2.2rem;
    border-radius: 24px;
  }
  .dl-wa {
    left: 1.15rem;
    bottom: 1.25rem;
  }
  .dl-wa-tip {
    width: 16rem;
    max-width: min(16rem, calc(100vw - 2.3rem));
    font-size: 0.82rem;
  }
  .dl-sticky-cta { display: none; }
  .dl-cookie {
    right: auto;
    left: 1.15rem;
    bottom: 1.15rem;
    max-width: 400px;
  }
  .dl-newsletter .dl-btn { width: max-content; }
}
