.wf-globe-widget {
  --wf-globe-text: #eff9ff;
  --wf-globe-panel: rgba(5, 28, 54, 0.8);
  --wf-globe-panel-border: rgba(25, 61, 105, 0.9);
  --wf-globe-panel-hover: #086490;
  --wf-globe-height: 100%;
  --wf-globe-control-offset: 16px;
  --wf-globe-hud-max-width: 391px;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: var(--wf-globe-text);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  container-type: inline-size;
  overflow: hidden;
}

.wf-globe-widget,
.wf-globe-widget * {
  box-sizing: border-box;
}

/* Applied only while a touch gesture that began on the globe is active. */
html.wf-globe-widget--touch-gesture-active,
html.wf-globe-widget--touch-gesture-active body,
html.wf-globe-widget--touch-gesture-active body * {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none;
}

.wf-globe-widget__frame {
  position: relative;
  height: var(--wf-globe-height);
  min-height: 0;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(80, 208, 255, 0.1), transparent 28%),
    radial-gradient(circle at 50% 50%, #061c36, #010b1a);
}

.wf-globe-widget__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.5px);
  background-size: 180px 180px, 240px 240px;
  background-position: 24px 30px, 110px 140px;
  opacity: 0.36;
  pointer-events: none;
}

.wf-globe-widget__canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.wf-globe-widget__canvas.is-dragging {
  cursor: grabbing;
}

.wf-globe-widget__search {
  position: absolute;
  top: var(--wf-globe-control-offset);
  left: var(--wf-globe-control-offset);
  z-index: 3;
  width: min(280px, calc(100% - 86px));
  display: grid;
  gap: 8px;
}

.wf-globe-widget__input {
  position: relative;
  z-index: 1;
  appearance: none;
  width: 100%;
  height: 48px;
  padding: 0 54px 0 44px;
  border: 2px solid var(--wf-globe-panel-border);
  border-radius: 12px;
  background-color: var(--wf-globe-panel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20px' height='20px' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='6.5' cy='6.5' r='4.75' stroke='rgba(255,255,255,0.88)' stroke-width='1.5'/%3E%3Cpath d='M10.4 10.4L13.6 13.6' stroke='rgba(255,255,255,0.88)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px 50%;
  background-size: 20px 20px;
  color: var(--wf-globe-text);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  outline: none;
  -webkit-user-select: text;
  user-select: text;
  backdrop-filter: blur(12px);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.wf-globe-widget__input::placeholder {
  color: #7c96b3;
}

.wf-globe-widget__input:focus {
  border-color: var(--wf-globe-panel-border);
  background-color: var(--wf-globe-panel);
}

.wf-globe-widget__search-clear {
  position: absolute;
  top: 24px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
  transition: background-color 160ms ease;
}

.wf-globe-widget__search-clear:focus-visible {
  background: var(--wf-globe-panel-hover);
}

.wf-globe-widget__search-clear[hidden] {
  display: none;
}

.wf-globe-widget__search-clear-icon,
.wf-globe-widget__hud-clear-icon {
  width: 16px;
  height: 16px;
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.25 3.25L12.75 12.75' stroke='rgba(255,255,255,0.9)' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M12.75 3.25L3.25 12.75' stroke='rgba(255,255,255,0.9)' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.wf-globe-widget__suggestions {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 2px solid var(--wf-globe-panel-border);
  border-radius: 12px;
  background: var(--wf-globe-panel);
  backdrop-filter: blur(12px);
}

.wf-globe-widget__suggestions[hidden] {
  display: none;
}

.wf-globe-widget__suggestion {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--wf-globe-text);
  font: inherit;
  font-weight: 500;
  text-align: left;
  text-wrap: pretty;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.wf-globe-widget__suggestion:hover,
.wf-globe-widget__suggestion:focus-visible,
.wf-globe-widget__suggestion.is-active {
  background: var(--wf-globe-panel-hover);
}

.wf-globe-widget__suggestion[aria-selected="true"] {
  background: var(--wf-globe-panel-hover);
}

.wf-globe-widget__zoom {
  position: absolute;
  top: var(--wf-globe-control-offset);
  right: var(--wf-globe-control-offset);
  z-index: 2;
  display: grid;
  gap: 10px;
}

.wf-globe-widget__zoom-button {
  width: 48px;
  height: 48px;
  border: 2px solid var(--wf-globe-panel-border);
  border-radius: 12px;
  background: var(--wf-globe-panel);
  color: var(--wf-globe-text);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  font-weight: 400;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.wf-globe-widget__zoom-button::before {
  display: block;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.wf-globe-widget__zoom-button[data-zoom-in]::before {
  content: "+";
}

.wf-globe-widget__zoom-button[data-zoom-out]::before {
  content: "–";
}

.wf-globe-widget__zoom-button:focus-visible,
.wf-globe-widget__zoom-button:active {
  border: 2px solid var(--wf-globe-panel-hover);
  background: var(--wf-globe-panel-hover);
}

@media (hover: hover) and (pointer: fine) and (min-width: 561px) {
  .wf-globe-widget__canvas.is-country-hovered {
    cursor: pointer;
  }
}

@media (hover: hover) and (pointer: fine) {
  .wf-globe-widget__zoom-button:hover {
    border: 2px solid var(--wf-globe-panel-hover);
    background: var(--wf-globe-panel-hover);
  }

  .wf-globe-widget__search-clear:hover {
    background: var(--wf-globe-panel-hover);
  }
}

.wf-globe-widget__hud {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: var(--wf-globe-control-offset);
  width: calc(100% - (var(--wf-globe-control-offset) * 2));
  max-width: var(--wf-globe-hud-max-width);
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  column-gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border: 2px solid var(--wf-globe-panel-border);
  border-radius: 1000px;
  background: var(--wf-globe-panel);
  color: var(--wf-globe-text);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
  transition: background-color 160ms ease, border-color 160ms ease;
}

.wf-globe-widget__hud.is-clearable {
  cursor: pointer;
}

.wf-globe-widget__hud-spacer {
  width: 32px;
  height: 32px;
}

.wf-globe-widget__label {
  display: block;
  min-width: 0;
  text-align: center;
  text-wrap: balance;
}

.wf-globe-widget__hud-clear {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  background: transparent;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

.wf-globe-widget__hud-clear:focus-visible {
  background: var(--wf-globe-panel-hover);
}

@media (hover: hover) and (pointer: fine) {
  .wf-globe-widget__hud.is-clearable:hover .wf-globe-widget__hud-clear {
    background: var(--wf-globe-panel-hover);
  }
}

.wf-globe-widget__hud-clear[hidden] {
  display: none;
}

.wf-globe-widget__status {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(420px, calc(100% - 48px));
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 214, 102, 0.28);
  border-radius: 18px;
  background: var(--wf-globe-panel);
  color: #ffe6a3;
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(12px);
}

@media (max-width: 560px) {
  .wf-globe-widget {
    --wf-globe-padding: 12px;
    --wf-globe-control-offset: 12px;
  }

  .wf-globe-widget__search {
    width: calc(100% - var(--wf-globe-control-offset) - var(--wf-globe-control-offset) - 68px);
    max-width: none;
  }

  .wf-globe-widget__zoom {
    gap: 12px;
  }

}

@media (max-width: 412px) {
  .wf-globe-widget__suggestions {
    max-height: 180px;
    overflow-y: auto;
  }
}

@container (max-width: 560px) {
  .wf-globe-widget {
    --wf-globe-padding: 12px;
    --wf-globe-control-offset: 12px;
  }

  .wf-globe-widget__search {
    width: calc(100% - var(--wf-globe-control-offset) - var(--wf-globe-control-offset) - 68px);
    max-width: none;
  }

  .wf-globe-widget__zoom {
    gap: 12px;
  }

}

@container (max-width: 412px) {
  .wf-globe-widget__suggestions {
    max-height: 180px;
    overflow-y: auto;
  }
}
