/* The public store uses 350px edge panels for its mobile navigation and cart. */
dialog.cds-drawer {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
dialog.cds-drawer::backdrop { background: rgb(0 0 0 / 70%); }
.cds-drawer .cds-drawer-panel {
  box-sizing: border-box;
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(350px, 100vw);
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}
.cds-menu-dialog .cds-drawer-panel { left: 0; padding-top: 70px; animation: cds-drawer-from-left 350ms cubic-bezier(.4, 0, .2, 1) both; }
.cds-cart-dialog .cds-drawer-panel { right: 0; padding: 0 20px 20px; animation: cds-drawer-from-right 350ms cubic-bezier(.4, 0, .2, 1) both; }
@keyframes cds-drawer-from-left { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes cds-drawer-from-right { from { transform: translateX(100%); } to { transform: translateX(0); } }

.cds-drawer.cds-menu-dialog .cds-menu-close {
  position: absolute;
  top: 10px;
  right: 60px;
  width: 45px;
  height: 45px;
  color: #444;
}
.cds-drawer.cds-menu-dialog .cds-menu-close svg { width: 22px; height: 22px; }
.cds-drawer.cds-menu-dialog nav { display: flex; flex-direction: column; padding: 0 45px 70px; }
.cds-drawer.cds-menu-dialog nav a {
  display: block;
  margin: 7px 0 24px;
  padding: 5px 0;
  border: 0;
  color: #444;
  font-size: 20px;
  line-height: 25px;
  text-decoration: none;
}
.cds-drawer.cds-menu-dialog nav a:last-child { margin-bottom: 0; }

.cds-drawer.cds-cart-dialog .cds-dialog-heading {
  position: relative;
  flex: 0 0 auto;
  display: block;
  margin: 0;
  padding: 18px 18px 16px;
  border-bottom: 1px solid #d4d4d4;
  color: #404040;
  text-align: center;
}
.cds-drawer.cds-cart-dialog .cds-dialog-heading h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cds-drawer.cds-cart-dialog .cds-dialog-heading .cds-icon-button {
  position: absolute;
  top: 50%;
  right: -3px;
  width: 26px;
  height: 26px;
  padding: 7px;
  transform: translateY(-50%);
  color: #404040;
}
.cds-drawer.cds-cart-dialog .cds-dialog-heading .cds-icon-button svg { display: block; width: 12px; height: 12px; }
.cds-drawer.cds-cart-dialog [data-cds-cart-items]:not(:empty) { flex: 0 0 auto; min-height: 0; }
.cds-drawer.cds-cart-dialog [data-cds-cart-empty] { margin: 0; padding: 20px 0; color: #444; text-align: center; }
.cds-drawer.cds-cart-dialog .cds-cart-item { gap: 20px; padding: 26px 0 27px; border-color: #d4d4d4; }
.cds-drawer.cds-cart-dialog .cds-cart-item:first-child { padding-top: 26px; }
.cds-drawer.cds-cart-dialog .cds-cart-item-image,
.cds-drawer.cds-cart-dialog .cds-cart-item-image img { flex-basis: 80px; width: 80px; height: 80px; }
.cds-drawer.cds-cart-dialog .cds-cart-item-content > a { color: #404040; font-size: 14px; font-weight: 400; }
.cds-drawer.cds-cart-dialog .cds-cart-item-content p { font-size: 14px; }
.cds-drawer.cds-cart-dialog [data-cds-cart-summary] { flex: 0 0 auto; margin-top: 0; }
.cds-drawer.cds-cart-dialog .cds-cart-total { margin: 0; padding: 21px 0 19px; border-top: 1px solid #d4d4d4; color: #404040; font-size: 15px; font-weight: 400; }
.cds-drawer.cds-cart-dialog .cds-cart-total strong { font-size: 18px; font-weight: 400; }
.cds-drawer.cds-cart-dialog [data-cds-cart-checkout] {
  display: block;
  width: 100%;
  padding: 10px 18px;
  border-color: #256bd4;
  background: #256bd4;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cds-cart-payment-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 16px 0 0; padding: 0; list-style: none; }
.cds-cart-payment-icons li { display: block; margin: 0; padding: 0; list-style: none; }
.cds-cart-payment-icons svg { display: block; width: 38px; height: 24px; }
.cds-local-storefront .cds-inline-pricing-arrow::after { content: none !important; }
.cds-inline-pricing-arrow svg { display: inline-block; width: 14px; height: 14px; margin-left: 8px; vertical-align: -.15em; }

@media (prefers-reduced-motion: reduce) {
  .cds-drawer .cds-drawer-panel { animation-duration: .01ms; }
}
/* The captured count is a sibling overlay, so taps must reach the cart button. */
.js-header-cart-item-count { pointer-events: none; }
