#gm-dock {
  position: fixed;
  z-index: 50;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  width: calc(100% - 1rem);
  translate: -50% 0;
  pointer-events: none;
}

.gm-dock-frame {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  max-width: 100%;
  pointer-events: none;
}

.gm-dock-bar {
  display: flex;
  align-items: flex-end;
  width: max-content;
  max-width: 100%;
  gap: .5rem;
  padding: 0 .75rem .4375rem;
  border: 1px solid rgb(92 58 33 / .46);
  border-radius: 999px;
  background: rgb(250 246 240 / .93);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 .625rem 2rem rgb(42 26 16 / .28), 0 .1875rem .5rem rgb(42 26 16 / .15);
  pointer-events: auto;
}

.gm-dock-item { position: relative; min-width: 0; flex-shrink: 1; }
.gm-dock-item:is(:hover, :focus-within) { z-index: 1; }
.gm-dock-control {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(92 58 33 / .3);
  border-radius: 999px;
  background: #fff;
  color: #2A1A10;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 .2rem .45rem rgb(42 26 16 / .1);
}
.gm-dock-control:is(:hover, :focus-visible, [aria-current="page"]) {
  border-color: #5C3A21;
  background: #F2E6D9;
  color: #5C3A21;
}
.gm-dock-control:focus-visible { outline: .125rem solid #5C3A21; outline-offset: .15rem; }
.gm-dock-icon, .gm-dock-icon svg { display: block; width: 1.375rem; height: 1.375rem; }
.gm-dock-icon svg { stroke-width: 2; }
.gm-dock-count {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 1rem;
  padding: .12rem .2rem;
  border-radius: 999px;
  background: #5C3A21;
  color: #FAF6F0;
  font: 650 .65rem/1.1 system-ui, sans-serif;
  text-align: center;
}
.gm-dock-label {
  position: absolute;
  bottom: calc(100% + .55rem);
  left: 50%;
  translate: -50% 0;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: #2A1A10;
  color: #FAF6F0;
  font: 600 .875rem/1.25 system-ui, sans-serif;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 .2rem .5rem rgb(42 26 16 / .2);
}

.has-quick-dock .header-tools { display: none; }
.has-quick-dock .footer { padding-block-end: calc(6.25rem + env(safe-area-inset-bottom, 0px)); }
@media (hover: hover) {
  .has-quick-dock .footer { padding-block-end: calc(9.25rem + env(safe-area-inset-bottom, 0px)); }
}
html:has(body.has-quick-dock) { scroll-padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 34rem);
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(1rem, 4vw, 2rem);
  border: 0;
  border-left: 1px solid rgb(92 58 33 / .2);
  background: #FAF6F0;
  color: #2A1A10;
  overscroll-behavior: contain;
  box-shadow: -.5rem 0 2rem rgb(42 26 16 / .22);
}
.cart-drawer .dialog-heading { align-items: start; }
.cart-drawer .dialog-heading .outline { border-radius: 999px; }
.cart-drawer #cart-content { margin-top: 1rem; }
html:has(.cart-drawer[open]) { overflow: hidden; }

@media (max-width: 480px) {
  .gm-dock-bar { gap: .25rem; padding-inline: .375rem; }
  .gm-dock-item:first-child .gm-dock-label { left: 0; translate: none; }
  .gm-dock-item:last-child .gm-dock-label { top: auto; right: 0; left: auto; translate: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .gm-dock-control { transition: border-color .2s, background-color .2s; }
  .cart-drawer[open] { animation: gm-cart-enter .3s var(--motion-ease) both; }
}
@keyframes gm-cart-enter { from { translate: 100% 0; } }
