/* ============================================================
   ewalletLocatorTemplate — eWallet store locator styling
   No jQuery/legacy deps. Mobile-first & responsive. Roboto.
   ============================================================ */

.ewalletLocator {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  font-family: 'Roboto', sans-serif;
}
.ewalletLocator-head { gap: 0.5rem; }

/* --- Map stage --- */
.ewalletLocator-stage {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 460px;
  border-radius: 20px;
  overflow: hidden;
}
.ewalletLocator-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* --- Search (top-left) --- */
.ewalletLocator-search {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 5;
  width: min(280px, calc(100% - 40px));
  height: 40px;
  padding: 0 14px;
  border: none;
  border-radius: 20px;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  text-overflow: ellipsis;
}
.ewalletLocator-search:focus { outline: 2px solid #01aaad; }

/* --- Directions side panel --- */
.ewalletLocator-directions {
  position: absolute;
  top: 72px;
  left: 20px;
  z-index: 4;
  width: 320px;
  max-height: calc(100% - 100px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.ewalletLocator-directions[hidden] { display: none; }

/* --- Branded cluster circles (m1-m5.png + count) --- */
.ewalletLocator-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  user-select: none;
}

/* --- Info window --- */
.ewalletLocator-iw {
  font-family: 'Roboto', sans-serif;
  max-width: 230px;
  text-align: center;
  padding: 4px 2px;
}
.ewalletLocator-iw-name { margin: 0 0 4px; font-size: 15px; }
.ewalletLocator-iw-town,
.ewalletLocator-iw-addr { margin: 0 0 4px; font-size: 13px; color: #555; }
.ewalletLocator-iw-btn {
  margin-top: 10px;
  border: none;
  border-radius: 20px;
  background: #ff9900;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  padding: 8px 18px;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
.ewalletLocator-iw-btn:hover { background: #e88a00; }

/* --- Mobile --- */
@media only screen and (max-width: 599px) {
  .ewalletLocator-stage { height: 80vh; min-height: 420px; border-radius: 12px; }
  .ewalletLocator-search { width: calc(100% - 40px); }
  .ewalletLocator-directions { width: calc(100% - 40px); max-height: 40%; }
}
