.hsb-bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 300100;
  visibility: hidden;
  opacity: 0;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(3px);
  transition: opacity .22s ease, visibility .22s ease;
}

.hsb-bottom-sheet-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

.hsb-bottom-sheet {
  --hsb-bottom-sheet-fixed-offset: 0px;
  position: fixed;
  left: 50%;
  bottom: calc(var(--hsb-bottom-sheet-fixed-offset, 0px) + env(safe-area-inset-bottom, 0px));
  z-index: 300101;
  width: min(540px, calc(100vw - 16px));
  max-height: calc(100dvh - var(--hsb-bottom-sheet-fixed-offset, 0px) - env(safe-area-inset-bottom, 0px) - 18px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: rgba(255,255,255,.9);
  background:
    radial-gradient(circle at 12% 0%, rgba(255,215,120,.12), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(70,180,165,.10), transparent 34%),
    #090b10;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px 18px 14px 14px;
  box-shadow: 0 24px 70px rgba(0,0,0,.65);
  transform: translate3d(-50%, calc(100% + 28px), 0);
  transition: transform .26s ease;
  will-change: transform;
  pointer-events: none;
  touch-action: pan-y;
}

.hsb-bottom-sheet.is-open {
  transform: translate3d(-50%, 0, 0);
  pointer-events: auto;
}

.hsb-bottom-sheet-handle {
  width: 44px;
  height: 5px;
  flex: 0 0 auto;
  margin: 10px auto 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
}

.hsb-bottom-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px 11px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.hsb-bottom-sheet-title {
  margin: 0;
  color: #ffd778;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.hsb-bottom-sheet-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 999px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff7b7b !important;
  background: rgba(255,255,255,.06) !important;
  box-shadow: none !important;
}

.hsb-bottom-sheet-body {
  overflow-y: auto;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hsb-bottom-sheet-body::-webkit-scrollbar {
  display: none;
}

.hsb-bottom-sheet-option {
  width: 100%;
  min-height: 74px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.045);
  text-align: left;
  text-decoration: none;
}

.hsb-bottom-sheet-option + .hsb-bottom-sheet-option {
  margin-top: 10px;
}

.hsb-bottom-sheet-option:hover,
.hsb-bottom-sheet-option:focus {
  color: #fff;
  border-color: rgba(255,215,120,.36);
  background: rgba(255,215,120,.08);
  text-decoration: none;
  outline: 0;
}

.hsb-bottom-sheet-option-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #1b1300;
  background: linear-gradient(180deg, #ffe29a, #d69f2d);
  font-size: 21px;
}

.hsb-bottom-sheet-option-copy {
  min-width: 0;
}

.hsb-bottom-sheet-option-copy strong,
.hsb-bottom-sheet-option-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hsb-bottom-sheet-option-copy strong {
  font-size: 15px;
  line-height: 1.2;
}

.hsb-bottom-sheet-option-copy small {
  margin-top: 4px;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  line-height: 1.25;
}

@media (max-width: 360px) {
  .hsb-bottom-sheet {
    width: calc(100vw - 10px);
  }

  .hsb-bottom-sheet-option {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
  }

  .hsb-bottom-sheet-option-icon {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hsb-bottom-sheet,
  .hsb-bottom-sheet-overlay {
    transition: none;
  }
}
