.marine-typeahead-frame {
  width: 100%;
  height: var(--marine-frame-height, 100%);
  min-height: var(--marine-frame-min-height, 100vh);
  max-width: var(--marine-frame-max-width, 100%);
  border-radius: var(--marine-frame-radius, 0px);
  overflow: hidden;
  position: relative;
}

.marine-typeahead-frame-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
  overflow: auto;
  background: #fff;
  border-radius: var(--marine-frame-radius, 0px);
  opacity: 0;
  transition: opacity 500ms ease;
  z-index: 6;
}

.marine-typeahead-frame-iframe.is-visible {
  opacity: 1;
}

.marine-typeahead-frame-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
  display: none;
  background: #fff;
  border-radius: var(--marine-frame-radius, 0px);
  opacity: 1;
  transition: opacity 500ms ease;
}

.marine-typeahead-frame-image.is-fading {
  opacity: 0;
}

.marine-typeahead-frame-empty {
  width: 100%;
  height: 100%;
  min-height: var(--marine-frame-min-height, 100vh);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: rgba(12, 39, 52, 0.75);
  border: 1px solid rgba(13, 63, 87, 0.2);
  background: #fff;
  border-radius: var(--marine-frame-radius, 0px);
}

.marine-typeahead-frame-message {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  opacity: 0;
  transition: opacity 500ms ease;
  pointer-events: none;
  z-index: 4;
}

.marine-typeahead-frame-message.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.marine-typeahead-frame-spinner-wrap {
  width: 88px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marine-typeahead-frame-spinner {
  position: relative;
  width: 72px;
  height: 24px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.45));
  animation: marine-swell 1100ms ease-in-out infinite;
}

.marine-typeahead-frame-spinner::before,
.marine-typeahead-frame-spinner::after {
  content: "";
  position: absolute;
  bottom: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
}

.marine-typeahead-frame-spinner::before {
  left: 14px;
  box-shadow: 17px -6px 0 0 rgba(255, 255, 255, 0.9), 34px 0 0 0 rgba(255, 255, 255, 0.95);
  animation: marine-droplets 900ms ease-in-out infinite;
}

.marine-typeahead-frame-spinner::after {
  left: 22px;
  width: 28px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.9);
  bottom: 0;
  animation: marine-wave 1300ms linear infinite;
}

.marine-typeahead-frame-message-text {
  margin: 0.6rem 0 0;
  opacity: 0.8;
  color: rgba(12, 39, 52, 0.9);
}

.marine-typeahead-frame-message-link-wrap {
  margin: 0.6rem 0 0;
}

@keyframes marine-frame-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes marine-swell {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes marine-droplets {
  0%, 100% { transform: translateY(0); opacity: 0.95; }
  50% { transform: translateY(-6px); opacity: 0.75; }
}

@keyframes marine-wave {
  0% { transform: translateX(-6px) scaleX(0.94); opacity: 0.85; }
  50% { transform: translateX(0) scaleX(1.04); opacity: 1; }
  100% { transform: translateX(6px) scaleX(0.94); opacity: 0.85; }
}
