.d4-popup-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 117, 163, .22);
}

.location-panel-actions > .d4-popup-actions {
  display: contents;
}

.d4-popup-action {
  appearance: none;
  min-height: 42px;
  border: 1px solid #0079b8;
  border-radius: 10px;
  background: #0788c7;
  color: #fff;
  font: 800 13px/1 system-ui, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 68, 105, .16);
}

.d4-popup-action:hover,
.d4-popup-action:focus-visible {
  background: #006fa8;
}

.d4-popup-navigation {
  background: #087f73;
  border-color: #087468;
}

.d4-popup-navigation:hover,
.d4-popup-navigation:focus-visible {
  background: #06685f;
}

.d4-popup-share-location {
  background: #176a9b;
  border-color: #145f8b;
}

.d4-popup-share-location:hover,
.d4-popup-share-location:focus-visible {
  background: #12587f;
}

body[data-theme="night"] .d4-popup-actions {
  border-top-color: rgba(90, 199, 235, .3);
}

body[data-theme="night"] .d4-popup-action {
  background: #176b91;
  border-color: #55b9dc;
  color: #f4fbff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
}

body[data-theme="night"] .d4-popup-navigation {
  background: #14796f;
  border-color: #55cdbd;
}

body[data-theme="night"] .d4-popup-share-location {
  background: #245f8d;
  border-color: #69b9e8;
}

@media (min-width: 901px) {
  .d4-mobile-action-only {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .d4-popup-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .d4-popup-actions > :only-child {
    grid-column: 1 / -1;
  }
}
