#location-panel {
  z-index: calc(var(--ui-layer-panel) - 1);
  --panel-location-link-height: 0px;
  --location-panel-footer-gap: 0px;
  --location-panel-footer-height: 0px;
  --location-panel-footer-space: 0px;
  --location-panel-footer-visual-drop: calc(
    (var(--panel-header-half-height) + var(--panel-frame-inset-top)) * 0.5
  );
  --location-panel-footer-width: clamp(188px, 23vw, 332px);
}

#location-panel .location-panel__body {
  bottom: calc(var(--panel-body-bottom) + var(--location-panel-footer-space));
}

#location-panel.location-panel--has-footer-action {
  --location-panel-footer-gap: 12px;
  --panel-frame-bottom: calc(
    var(--panel-frame-inset-bottom) + var(--location-panel-footer-space)
  );
}

#location-panel .location-panel__footer {
  position: absolute;
  left: calc(
    var(--panel-shell-content-left) + var(--panel-shell-content-padding-x)
  );
  right: calc(
    var(--panel-shell-content-right) +
    var(--panel-shell-content-padding-x) +
    var(--panel-shell-scrollbar-gutter)
  );
  bottom: var(--panel-frame-bottom);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

#location-panel.location-panel--has-footer-action .location-panel__footer {
  display: flex;
}

#location-panel .location-panel__footer .start-game-btn {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  transform: translateY(var(--location-panel-footer-visual-drop));
  transform-origin: center top;
  opacity: 1;
  pointer-events: auto;
  z-index: auto;
  width: min(100%, var(--location-panel-footer-width)) !important;
  aspect-ratio: var(--start-game-btn-aspect-ratio);
  background-size: 100% 100%;
}

#location-panel.box-minimized {
  --location-panel-footer-space: 0px;
}

#location-panel.box-minimized .location-panel__footer {
  display: none;
}

#location-panel.location-panel--has-address {
  --panel-location-link-height: 34px;
  --panel-body-extra-top: calc(var(--panel-location-link-height) + 10px);
}

#location-panel #content-address-link {
  display: none !important;
}

#location-panel #mark-qr {
  display: none !important;
  z-index: 3;
}

#location-panel #location-panel-pin.hidden {
  display: none !important;
}

#location-panel .blue-box-location-pin {
  left: calc(
    var(--panel-shell-content-left) +
    var(--panel-shell-content-padding-x) +
    var(--panel-shell-pin-extra-inset)
  );
  right: calc(
    var(--panel-shell-content-right) +
    var(--panel-shell-content-padding-x) +
    var(--panel-shell-pin-extra-inset)
  );
  width: auto;
  max-width: none;
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
  overflow: hidden;
}

#location-panel .blue-box-location-pin #blue-box-location-text {
  flex: 1 1 auto;
  max-width: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
