/* Glifing WhatsApp Router: estils aïllats amb el prefix gw-router. */
.gw-router,
.gw-router * {
  box-sizing: border-box;
}

.gw-router {
  --gw-green: #178c58;
  --gw-green-dark: #106b42;
  --gw-ink: #1f2937;
  --gw-muted: #607083;
  --gw-line: #e3e9ed;
  position: fixed;
  left: 20px;
  right: auto;
  bottom: 20px;
  z-index: 2147483000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.45;
  color: var(--gw-ink);
  font-size: 15px;
  text-align: left;
}


.gw-router .gw-router__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.19);
  transition: background .15s ease, transform .15s ease;
}

.gw-router__trigger:hover {
  background: #1fc45c;
  transform: translateY(-2px);
}

.gw-router__trigger svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.gw-router__trigger:focus-visible,
.gw-router__panel button:focus-visible,
.gw-router__panel a:focus-visible {
  outline: 3px solid #145fcc;
  outline-offset: 3px;
}

.gw-router__panel[hidden] {
  display: none !important;
}

.gw-router__panel {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  right: auto;
  width: min(340px, calc(100vw - 28px));
  max-height: min(620px, calc(100dvh - 110px));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: var(--gw-ink);
  border: 1px solid var(--gw-line);
  border-radius: 17px;
  box-shadow: 0 14px 48px rgba(17, 24, 39, .22);
}


.gw-router__header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 17px 16px 13px;
  border-bottom: 1px solid var(--gw-line);
  background: #f7faf9;
  border-radius: 17px 17px 0 0;
}

.gw-router__headings {
  flex: 1 1 auto;
  min-width: 0;
}

.gw-router__title {
  margin: 0;
  padding: 0;
  color: var(--gw-ink);
  font: inherit;
  font-size: 18px;
  line-height: 1.28;
  font-weight: 750;
}

.gw-router__close {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 7px;
  margin: -5px -5px 0 0;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #455768;
  cursor: pointer;
}

.gw-router__close:hover {
  background: #e7eeeb;
}

.gw-router__close svg {
  width: 18px;
  height: 18px;
}

.gw-router__content {
  padding: 14px 15px 15px;
}

.gw-router__choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 12px 13px;
  margin: 0 0 9px;
  border: 1px solid var(--gw-line);
  border-radius: 11px;
  background: #fff;
  color: var(--gw-ink);
  text-decoration: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.gw-router__choice:last-child {
  margin-bottom: 0;
}

.gw-router__choice:hover {
  border-color: #9bcab0;
  background: #f2fbf6;
  color: var(--gw-green-dark);
  text-decoration: none;
}

.gw-router__choice-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.gw-router__choice-main {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.gw-router__choice-small {
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  color: var(--gw-muted);
  line-height: 1.35;
}

.gw-router__choice svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  color: var(--gw-green);
}

@media (max-width: 480px) {
  .gw-router {
    left: max(14px, env(safe-area-inset-left));
    right: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
  }
  .gw-router .gw-router__trigger {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
  }
  .gw-router__trigger svg {
    width: 26px;
    height: 26px;
  }
  .gw-router__panel {
    max-height: min(75dvh, calc(100dvh - 100px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .gw-router__trigger,
  .gw-router__choice {
    transition: none;
  }
}
