.mm-bag {
  --bag-ink: #173f32;
  --bag-paper: #faf7ee;
  --bag-line: #d3d6c8;
  box-sizing: border-box;
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 28.5rem);
  height: 100%;
  height: 100dvh;
  max-height: none;
  max-width: none;
  margin: 0 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-left: 1px solid var(--bag-line);
  background-color: var(--bag-paper);
  color: var(--bag-ink);
  text-align: left;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.45;
}

.mm-bag::backdrop { background: rgb(13 31 23 / 46%); }
.mm-bag-is-open { overflow: hidden; }
.mm-bag *, .mm-bag *::before, .mm-bag *::after { box-sizing: border-box; }
.mm-bag button, .mm-bag textarea { font: inherit; }
.mm-bag button { cursor: pointer; color: inherit; }
.mm-bag button:disabled { cursor: default; opacity: .45; }
.mm-bag [hidden] { display: none !important; }
.mm-bag :focus-visible { outline: 2px solid #a93628; outline-offset: 3px; }
.mm-bag #mm-bag-title:focus { outline: none; }
.mm-bag__shell { display: flex; height: 100%; flex-direction: column; }
.mm-bag__head, .mm-bag__main, .mm-bag__bottom { padding-inline: clamp(1.25rem, 5vw, 2.25rem); }
.mm-bag__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex: none; padding-block: 1.6rem 1.35rem; border-bottom: 1px solid var(--bag-line); }
.mm-bag h2, .mm-bag h3 { color: var(--bag-ink); letter-spacing: -.04em; font-family: var(--serif); font-weight: 400; }
.mm-bag h2 { margin: 0; font-size: clamp(2rem, 6vw, 2.65rem); line-height: 1.05; }
.mm-bag__close { width: 2.65rem; height: 2.65rem; border: 1px solid var(--bag-line); border-radius: 50%; flex: none; display: grid; place-items: center; padding: 0; background: transparent; }
.mm-bag__close:hover, .mm-bag__stepper button:not(:disabled):hover { background: #e8ebdf; }
.mm-bag__confirmation { margin: 0; padding: .7rem clamp(1.25rem, 5vw, 2.25rem); font-size: .94rem; color: #264332; background: #e9eee2; }
.mm-bag__content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }
.mm-bag__main { flex: 1 0 auto; }
.mm-bag__items { margin: 0; padding: 0; list-style: none; }
.mm-bag__item { display: flex; align-items: center; gap: clamp(.9rem, 3.2vw, 1.4rem); padding-block: 1.35rem; border-bottom: 1px solid var(--bag-line); }
.mm-bag__photo { flex: none; display: block; width: clamp(6.25rem, 30vw, 9.25rem); height: auto; aspect-ratio: 8 / 7; object-fit: contain; object-position: center; border-radius: .25rem; }
.mm-bag__item-detail { min-width: 0; display: grid; justify-items: start; }
.mm-bag__item h3 { margin: 0; font-size: clamp(1.45rem, 5.6vw, 1.85rem); line-height: 1.06; overflow-wrap: break-word; }
.mm-bag__item-detail p { margin: .28rem 0 .68rem; color: #506055; font-size: .94rem; }
.mm-bag__total { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding-top: 1.18rem; margin: 0; }
.mm-bag__total strong { font: 400 1.65rem/1.15 var(--serif); }
.mm-bag__stepper { display: grid; grid-template-columns: 2rem minmax(1.45rem, auto) 2rem; align-items: center; overflow: hidden; border: 1px solid #a3ad9b; border-radius: 2rem; text-align: center; font-size: .95rem; font-variant-numeric: tabular-nums; }
.mm-bag__stepper button { border: 0; padding: .25rem 0; background: transparent; font-size: 1.12rem; }
.mm-bag__stepper button:focus-visible { outline-offset: -3px; }
.mm-bag__bottom { flex: none; padding-block: 1.6rem max(1.1rem, env(safe-area-inset-bottom)); background: var(--bag-paper); border-top: 1px solid var(--bag-line); margin-top: 2rem; }
.mm-bag__note { margin: 0; color: #586352; font-size: .875rem; }
.mm-bag :is(.mm-bag__primary, .mm-bag__text-button, .mm-bag__back) { text-transform: none; letter-spacing: 0; }
.mm-bag .mm-bag__primary { display: flex; justify-content: center; align-items: center; min-height: 3rem; width: 100%; margin-top: 1.15rem; padding: .72rem 1.2rem; background: var(--bag-ink); color: #fffaf0; text-decoration: none; border: 1px solid var(--bag-ink); border-radius: 2rem; text-align: center; font-size: .98rem; font-weight: 600; }
.mm-bag__primary:hover { filter: brightness(1.15); }
.mm-bag__bottom > .mm-bag__primary:first-child { margin-top: 0; }
.mm-bag .mm-bag__text-button, .mm-bag .mm-bag__back { display: block; min-height: 2.75rem; padding: .55rem .2rem; border: 0; background: transparent; text-decoration: underline; text-underline-offset: .24em; font-size: .95rem; }
.mm-bag__text-button { margin: .4rem auto 0; }
.mm-bag__back { margin: .75rem 0 .25rem; }
.mm-bag__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.mm-bag__empty svg { color: #8c3928; }
.mm-bag__empty h3 { margin: 1.2rem 0 .15rem; font-size: 2rem; }
.mm-bag__empty p { margin: 0 0 .45rem; }
.mm-bag__empty .mm-bag__primary { width: auto; min-width: 12.2rem; }
.mm-bag__explain { margin: .75rem 0 1.2rem; color: #405641; font-size: 1rem; }
.mm-bag .mm-bag__field { display: block; margin: 1.05rem 0 .35rem; font-size: .93rem; font-weight: 600; }
.mm-bag .mm-bag__message { display: block; width: 100%; min-width: 0; padding: .68rem .8rem; border: 1px solid #a6af9e; background: #fffdf7; border-radius: .35rem; color: var(--bag-ink); font-size: 1rem; }
.mm-bag .mm-bag__message { font-size: .93rem; line-height: 1.55; resize: vertical; }
.mm-bag__feedback { margin: .35rem 0 0; text-align: center; font-size: .9rem; }
.mm-bag__feedback:empty { display: none; }
.mm-bag__sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 36rem) {
  .mm-bag__stepper { grid-template-columns: 2.55rem 1.5rem 2.55rem; }
  .mm-bag__stepper button { min-height: 2.55rem; }
  .mm-bag__close { width: 2.75rem; height: 2.75rem; }
}
