.nec-location-embed {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: var(--nec-location-min-height, 700px);
  overflow-x: hidden;
}

.nec-location-embed *,
.nec-location-embed *::before,
.nec-location-embed *::after {
  box-sizing: border-box;
}

.nec-location-iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: var(--nec-location-min-height, 700px);
  min-height: var(--nec-location-min-height, 700px);
  border: 0;
  overflow: hidden;
  transition: opacity 180ms ease;
}

.nec-location-is-loading:not(.nec-location-is-frame-visible) .nec-location-iframe {
  opacity: 0;
}

.nec-location-loader {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: var(--nec-location-min-height, 700px);
  padding: 1rem;
  color: inherit;
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.nec-location-loader[hidden],
.nec-location-slow[hidden] {
  display: none;
}

.nec-location-spinner {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: nec-location-spin 700ms linear infinite;
}

.nec-location-slow,
.nec-location-noscript {
  width: 100%;
  max-width: 100%;
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(127, 127, 127, 0.45);
  border-radius: 0.25rem;
  color: inherit;
  background: rgba(127, 127, 127, 0.08);
  overflow-wrap: anywhere;
}

.nec-location-fallback-link {
  margin-inline-start: 0.35em;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.nec-location-fallback-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@keyframes nec-location-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .nec-location-loader,
  .nec-location-slow,
  .nec-location-noscript {
    padding: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nec-location-iframe {
    transition: none;
  }

  .nec-location-spinner {
    animation: none;
  }
}
