.floating-cart {
  right: 0;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 16px 0 0 16px !important;
  justify-content: center;
  box-shadow: 0 8px 22px #063d2c55 !important;
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.floating-cart.moved { right: auto; bottom: auto; transform: none; border-radius: 16px !important; }
.floating-cart:active { cursor: grabbing; }
.floating-cart > span {
  font-size: 22px;
}
.floating-cart i {
  position: absolute;
  right: 3px;
  top: -7px;
  min-width: 21px !important;
  width: auto;
  height: 21px !important;
  padding: 0 5px;
  font-size: 11px !important;
  border: 2px solid #fff;
}
.same-shop-nudge {
  display: none !important;
}
.cart-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid #e4eae6;
}
.cart-emoji {
  width: 38px;
  height: 38px;
  background: #eff5f1;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.cart-item > div:nth-child(2) b,
.cart-item > div:nth-child(2) small {
  display: block;
}
.cart-item > div:nth-child(2) small {
  color: #6d7972;
  margin-top: 3px;
}
.cart-edit {
  display: flex;
  align-items: center;
  gap: 7px;
}
.cart-edit button {
  border: 1px solid #cbd8d1;
  background: #f1f6f3;
  color: #064c35;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  font-weight: 900;
}
.cart-item > b {
  grid-column: 2;
  font-size: 13px;
}
.cart-remove {
  grid-column: 3;
  border: 0;
  background: transparent;
  color: #b32638;
  font-size: 12px;
  font-weight: 800;
}
.continue-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #eaf7d4;
  border: 1px solid #c8e69b;
  color: #244c35;
  border-radius: 14px;
  padding: 13px;
  margin: 13px 0;
}
.continue-banner b,
.continue-banner span {
  display: block;
}
.continue-banner span {
  font-size: 12px;
  margin-top: 4px;
}
.continue-banner button {
  border: 0;
  background: #064c35;
  color: #fff;
  border-radius: 9px;
  padding: 9px 10px;
  font-weight: 800;
  white-space: nowrap;
}
@media (max-width: 430px) {
  .continue-banner {
    align-items: flex-start;
    flex-direction: column;
  }
  .continue-banner button {
    width: 100%;
  }
}
.basket-delivery {
  background: #edf8f2;
  border: 1px solid #b9dac9;
  border-radius: 16px;
  margin: 18px 0 12px;
  padding: 15px;
}
.basket-delivery small,
.basket-delivery b,
.basket-delivery strong {
  display: block;
}
.basket-delivery small {
  color: #08764e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
}
.basket-delivery b {
  font-size: 16px;
  margin-top: 6px;
}
.basket-delivery p {
  color: #5e6d65;
  font-size: 14px;
  line-height: 1.4;
  margin: 7px 0;
}
.basket-delivery strong {
  font-size: 18px;
  margin-bottom: 10px;
}
.basket-delivery button {
  background: #fff;
  border: 1px solid #08764e;
  border-radius: 10px;
  color: #07583d;
  font-weight: 900;
  padding: 10px 12px;
  width: 100%;
}
.shop-change-warning {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 29, 22, 0.28);
  display: grid;
  place-items: center;
  padding: 16px;
}
.shop-change-warning > div {
  width: min(340px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 16px 42px rgba(0, 21, 13, 0.28);
}
.shop-change-warning h2 {
  font-size: 20px;
  margin: 0 0 7px;
}
.shop-change-warning p {
  color: #4f6258;
  line-height: 1.4;
  margin: 0 0 10px;
}
.shop-change-warning small {
  display: block;
  color: #275335;
  font-size: 13px;
  font-weight: 700;
}
.shop-change-warning > div > div {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
  margin-top: 14px;
}
.shop-change-warning button {
  min-height: 44px;
  border: 1px solid #cad8d0;
  border-radius: 11px;
  background: #fff;
  color: #294238;
  font-size: 14px;
  font-weight: 900;
}
.shop-change-warning button.primary {
  border: 0;
  background: #07583d;
  color: #fff;
}
.delivery-shop-breakdown {
  list-style: none;
  padding: 8px 0;
  margin: 8px 0;
  border-block: 1px solid #dce8e1;
}
.delivery-shop-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 13px;
}
.delivery-discount {
  display: inline-block;
  background: #e7f8cd;
  color: #07583d;
  border-radius: 99px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
  margin-right: 7px;
}
#basketDelivery del {
  color: #77847d;
  font-size: 12px;
}

/* Keep the basket above app navigation and its action reachable on short screens. */
.drawer.open {
  z-index: 100;
}
.drawer.open .panel {
  position: relative;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
  padding-top: 42px;
  padding-bottom: calc(30px + env(safe-area-inset-bottom));
}
.drawer.open .panel > .close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  padding: 0;
  float: none;
  display: grid;
  place-items: center;
}
.drawer.open .panel > h2 {
  margin: 34px 0 18px;
}
.drawer.open .panel .checkoutbtn {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  min-height: 54px;
  margin: 18px 0 0;
  touch-action: manipulation;
  pointer-events: auto;
  box-shadow: 0 8px 22px rgba(7, 88, 61, 0.2);
}
@media (max-width: 520px) {
  .drawer.open .panel {
    width: 100%;
    padding: 42px 18px calc(30px + env(safe-area-inset-bottom));
  }
}
