#bbh-geo-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: 9vh 20px 40px;
  background: rgba(32, 32, 32, .55);
  font-family: Lato, sans-serif;
}

#bbh-geo-modal[hidden] {
  display: none !important;
}

#bbh-geo-modal .bbh-geo-panel {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 680px);
  margin: 0;
  padding: 28px 28px 22px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

#bbh-geo-modal .bbh-geo-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  color: #4b4f58;
  border: 0;
  border-radius: 6px;
  font-size: 28px;
  line-height: 44px;
  cursor: pointer;
}

#bbh-geo-modal h3 {
  margin: 4px 40px 8px 0;
  color: #1c1c1c;
  font-family: Lato, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

#bbh-geo-modal .bbh-geo-sub {
  margin: 0 0 22px;
  color: #4b4f58;
  font-family: Lato, sans-serif;
  font-size: 18px;
  line-height: 1.45;
}

#bbh-geo-modal .bbh-geo-flags {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

#bbh-geo-modal .bbh-geo-flags a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #1c1c1c;
  text-decoration: none;
}

#bbh-geo-modal .bbh-geo-flags img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e4e4e4;
  border-radius: 4px;
}

#bbh-geo-modal .bbh-geo-name {
  font-family: Lato, sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

#bbh-geo-modal .bbh-geo-close:focus-visible,
#bbh-geo-modal .bbh-geo-flags a:focus-visible {
  outline: 2px solid #99b03a;
  outline-offset: 3px;
}

#bbh-geo-modal .bbh-geo-flags a:hover img {
  outline: 2px solid #99b03a;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  #bbh-geo-modal {
    padding: 24px 12px 32px;
  }

  #bbh-geo-modal .bbh-geo-panel {
    padding: 20px 16px 16px;
  }

  #bbh-geo-modal h3 {
    font-size: 26px;
  }

  #bbh-geo-modal .bbh-geo-flags {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #bbh-geo-modal .bbh-geo-flags a {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 8px;
    border: 1px solid #ececec;
    border-radius: 6px;
  }

  #bbh-geo-modal .bbh-geo-flags img {
    width: 112px;
    flex: 0 0 112px;
  }

  #bbh-geo-modal .bbh-geo-name {
    font-size: 18px;
    text-align: left;
  }
}
