/* Shared order action bar: same light system language as the main tab bar. */
.cart-sticky,
.checkout-sticky {
  bottom: 0;
  padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(82, 29, 45, 0.08);
  background: rgba(251, 249, 250, 0.9);
  backdrop-filter: saturate(155%) blur(24px);
  -webkit-backdrop-filter: saturate(155%) blur(24px);
}

.order-payment-sticky{position:fixed;z-index:31;right:0;bottom:0;left:0;padding:4px 0 calc(4px + env(safe-area-inset-bottom));border-top:1px solid rgba(82,29,45,.08);background:rgba(251,249,250,.9);backdrop-filter:saturate(155%) blur(24px);-webkit-backdrop-filter:saturate(155%) blur(24px)}
.order-payment-sticky-inner{display:grid;grid-template-columns:minmax(0,1fr) 40px minmax(126px,auto);align-items:center;gap:7px;width:min(780px,calc(100% - 24px));min-height:54px;margin:auto;padding:2px 0}
.order-payment-total span,.order-payment-total strong{display:block}.order-payment-total span{color:var(--store-muted);font-size:10px}.order-payment-total strong{color:var(--store-accent);font-size:22px;font-weight:500;line-height:1.05;white-space:nowrap}
.order-payment-chat{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:12px;background:rgba(125,36,59,.055);color:var(--store-accent);cursor:pointer}.order-payment-chat svg{width:20px;height:20px}
.order-payment-action{display:grid;place-items:center;min-height:44px;padding:9px 17px;border:0;border-radius:12px;background:var(--store-accent);color:#fff;font:inherit;font-size:13px;font-weight:650;text-decoration:none;cursor:pointer}.order-payment-action:disabled{opacity:.62}
.customer-order-detail.has-payment-sticky{padding-bottom:86px}

.cart-sticky-inner,
.checkout-sticky-inner {
  min-height: 54px;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.cart-sticky-inner {
  grid-template-columns: minmax(0, 1fr) 40px minmax(126px, auto);
  gap: 7px;
  width: min(780px, calc(100% - 24px));
}

.checkout-sticky-inner {
  grid-template-columns: minmax(0, 1fr) minmax(132px, auto);
  gap: 8px;
  width: min(728px, calc(100% - 24px));
}

.cart-total strong,
.checkout-sticky strong {
  margin-top: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.05;
}

.cart-total small,
.checkout-sticky small {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 500;
}

.cart-chat {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(125, 36, 59, 0.055);
}

.cart-chat svg {
  width: 20px;
  height: 20px;
}

.cart-checkout,
.checkout-sticky button,
.checkout-sticky-inner > button:last-child {
  min-height: 44px;
  border-radius: 12px;
  box-shadow: none;
  font-size: 13px;
}

@media (max-width: 600px) {
  .cart-sticky,
  .checkout-sticky {
    padding-right: 0;
    padding-left: 0;
  }
  .order-payment-sticky{padding-right:0;padding-left:0}.order-payment-sticky-inner{grid-template-columns:minmax(0,1fr) 40px minmax(118px,auto);min-height:52px}.order-payment-total strong{font-size:19px}.customer-order-detail.has-payment-sticky{padding-bottom:82px}

  .cart-sticky-inner,
  .checkout-sticky-inner {
    min-height: 52px;
    padding-left: 0;
  }

  .cart-sticky-inner {
    grid-template-columns: minmax(0, 1fr) 40px minmax(118px, auto);
  }

  .checkout-sticky-inner {
    grid-template-columns: minmax(0, 1fr) minmax(124px, auto);
  }

  .cart-total strong,
  .checkout-sticky strong {
    font-size: 19px;
  }
}

@media (max-width: 370px) {
  .cart-sticky-inner {
    grid-template-columns: minmax(0, 1fr) 38px 108px;
  }

  .checkout-sticky-inner {
    grid-template-columns: minmax(0, 1fr) 112px;
  }
  .order-payment-sticky-inner{grid-template-columns:minmax(0,1fr) 38px 108px;gap:6px}.order-payment-action{padding-right:10px;padding-left:10px}
}

.order-sticky-summary{display:flex;align-items:center;gap:12px;min-width:0}
.cart-total,.checkout-sticky-total{flex:0 0 auto}
.order-sticky-cashback{display:grid;align-content:center;min-height:40px;padding-left:12px;border-left:1px solid rgba(82,29,45,.1)}
.order-sticky-cashback strong{display:block!important;margin:0!important;color:#2f7d4c!important;font-size:22px!important;font-weight:500!important;line-height:1.05!important;white-space:nowrap}
.order-sticky-cashback span{display:block!important;margin:0 0 2px;color:var(--store-muted)!important;font-size:10px!important;font-weight:500;line-height:1}
.cart-total strong,.checkout-sticky-total strong{font-size:22px}
@media(max-width:430px){
  .order-sticky-summary{gap:9px}
  .order-sticky-cashback{padding-left:9px}
  .order-sticky-cashback strong{font-size:20px!important}
  .cart-total strong,.checkout-sticky-total strong{font-size:20px}
}

/* Cart totals must remain legible on iOS, including narrow devices. */
.page-bag .cart-total span,.page-bag .order-sticky-cashback span{font-size:11px!important}
.page-bag .cart-total strong,.page-bag .order-sticky-cashback strong{font-size:22px!important}
.page-bag .cart-checkout{font-size:14px}
@media(max-width:430px){
  .page-bag .cart-total strong,.page-bag .order-sticky-cashback strong{font-size:21px!important}
}
