section.geoip {
  width: 100%;
  max-width: 720px;
  margin-top: 40px;
}
section.geoip h1 {
  margin-bottom: 12px;
}
section.geoip h2 {
  font-size: var(--font-small);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
  color: var(--text-secondary);
  text-align: center;
}
section.geoip > .ip {
  width: 100%;
  max-width: 480px;
  margin: 32px auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-left: 16px;
  background-color: var(--crad-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: border-color 200ms, box-shadow 200ms;
}
section.geoip > .ip::before {
  content: "";
  width: 20px;
  height: 20px;
  background-image: url(/img/search.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  flex-shrink: 0;
  opacity: 0.5;
}
section.geoip > .ip:focus-within {
  border-color: var(--brand-dark);
  box-shadow: 0 4px 24px rgb(from var(--brand-dark) r g b / 12%), 0 0 0 3px rgb(from var(--brand-dark) r g b / 8%);
}
section.geoip > .ip input {
  border: none;
  box-shadow: none;
  border-radius: 0;
  background-color: transparent;
  flex-grow: 1;
  line-height: 1.5;
  padding: 12px;
  min-width: 0;
}
section.geoip > .ip button {
  flex-shrink: 0;
  margin: -1px;
  padding: 12px 24px;
  line-height: 1.5;
  border: none;
  box-shadow: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  background-color: var(--brand-dark);
  color: var(--card-bg);
  font-weight: 600;
  cursor: pointer;
  transition: transform 100ms;
  transform-origin: 65% center;
  position: relative;
}
section.geoip > .ip button:active {
  scale: 0.95;
}
section.geoip > .ip button > div {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
section.geoip > .ip button > div > span {
  width: 4px;
  height: 4px;
  background-color: var(--card-bg);
  border-radius: 50%;
  opacity: 0.4;
  animation: waveform 1s ease-in-out infinite;
}
section.geoip > .ip button > div > span:nth-child(2) {
  animation-delay: 150ms;
}
section.geoip > .ip button > div > span:nth-child(3) {
  animation-delay: 300ms;
}
section.geoip > .ip button > div > span:nth-child(4) {
  animation-delay: 450ms;
}
section.geoip > .ip button > div > span:nth-child(5) {
  animation-delay: 600ms;
}
section.geoip > .ip button.working {
  color: var(--brand-dark);
}
section.geoip > .ip button.working > div {
  display: flex;
}
section.geoip .answer {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  animation: showup 300ms ease;
}
section.geoip .answer > div {
  padding: 12px 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  align-content: start;
  column-gap: 8px;
}
section.geoip .answer > div label {
  grid-column: span 2;
  padding-block: 9px;
  font-size: var(--font-mini);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-tertiary);
}
section.geoip .answer > div span {
  font-size: var(--font-small);
  color: var(--text-secondary);
  padding-block: 9px;
}
section.geoip .answer > div span[data-val] {
  font-weight: 600;
  color: var(--text-primary);
}
section.geoip .answer > div span[data-empty]:empty::before {
  content: attr(data-empty);
  font-weight: 400;
  font-style: italic;
  color: var(--text-tertiary);
}
section.geoip .answer > div [data-flag] {
  grid-column-start: 2;
  justify-self: start;
  font-size: var(--font-mini);
  font-weight: 600;
  color: var(--accent-warning);
  padding-block: 4px;
  padding-inline: 6px 12px;
  margin-block: 2px;
  margin-left: -6px;
  display: flex;
  gap: 6px;
  align-items: center;
  border-radius: 100vmax;
  background-color: rgb(from currentColor r g b / 8%);
}
section.geoip .answer > div [data-flag]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 6px rgb(from currentColor r g b / 40%);
}
section.geoip .answer > div [data-flag]:first-of-type {
  margin-top: -8px;
}
section.geoip .answer > div:nth-child(3) {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
section.geoip .answer > div:nth-child(3) button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  font-size: var(--font-small);
  line-height: 1.5;
  color: var(--text-secondary);
  box-shadow: none;
  transition: background 200ms, border-color 200ms;
}
section.geoip .answer > div:nth-child(3) button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
section.geoip .answer > div:nth-child(3) button:hover,
section.geoip .answer > div:nth-child(3) button:focus-visible {
  background: var(--bg-primary);
  border-color: var(--brand-dark);
}
section.geoip > .skeleton > div label,
section.geoip > .skeleton > div span {
  margin-block: 12px;
  padding: 0;
  justify-self: start;
  width: 100%;
  height: 1em;
  border-radius: 100vmax;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
section.geoip > .skeleton > div span:nth-of-type(odd) {
  width: 100px;
}
section.geoip > .error {
  grid-template-columns: 100%;
  background-color: hsl(form var(--accent-danger) h s 97%);
}
section.geoip > .error > div > span {
  grid-column: span 2;
  text-align: center;
  text-wrap: balance;
  font-size: var(--font-base);
}
section.geoip > .error > div > span:first-child {
  font-size: var(--font-h2);
}
@keyframes waveform {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(4);
    opacity: 1;
  }
}
@keyframes showup {
  0% {
    opacity: 0;
    transform: translateY(-16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
@media (max-width: 600px) {
  section.geoip .answer {
    grid-template-columns: 100%;
  }
}
