/* Mobile shortcode: hide on desktop so only desktop shortcode shows there */
@media (min-width: 521px) {
  .grc-root.grc-mobile-only {
    display: none !important;
  }
}

/* Mobile-only layout and launcher (only applies when widget-mobile.css is loaded with .grc-mobile-only) */
.grc-root.grc-mobile-only {
  bottom: calc(38px + env(safe-area-inset-bottom, 0px));
  right: 38px;
  left: auto;
}

.grc-root.grc-mobile-only.grc-pos-bl {
  left: 38px;
  right: auto;
}

.grc-root.grc-mobile-only .grc-launcher-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.grc-root.grc-mobile-only .grc-launcher {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  max-width: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
}

.grc-root.grc-mobile-only .grc-launcher__icon {
  display: grid;
  place-items: center;
}

.grc-root.grc-mobile-only .grc-launcher__icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.grc-root.grc-mobile-only .grc-launcher-label {
  display: block;
}

.grc-root.grc-mobile-only .grc-panel {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 108px;
  width: auto;
  height: var(--grc-mobile-h, min(80vh, 640px));
}

.grc-root.grc-mobile-only.grc-pos-br .grc-panel,
.grc-root.grc-mobile-only.grc-pos-bl .grc-panel {
  left: 12px;
  right: 12px;
}
