.hsb-mobile-picker-open {
  overscroll-behavior: none;
}

body.hsb-mobile-picker-open {
  overflow: hidden !important;
}

.hsb-mobile-picker {
  position: fixed;
  top: var(--hsb-mobile-picker-offset-top, 0);
  left: 0;
  right: 0;
  z-index: 2147483600;
  height: var(--hsb-mobile-picker-vh, 100dvh);
  background: #050505;
  color: #f5f5f5;
  opacity: 0;
  transform: translate3d(100%, 0, 0);
  transition: transform 220ms ease, opacity 180ms ease;
  touch-action: auto;
}

.hsb-mobile-picker.is-open {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  animation: hsb-mobile-picker-enter 220ms ease both;
}

.hsb-mobile-picker[hidden] {
  display: none !important;
}

.hsb-mobile-picker-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #050505;
}

.hsb-mobile-picker-header {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 4px;
  min-height: 56px;
  padding: max(8px, env(safe-area-inset-top)) 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: #050505;
}

.hsb-mobile-picker-back,
.hsb-mobile-picker-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #f5f5f5;
  font-size: 18px;
}

.hsb-mobile-picker-back:active,
.hsb-mobile-picker-clear:active {
  background: rgba(255, 255, 255, .1);
}

.hsb-mobile-picker-title {
  min-width: 0;
  margin: 0;
  color: #f5f5f5;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0;
}

.hsb-mobile-picker-search-wrap {
  position: relative;
  flex: 0 0 auto;
  padding: 10px 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: #050505;
}

.hsb-mobile-picker-search-icon {
  position: absolute;
  top: 50%;
  left: 28px;
  color: rgba(255, 255, 255, .56);
  font-size: 15px;
  transform: translateY(-50%);
  pointer-events: none;
}

.hsb-mobile-picker-search {
  width: 100%;
  height: 46px;
  padding: 0 46px 0 42px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: #111;
  color: #f5f5f5;
  font-size: 16px;
  line-height: 46px;
  outline: none;
  box-shadow: none;
}

.hsb-mobile-picker-search:focus {
  border-color: rgba(214, 159, 45, .8);
  box-shadow: 0 0 0 .14rem rgba(214, 159, 45, .16);
}

.hsb-mobile-picker-search::placeholder {
  color: rgba(255, 255, 255, .52);
}

.hsb-mobile-picker-clear {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 42px;
  height: 42px;
  color: rgba(255, 255, 255, .72);
  transform: translateY(-50%);
}

.hsb-mobile-picker-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 8px 0 max(18px, env(safe-area-inset-bottom));
  background: #050505;
}

.hsb-mobile-picker-section-title {
  padding: 14px 18px 6px;
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hsb-mobile-picker-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 12px 18px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: #050505;
  color: #f5f5f5;
  text-align: left;
}

.hsb-mobile-picker-option:active,
.hsb-mobile-picker-option.is-selected {
  background: rgba(214, 159, 45, .16);
}

.hsb-mobile-picker-option-label {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.35;
}

.hsb-mobile-picker-option-icon {
  flex: 0 0 auto;
  color: rgba(214, 159, 45, .82);
  font-size: 15px;
}

.hsb-mobile-picker-empty,
.hsb-mobile-picker-message {
  padding: 18px;
  color: rgba(255, 255, 255, .68);
  font-size: 15px;
  line-height: 1.4;
}

.hsb-mobile-picker-empty .no-results,
.hsb-mobile-picker-empty .loading,
.hsb-mobile-picker-empty .loading-more-results,
.hsb-mobile-picker-empty .no-more-results {
  padding: 0;
  color: rgba(255, 255, 255, .68);
}

.hsb-mobile-picker-empty .hsb-geo-suggestion-trigger {
  color: #d4af37;
  text-align: left;
}

.hsb-mobile-picker-message-loading {
  color: rgba(214, 159, 45, .82);
}

.hsb-mobile-picker-source-dropdown {
  max-height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate3d(-9999px, -9999px, 0) !important;
}

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .hsb-mobile-picker {
    display: none !important;
  }
}

@keyframes hsb-mobile-picker-enter {
  from {
    opacity: 0;
    transform: translate3d(100%, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
