.bm-page {
  max-width: 52rem;
  margin: 3rem auto 6rem;
  padding: 0 1.25rem;
  color: #172f37;
}
.bm-page h1,
.bm-drawer h2 {
  font:
    normal clamp(2.4rem, 6vw, 4.8rem) / 1.08 Georgia,
    serif;
  margin: 0.4em 0;
}
.bm-page h2,
.bm-page h3 {
  font-family: Georgia, serif;
  font-weight: 400;
}
.bm-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  position: relative;
  margin-block: 1rem 2rem;
  text-align: start;
}
.bm-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.93rem;
  color: inherit;
}
.bm-form input,
.bm-form select,
.bm-form textarea,
.bm-line input,
.bm-page textarea {
  font: inherit;
  color: #182c31;
  background: #fffdf9;
  border: 1px solid #91897d;
  padding: 0.72rem;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  border-radius: 2px;
}
.bm-form textarea {
  min-height: 5rem;
}
.bm-form .bm-check {
  grid-column: 1/-1;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.bm-check input {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}
.bm-form button,
.bm-link,
.bm-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  background: #1e3338;
  color: white;
  padding: 0.8rem 1.2rem;
  border: 1px solid #1e3338;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.bm-form button {
  align-self: end;
}
.bm-status {
  grid-column: 1/-1;
  margin: 0;
}
.bm-trap {
  position: absolute !important;
  left: -9999px;
  top: auto;
}
.bm-drawer {
  border: 0;
  margin: 0 0 0 auto;
  width: min(100%, 29rem);
  height: 100dvh;
  max-height: 100dvh;
  max-width: 100vw;
  box-sizing: border-box;
  padding: 1.5rem;
  color: #172e34;
  background: #faf7f0;
  overflow: auto;
}
.bm-drawer::backdrop {
  background: rgb(15 24 28/0.48);
}
.bm-drawer[open] {
  display: block;
}
.bm-title,
.bm-line,
.bm-totalline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.bm-title h2 {
  font-size: 2.3rem;
}
.bm-title button,
.bm-line button {
  font: inherit;
  background: transparent;
  color: inherit;
  border: 1px solid #a19886;
  cursor: pointer;
  padding: 0.4rem 0.65rem;
}
.bm-title button {
  font-size: 1.4rem;
}
.bm-line {
  padding: 1rem 0;
  border-bottom: 1px solid #d9d0c1;
  flex-wrap: wrap;
}
.bm-line div:first-child {
  flex: 1;
  min-width: 9rem;
}
.bm-line input {
  width: 4rem;
}
.bm-totalline {
  margin: 0.7rem 0;
}
.bm-total {
  font-size: 1.2rem;
  border-top: 1px solid #bdb3a3;
  padding-top: 0.7rem;
}
.bm-feedback {
  position: fixed;
  z-index: 12;
  bottom: 1rem;
  left: 1rem;
  max-width: min(27rem, 90vw);
  background: #1e3338;
  color: white;
  padding: 0.8rem 1rem;
}
.bm-feedback:empty {
  display: none;
}
.bm-page pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bm-form :focus-visible,
.bm-page :focus-visible,
.bm-drawer :focus-visible {
  outline: 3px solid #b56834;
  outline-offset: 2px;
}
.bm-page [hidden] {
  display: none;
}
