#root .gr-enterprise-place-reference {
  --gr-place-paper: #fdfdfc;
  --gr-place-ink: #1b2938;
  --gr-place-muted: #536173;
  --gr-place-blue: #2555aa;
  --gr-place-line: #e3e8ed;
  display: grid;
  grid-template-rows: clamp(230px, 56vh, 560px) minmax(min-content, 1fr);
  grid-template-rows: clamp(230px, 56dvh, 560px) minmax(min-content, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  min-width: 0;
  margin: 0;
  background: #edf1f0;
  color: var(--gr-place-ink);
}

#root .gr-place-ref-map {
  position: relative;
  z-index: 0;
  isolation: isolate;
  background: #edf1f0;
}

#root .gr-place-ref-map > .gr-amap-embed {
  position: absolute;
  inset: calc(65px + env(safe-area-inset-top, 0px)) 0 16px;
  height: auto;
}

#root .gr-place-ref-map:has(> .gr-amap-embed) {
  background: var(--gr-place-paper);
}

#root .gr-place-ref-overview-note {
  position: absolute;
  z-index: 7;
  inset: calc(16px + env(safe-area-inset-top, 0px)) 14px auto auto;
  padding: 7px 11px;
  border-radius: 20px;
  background: var(--gr-place-paper);
  color: var(--gr-place-muted);
  font-size: 0.75rem;
  box-shadow: 0 1px 6px rgb(27 41 56 / 10%);
  pointer-events: none;
}

#root .gr-place-ref-map-search {
  min-height: 44px;
  border: 1px solid var(--gr-place-line);
  color: var(--gr-place-blue);
  font: inherit;
  font-size: 0.8125rem;
  pointer-events: auto;
  cursor: pointer;
}

#root .gr-place-ref-map-empty {
  position: absolute;
  inset: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 54px 20px 22px;
  color: var(--gr-place-muted);
  text-align: center;
  font-size: 0.8125rem;
}

#root .gr-place-ref-map-empty p { margin: 0; }

#root .gr-place-ref-back {
  position: absolute;
  z-index: 8;
  top: max(14px, env(safe-area-inset-top, 0px));
  left: max(14px, env(safe-area-inset-left, 0px));
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(27 41 56 / 10%);
  border-radius: 14px;
  color: var(--gr-place-ink);
  background: var(--gr-place-paper);
  box-shadow: 0 2px 12px rgb(27 41 56 / 12%);
  cursor: pointer;
}

#root .gr-place-ref-sheet {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin-top: -16px;
  padding: 22px max(20px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  border: 1px solid rgb(27 41 56 / 7%);
  border-bottom: 0;
  border-radius: 19px 19px 0 0;
  background: var(--gr-place-paper);
  box-shadow: 0 -5px 20px rgb(27 41 56 / 8%);
}

#root .gr-place-ref-context {
  margin-bottom: 10px;
}

#root .gr-place-ref-type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gr-place-muted);
  font-size: 0.8125rem;
}

#root .gr-place-ref-sheet :is(h1, p) { margin: 0; overflow-wrap: anywhere; }

#root .gr-place-ref-sheet h1 {
  padding: 0;
  color: inherit;
  font-size: clamp(1.125rem, 5vw, 1.375rem);
  font-weight: 700;
  line-height: 1.4;
  user-select: text;
}

#root .gr-place-ref-sheet h1:focus { outline: none; }

#root .gr-place-ref-sheet :is(.gr-place-ref-address, .gr-place-ref-business) {
  margin-top: 7px;
  color: var(--gr-place-muted);
  font-size: 0.875rem;
  line-height: 1.48;
}

#root .gr-place-ref-sheet .gr-place-ref-copy-status {
  margin-top: 7px;
  color: var(--gr-place-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

#root .gr-place-ref-sheet .gr-place-ref-copy-status:empty { margin-top: 0; }

#root .gr-place-ref-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 20px;
}

#root .gr-place-ref-action {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px 8px;
  border: 1px solid var(--gr-place-line);
  border-radius: 11px;
  background: #f3f5f6;
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

#root .gr-place-ref-actions > .gr-place-ref-action:only-child { grid-column: 1 / -1; }
#root .gr-place-ref-action:active { background: #e8edf0; }

#root .gr-place-ref-action-primary {
  border-color: #dce7f8;
  background: #eaf1fe;
  color: var(--gr-place-blue);
}

#root .gr-place-ref-action-primary:is(:active, [aria-expanded="true"]) { background: #dfebfc; }

#root .gr-place-ref-providers {
  margin: 9px 0 0;
  padding: 0 11px;
  border: 1px solid var(--gr-place-line);
  border-radius: 11px;
  background: #f8fafc;
  list-style: none;
}

#root .gr-place-ref-providers li + li { border-top: 1px solid var(--gr-place-line); }

#root .gr-place-ref-providers li > a {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 5px 2px;
  color: var(--gr-place-ink);
  font-size: 0.875rem;
  text-decoration: none;
}

#root .gr-place-ref-providers li > a svg { color: var(--gr-place-blue); }
#root .gr-place-ref-providers li > a svg:last-child { margin-left: auto; }

#root .gr-place-ref-other-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin-top: 6px;
}

#root .gr-place-ref-other-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 4px;
  color: var(--gr-place-muted);
  font-size: 0.8125rem;
  text-decoration: none;
}

#root .gr-enterprise-place-reference :is(button, a):focus-visible {
  outline: 2px solid var(--gr-place-blue);
  outline-offset: 2px;
}

@media (max-height: 680px) {
  #root .gr-place-ref-sheet { padding-top: 18px; }
  #root .gr-place-ref-actions { margin-top: 15px; }
}
