/* ==========================================================================
   mphu guided tour (onboarding walkthrough) — saját, mphu-stílusú buborék
   ========================================================================== */

:root {
  --mphu-tour-accent: #1e8a8a;
  --mphu-tour-accent-dark: #15545c;
}

/* Átlátszó kattintás-blokkoló a dim alatt: megakadályozza a véletlen
   navigációt a sötétített területen (a box-shadow nem nyel el kattintást). */
.mphu-tour-blocker {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: transparent;
  pointer-events: auto;
}

/* Spotlight: a célpont köré "lyukat" vág a sötétítésbe (box-shadow technika),
   így nem kell a célpont z-indexét emelni (nincs stacking-context gond). */
.mphu-tour-spotlight {
  position: fixed;
  z-index: 100000;
  border-radius: 8px;
  pointer-events: none;            /* a kattintásokat a blocker kezeli */
  box-shadow: 0 0 0 100vmax rgba(7, 55, 60, .62), 0 0 0 3px rgba(30, 138, 138, .65);
  opacity: 0;
  transition: opacity .25s ease, top .2s ease, left .2s ease, width .2s ease, height .2s ease;
}
.mphu-tour-spotlight.is-visible {
  opacity: 1;
}
/* Üdvözlő (cél nélküli) lépés: 0 méretű pont középen → teljes sötétítés, gyűrű nélkül */
.mphu-tour-spotlight.is-center {
  box-shadow: 0 0 0 100vmax rgba(7, 55, 60, .62);
}

/* Buborék */
.mphu-tour-bubble {
  position: fixed;
  z-index: 100002;
  box-sizing: border-box;
  width: 340px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(7, 55, 60, .28);
  padding: 22px 22px 18px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}
.mphu-tour-bubble.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Buborék-csőr (nyíl a kiemelt elem felé) */
.mphu-tour-bubble::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: -3px -3px 8px rgba(7, 55, 60, .06);
}
.mphu-tour-bubble[data-placement="bottom"]::before { top: -8px; left: var(--arrow-x, 32px); }
.mphu-tour-bubble[data-placement="top"]::before    { bottom: -8px; left: var(--arrow-x, 32px); box-shadow: 3px 3px 8px rgba(7, 55, 60, .06); }
.mphu-tour-bubble[data-placement="right"]::before   { left: -8px; top: var(--arrow-y, 28px); box-shadow: -3px 3px 8px rgba(7, 55, 60, .06); }
.mphu-tour-bubble[data-placement="left"]::before    { right: -8px; top: var(--arrow-y, 28px); box-shadow: 3px -3px 8px rgba(7, 55, 60, .06); }
.mphu-tour-bubble[data-placement="center"]::before  { display: none; }
/* Az üdvözlő (cél nélküli, középre igazított) lépés nem nyúlhat túl a képernyőn —
   nincs csőr-nyila, így a görgetés nem vág le semmit. */
.mphu-tour-bubble[data-placement="center"] {
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mphu-tour-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(30, 138, 138, .10);
  color: var(--mphu-tour-accent);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.mphu-tour-close:hover {
  background: var(--mphu-tour-accent);
  color: #fff;
}

.mphu-tour-step-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--mphu-tour-accent);
  background: rgba(30, 138, 138, .10);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.mphu-tour-title {
  font-size: 19px;
  font-weight: 700;
  color: #07375c;
  margin: 0 0 8px;
  padding-right: 26px;
}
.mphu-tour-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: #5b6b70;
  margin: 0 0 18px;
}

.mphu-tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mphu-tour-dots {
  display: flex;
  gap: 6px;
}
.mphu-tour-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(30, 138, 138, .25);
  transition: background .2s ease, transform .2s ease;
}
.mphu-tour-dot.is-active {
  background: var(--mphu-tour-accent);
  transform: scale(1.25);
}
.mphu-tour-btns {
  display: flex;
  gap: 8px;
}
.mphu-tour-btn {
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, opacity .15s ease;
}
.mphu-tour-btn-ghost {
  background: transparent;
  color: #5b6b70;
}
.mphu-tour-btn-ghost:hover { color: #07375c; }
.mphu-tour-btn-primary {
  background: var(--mphu-tour-accent);
  color: #fff;
}
.mphu-tour-btn-primary:hover { background: var(--mphu-tour-accent-dark); }

/* A fejléc "?" indító gomb a kosár markupját/osztályait használja (.header-cart > a.cart),
   így formátuma azonos a kosár ikonéval — külön stílus nem kell. */

@media (max-width: 575px) {
  .mphu-tour-bubble {
    width: calc(100vw - 24px);
    padding: 18px 16px 14px;
  }
  .mphu-tour-title { font-size: 17px; }
  .mphu-tour-text { font-size: 13.5px; }
  /* A pöttyök és a gombok ne préselődjenek össze keskeny kijelzőn */
  .mphu-tour-actions {
    flex-wrap: wrap;
    gap: 12px;
  }
  .mphu-tour-btns { margin-left: auto; }
}
