#delivery-help {
  position: fixed;
  right: clamp(12px, 2vw, 30px);
  bottom: max(15px, env(safe-area-inset-bottom));
  z-index: 8;
  color: #173c30;
}
#help-launch {
  border-radius: 30px;
  padding: 10px 15px;
  color: #fff;
  border: 1px solid #174e38;
  background: #205d45;
  font-weight: 650;
  font-size: 13px;
  box-shadow: 0 3px 13px #102d282b;
}
#help-launch span {
  color: #d1ed9a;
  margin-right: 2px;
}
#help-panel[hidden] {
  display: none;
}
#help-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 9px);
  width: min(355px, calc(100vw - 26px));
  max-height: min(540px, calc(100dvh - 86px));
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid #cddccf;
  border-radius: 16px;
  box-shadow: 0 14px 50px #183b3033;
  overflow: hidden;
}
#help-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #edf4e8;
  padding: 11px 16px;
}
#help-title {
  font-size: 17px;
  margin: 0;
}
#help-close {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1.2;
  padding: 1px 6px;
}
.help-scroll {
  overflow: auto;
  padding: 11px 16px;
  overscroll-behavior: contain;
}
.help-intro {
  font-size: 13px;
  color: #486454;
  margin: 0 0 9px;
}
#help-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#help-topics button {
  border-radius: 8px;
  padding: 5px 8px;
  border: 1px solid #cedbcf;
  background: #f7faf4;
  font-size: 12px;
  text-align: left;
}
#help-result:not(:empty) {
  border-top: 1px solid #e2e9e2;
  padding-top: 12px;
  margin-top: 12px;
  font-size: 13px;
}
#help-result p {
  white-space: pre-line;
  margin: 5px 0;
  line-height: 1.8;
}
#help-form {
  border-top: 1px solid #e0e8e0;
  padding: 10px;
  display: flex;
  gap: 6px;
}
#help-form label {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  position: absolute;
}
#help-form input {
  width: 0;
  flex: 1;
  border: 1px solid #cedbd0;
  background: #fff;
  border-radius: 7px;
  padding: 8px;
  font-size: 13px;
}
#help-form button {
  border: 0;
  border-radius: 8px;
  padding: 7px 12px;
  color: white;
  background: #226349;
  font-size: 13px;
}
@media (max-width: 680px) {
  #help-launch {
    padding: 9px 12px;
  }
  body:has(dialog[open]) #delivery-help {
    visibility: hidden;
  }
}
