/*
 * Logged-in customer cart in the cart drawer. Values from React
 * DrawerCheckout.js, DrawerCheckoutWidgets/{OrderCustomerStoreInfoWidget,
 * CartItemsList, CartSummaryWidget, CheckoutWidget, CompletedCartWidget,
 * CartProductListWidget}.js and components/DrawerCheckout/AddCouponWidget.js,
 * checked against the running React app (resource
 * react-customer-cart-drawer-ui-measurements).
 */
.cart [hidden], .cart-info[hidden], .cart-info [hidden] { display: none !important; }
.cart p, .cart h2, .cart h3, .cart h6 { margin: 0; }
.cart .icon { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }
.cart button { font-family: var(--mui-font); }

/* ---------- OrderCustomerStoreInfoWidget ---------- */
.cart-info { padding-top: 15px; width: calc((100% + 24px) / 2 - 24px); }
.cart-info__row { font-size: 1rem; font-weight: 600; line-height: 1.75rem; }
.cart-info__row + .cart-info__row { margin-top: 8px; }
.cart-info__value { font-size: 0.875rem; font-weight: 400; line-height: 1.57; cursor: pointer; }
/* Customer Orders link (drawer-cart.html.twig), styled as the cashier header's. */
.cart-orders { padding-top: 8px; }
.cart-info[hidden] + .cart-orders { padding-top: 15px; }
.cart-orders .spinner { width: 1.2rem; height: 1.2rem; margin: 0; box-sizing: border-box; color: #8c8c8c; }
.cart-orders.is-busy .cashier-info__icon { display: none; }

/* ---------- Empty cart and "Create new order" ---------- */
.cart-empty { margin: 0 0 40px 10px; text-align: center; }
.cart-empty__icon { font-size: 2.1875rem; color: #e67d04; margin-right: 10px; }
.cart-empty__title { font-size: 1.5rem; font-weight: 600; line-height: 1.33; }
.cart-new { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-bottom: 20px; }
.cart-new__button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 5px 5px;
  border: 1px solid;
  border-radius: 4px;
  background: transparent;
  color: white;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.75;
  text-transform: capitalize;
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}
.cart-new__button:hover { background-color: rgba(250, 173, 20, 0.04); }

/* ---------- Cart Summary box (CartItemsList) ---------- */
.cart-summary {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #32beb9;
  border-radius: 4px;
  background-color: rgba(50, 190, 185, 0.1);
  box-shadow: rgba(0, 0, 0, 0.1) 0 2px 4px;
}
.cart-summary__title { margin-bottom: 8px !important; color: #32beb9; font-size: 0.875rem; font-weight: 600; line-height: 1.57; }
.cart-summary__row { display: flex; justify-content: space-between; align-items: center; }
.cart-summary__counts { display: flex; gap: 24px; }
.cart-summary__pair { display: flex; align-items: center; gap: 4px; }
.cart-summary__label, .cart-summary__value { font-size: 0.9rem; line-height: 1.66; }
.cart-summary__label { color: #57c4c1; }
.cart-summary__value { font-weight: 600; }
.cart-summary__amount { color: #32beb9; font-size: 1.1rem; font-weight: 600; line-height: 1.57; }

/* ---------- Cart item rows ---------- */
.cart-item {
  margin-bottom: 16px;
  border: 1px solid #323131;
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, 0.2) 1px 1px 0 0, rgba(0, 0, 0, 0.14) 0 2px 0 0, rgba(0, 0, 0, 0.12) 0 0 0 0;
}
.cart-item__main { display: flex; align-items: center; padding: 8px; }
.cart-item__top { display: flex; align-items: center; width: 100%; }
.cart-item__delete-box { display: flex; align-items: center; margin-right: 16px; }
.cart-item__delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 77, 79, 0.5);
  border-radius: 4px;
  background: transparent;
  color: #ff4d4f;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}
.cart-item__delete:hover { border-color: #ff4d4f; background-color: rgba(255, 77, 79, 0.04); }
.cart-item__image { display: block; box-sizing: border-box; width: 90px; height: 90px; margin-right: 16px; flex-shrink: 0; border: 1px solid #272727; border-radius: 25%; background: #000 url('../images/kure_lm_default_product_image_thumb.jpg') center / cover no-repeat; cursor: pointer; }
.cart-item__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-sizing: border-box;
  border: 1px solid #272727;
  border-radius: 25%;
}
.cart-item__info { flex: 1; min-width: 0; margin-right: 16px; }
.cart-item__title { margin-bottom: 4px !important; font-size: 0.75rem; font-weight: 600; line-height: 1.66; }
.cart-item__exp { display: flex; align-items: center; gap: 4px; }
.cart-item__exp .icon, .cart-item__fact .icon { font-size: 16px; color: #57c4c1; }
.cart-item__caption { color: #8c8c8c; font-size: 0.75rem; line-height: 1.66; }
.cart-item__controls { display: flex; align-items: center; }
.cart-qty { display: flex; align-items: center; margin-right: 16px; }
.cart-qty--mobile { margin-right: 0; }
.cart-qty__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background-color: #32beb9;
  color: #f7f7f7;
  font-size: 0.8125rem;
  cursor: pointer;
  box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}
.cart-item__delete .icon, .cart-qty__button .icon { font-size: 1.25rem; }
.cart-qty__button:hover { background-color: #59e7e3; }
.cart-qty__button:disabled { background-color: #272727; color: #57c4c1; opacity: 0.6; box-shadow: none; cursor: default; }
.cart-qty__value { min-width: 40px; margin: 0 8px; text-align: center; font-size: 0.75rem; line-height: 1.66; }
.cart-item__line { min-width: 60px; text-align: right; font-size: 0.75rem; font-weight: 600; line-height: 1.66; }
.cart-item__mobile { display: none; }
.cart-item__details { padding: 8px; border-top: 1px solid #323131; background-color: rgba(50, 190, 185, 0.05); }
.cart-item__facts { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.cart-item__fact { display: flex; align-items: center; gap: 4px; }
.cart-item__fact--uid { flex: 1 1 auto; min-width: 0; }
.cart-item__fact--uid .cart-item__caption { word-break: break-all; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 588px) {
  .cart-summary__row { flex-direction: column; align-items: stretch; gap: 8px; }
  .cart-summary__counts { justify-content: space-around; gap: 16px; }
  .cart-summary__total { justify-content: center; padding-top: 4px; border-top: 1px solid rgba(87, 196, 193, 0.3); }
  .cart-item__main { flex-direction: column; align-items: stretch; }
  .cart-item__top { margin-bottom: 8px; }
  .cart-item__delete-box, .cart-item__controls { display: none; }
  .cart-item__image { width: 70px; height: 70px; margin-right: 12px; }
  .cart-item__info { margin-right: 0; }
  .cart-item__title { font-size: 0.875rem; line-height: 1.3; }
  .cart-item__mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .cart-item__mobile-right { display: flex; align-items: center; gap: 8px; }
  .cart-item__mobile .cart-item__line { min-width: 0; text-align: left; }
  .cart-item__facts { gap: 8px; }
}

/* Purchase-limit messages */
.cart-limits { margin-top: 10px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.cart-limit { padding: 10px; border-radius: 5px; background-color: hsl(0deg 76% 60% / 28%); border: 1px solid hsl(0deg 76% 60% / 50%); }
.cart-limit--warning { background-color: hsla(60 76.5% 60% / 0.3); border-color: hsla(60 76.5% 60% / 0.3); }
.cart-limit__text { font-size: 0.875rem; line-height: 1.57; }
.cart-limit__dismiss {
  margin-top: 10px;
  min-width: 64px;
  padding: 6px 16px;
  border: 1px solid hsl(0deg 76% 60% / 50%);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.75;
  text-transform: capitalize;
  cursor: pointer;
}
.cart-limit--warning .cart-limit__dismiss { border-color: hsla(60 76.5% 60% / 0.3); }

/* ---------- CartSummaryWidget rows (OneSummaryItem: Grid container spacing 2) ---------- */
.cart-totals { padding-top: 18px; }
.cart-totals__block { padding-left: 10px; }
.sum-row {
  display: flex;
  justify-content: space-between;
  width: calc(100% + 16px);
  margin: -16px 0 0 -16px;
  padding: 5px 0;
  font-size: 0.875rem;
  line-height: 1.57;
}
.sum-row--adjustment { padding: 3px 0; }
.sum-row--final { padding: 0; color: #32beb9; font-size: 16px; }
.sum-row__title, .sum-row__value { padding: 16px 0 0 16px; box-sizing: border-box; }
.sum-row__title { flex: 0 0 79.1667%; max-width: 79.1667%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sum-row__value { flex: 0 0 20.8333%; max-width: 20.8333%; text-align: right; }
.cart-totals__divider { margin: 0; border: 0; border-bottom: 1px solid gray; }
.cart-totals__final { margin-top: 16px; }

/* ---------- CheckoutWidget cards ---------- */
.cart-checkout-wrap { padding-bottom: 33px; }
.cart-checkout { margin: 20px 0 30px; }
.checkout-card {
  margin-bottom: 16px;
  border-radius: 10px;
  background-color: #333;
  color: #fff;
  box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
}
.checkout-card__content { padding: 20px; }
.checkout-card__head { display: flex; align-items: center; justify-content: space-between; }
.checkout-card__title { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.checkout-card__expand {
  display: inline-flex;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #32beb9;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s;
}
.checkout-card__expand.is-open { transform: rotate(180deg); }
.checkout-card__body { margin-top: 16px; }
.checkout-card--minimal { margin-bottom: 8px; border-radius: 0; background: transparent; box-shadow: none; }
.checkout-card--minimal .checkout-card__content { padding: 8px 0; }
.checkout-card--minimal .checkout-card__head { justify-content: flex-start; }
.checkout-card--minimal .checkout-card__title { color: #32beb9; font-size: 0.9rem; font-weight: 400; line-height: 1.57; }
.checkout-card--minimal .checkout-card__body { margin-top: 8px; }
.checkout-complete {
  display: inline-flex;
  vertical-align: middle;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 64px;
  margin-top: 24px;
  padding: 5px 15px;
  border: 1px solid #fff;
  border-radius: 4px;
  background: #32beb9;
  color: white;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.75;
  text-transform: capitalize;
  cursor: pointer;
}
.checkout-complete:disabled { background: #f0f0f0; color: #d9d9d9; border-color: rgba(0, 0, 0, 0.12); cursor: default; }

/* Void order, next to "Create new order" (employees, needs_processing orders; not in React). */
.checkout-void__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 64px;
  padding: 5px 15px;
  border: 1px solid #d9534f;
  border-radius: 4px;
  background: transparent;
  color: #ff7875;
  font-size: 0.875rem;
  line-height: 1.75;
  cursor: pointer;
}
.checkout-void__button--confirm { background: #d32f2f; border-color: #d32f2f; color: #fff; }
.checkout-void__button[aria-busy="true"] .spinner,
.cart-reopen__button[aria-busy="true"] .spinner { width: 18px; height: 18px; margin: 0; }
.checkout-void__confirm { flex-basis: 100%; }
.checkout-void__text { margin: 0 0 12px; font-size: 0.875rem; line-height: 1.57; }
.checkout-void__actions { display: flex; gap: 12px; justify-content: flex-end; }
.checkout-void__actions .checkout-void__button[data-cart-void-cancel] { border-color: #888; color: #fff; }

/* AddCouponWidget */
.coupon { position: relative; margin-top: 10px; }
.coupon__field {
  display: flex;
  align-items: center;
  width: 100%;
  padding-right: 14px;
  border: 1px solid #414242;
  border-radius: 4px;
  background: #414242;
  color: #fff;
}
.coupon__field:hover, .coupon__field:focus-within { border-color: #32beb9; }
.coupon__input {
  flex: 1;
  min-width: 0;
  height: 1.4375em;
  padding: 10.5px 0 10.5px 14px;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  box-sizing: content-box;
}
.coupon__input:read-only { cursor: default; }
.coupon__actions { display: flex; align-items: center; margin-left: 8px; }
.coupon__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* With the field's 14 px right padding this leaves the 22 px X 10 px from the border, matching the
     10 px above and below it. */
  margin-right: -4px;
  padding: 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #32beb9;
  font-size: 1.5rem;
  cursor: pointer;
}
.coupon__button--apply { margin-right: 8px; }
.coupon__button:disabled { opacity: 0.38; cursor: default; }
.coupon__suggestions {
  position: absolute;
  /* Above the next cards' z-index 1 field labels (.mf__label). */
  z-index: 2;
  width: 100%;
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #32beb9;
  background: #414242;
  color: #fff;
  box-sizing: border-box;
}
.coupon__suggestion { padding: 8px; border-bottom: 1px solid #32beb9; cursor: pointer; }
.coupon__error { text-align: right; color: #ff4d4f; }

/* ---------- CompletedCartWidget ---------- */
@keyframes cart-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.cart-status {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #444;
  border-radius: 8px;
  background-color: #272727;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.cart-status__spinner { width: 20px; height: 20px; border: 2px solid #444; border-top: 2px solid #32beb9; border-radius: 50%; animation: cart-spin 1s linear infinite; box-sizing: border-box; }
.cart-status__text { font-size: 0.875rem; font-weight: 600; line-height: 1.57; }
.cart-status__text--pending { color: #f0ad4e; }
.cart-status__text--processing { color: #32beb9; }
.cart-status__text--success { color: #5cb85c; }
.cart-status__text--error { color: #d9534f; }
.cart-status__retry { color: #32beb9; text-decoration: underline; cursor: pointer; }
.cart-status__retry:hover { color: #4fb; }
.cart-done__facts { margin-top: 20px; }
/* Voided order: note and Reopen order left of "Create new order" (employees; not in React). */
.cart-reopen { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; }
.cart-reopen[hidden] { display: none; }
.cart-reopen__text { margin: 0; color: #ff7875; font-size: 0.875rem; font-weight: 600; line-height: 1.57; }
.cart-reopen__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 64px;
  padding: 5px 5px;
  border: 1px solid #32beb9;
  border-radius: 4px;
  background: #32beb9;
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.75;
  text-transform: capitalize;
  cursor: pointer;
}
.cart-reopen__button:disabled { cursor: default; }
.cart-done__fact { font-size: 16px; font-weight: 600; line-height: 1.27; }
.cart-done__heading { margin: 20px 0 5px; font-size: 20px; }
.cart-done__products { margin-left: 10px; }
.cart-done__summary { margin-left: 20px; }
.cart-done__coupon { margin-left: 10px !important; font-size: 0.875rem; line-height: 1.57; }
@media (min-width: 768px) {
  .cart-new__button,
  .cart-reopen__button { padding: 5px 15px; }
  .cart-done__fact { font-size: 20px; }
}

/* CartProductListWidget (read-only list of a placed order) */
.done-item { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 8px; }
.done-item__image { flex-shrink: 0; width: 50px; height: 50px; }
.done-item__image img { display: block; width: 100%; height: 100%; object-fit: cover; box-sizing: border-box; border: 1px solid; border-radius: 50%; background: #f7f7f7; }
.done-item__center { flex-grow: 1; }
.done-item__title { font-size: 0.875rem; font-weight: 600; line-height: 1.2; }
.done-item__link {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 34px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.done-item__link:hover { text-decoration: underline; }
.done-item__ids { margin-top: 16px; }
.done-item__uid, .done-item__exp { font-size: 0.875rem; line-height: 1.2; }
.done-item__right { display: flex; flex-direction: row; align-items: flex-end; text-align: right; gap: 8px; }
.done-item__qty, .done-item__price { font-size: 0.875rem; line-height: 1.57; }
@media (min-width: 489px) {
  .done-item { flex-direction: row; }
  .done-item__image { width: 65px; height: 65px; }
  .done-item__right { flex-direction: column; }
}

/* ---------- Employee toolbar (CartButtonsWidget, DrawerProductAddWidget) ---------- */
.cart-tools__search { margin-bottom: 15px; }
.add-search {
  display: flex;
  flex-grow: 1;
  padding: 0 10px;
  border-radius: 5px;
  background-color: #414242;
}
/* The 30px icon cells shrink with the full-width input, as in MUI. */
.add-search__icon {
  width: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
}
/* The X keeps its 22 px (.x-btn is flex: none): the input takes the remaining width and the X is
   centered vertically, 8 px from the text and 10 px (the field padding) from the right edge. */
.add-search__clear { margin-left: 8px; align-self: center; cursor: pointer; }
.add-search__input {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  height: 30px; /* MUI: 17px content + 13px padding, border-box like the MUI Input root so the icon cells shrink the same */
  padding: 6px 12px 7px;
  border: 0;
  border-radius: 5px;
  outline: none;
  background-color: #414242;
  color: #cecece;
  font-family: var(--mui-font);
  font-size: 0.75rem;
  line-height: 1.4375em;
  text-transform: uppercase;
  box-sizing: border-box;
}
.add-search__input::placeholder { color: currentColor; opacity: 0.42; }
.add-results {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
  width: 400px;
  max-width: 80vw;
  max-height: 90vh;
  overflow-y: auto;
  margin-top: 5px;
  margin-left: 1em;
  padding: 0;
  border-radius: 10px;
  background-color: #414242;
  color: #f7f7f7;
}
.add-result {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 16px;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
}
.add-result:hover { background-color: #32beb9; border-radius: 10px; }
.add-result__image { width: 80px; flex-shrink: 1; }
.add-result__image img { display: block; width: 100%; height: 100%; margin-top: 8px; object-fit: cover; }
.add-result__image img.is-default { object-fit: contain; }
/* MUI ListItemText with a secondary line: 6px vertical margin. */
.add-result__text { flex: 2; min-width: 0; margin: 6px 0; font-family: var(--mui-font); }
.add-result__title { display: block; margin: 0; font-size: 13px; line-height: 1.57; color: #f7f7f7; }
.add-result__rest { font-size: 18px; font-weight: bolder; }
.add-result__facts { margin: 0; font-size: 13px; line-height: 1.66; color: #f7f7f7; }
.add-result__facts > * { line-height: 1.57; }
.add-result__facts b { font-weight: bolder; }
.add-results .pager button { font-weight: 400; text-transform: capitalize; }
.add-results .pager button:disabled { color: #d9d9d9; }
.cart-tools__icons {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  padding-bottom: 53px;
}
/* Product search add result, beside the icons in the row's fixed 40 px height (two lines at most). */
.cart-tools__status {
  flex: 1;
  min-width: 0;
  max-height: 40px;
  margin: 0;
  align-self: center;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: #32beb9;
  font-size: 0.8125rem;
  line-height: 20px;
  opacity: 0;
  transition: opacity var(--motion-out) var(--motion-ease-in);
}
.cart-tools__status.is-shown { opacity: 1; transition: opacity var(--motion-in) var(--motion-ease-out); }
.cart-tools__status--error { color: #ff6f61; }
.cart-tools__icon {
  display: flex;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.cart-tools__icon .icon { width: 40px; height: 40px; }
.cart-tools__icon--add { color: #32beb9; }
.cart-tools__icon--add:hover { color: #4fb; }
.cart-tools__icon--remove { color: rgb(255 144 77 / 41%); }
.cart-tools__icon--remove:hover { color: rgb(255 144 77); }
.cart-tools__icon--id { color: #1976d2; }
.cart-tools__icon--id:hover { color: #2196f3; }
/* No native camera (browser): the scan controls stay visible but greyed out. */
.cart-tools__icon[aria-disabled="true"],
.cart-tools__icon[aria-disabled="true"]:hover { color: rgb(255 255 255 / 26%); cursor: not-allowed; }
@media (min-width: 489px) {
  .add-search__input { height: 46px; font-size: 1rem; }
  .add-result__image { width: 100px; }
  .add-result__title, .add-result__facts { font-size: 16px; }
}

/* ---------- Scan modal (ProductQRCaptureModal, CustomAlert) ---------- */
/* MUI Modal with pointer-events none: touches reach the cart behind it.
   From 600px it spans the cart panel's width (.cart-paper__inner) at the right edge. */
.qr-modal { position: fixed; inset: 0; z-index: 1300; pointer-events: none; }
@media (min-width: 600px) {
  .qr-modal { left: auto; width: min(98vw, 600px); }
}
.qr-modal[hidden] { display: none; }
/* MUI Modal scroll lock. */
body:has(.qr-modal:not([hidden])) { overflow: hidden; }
.qr-modal__backdrop { position: fixed; inset: 0; z-index: -1; background-color: rgba(0, 0, 0, 0.5); }
/* Transparent: the native camera preview sits behind/in front of this panel. */
.qr-modal__panel {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 93%;
  display: flex;
  flex-direction: column;
  margin-top: 1em;
  padding: 0;
  border: 2px solid #000;
  border-radius: 7px;
  background-color: transparent;
  box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
}
.qr-modal.is-removing .qr-modal__panel { border-color: red; }
.qr-modal__head {
  display: flex;
  justify-content: space-between;
  padding-top: 5px;
  background-color: black;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}
.qr-modal__title { padding-left: 10px; color: green; }
.qr-modal__title b { font-weight: 600; }
.qr-modal.is-removing .qr-modal__title { color: red; }
.qr-modal__close-wrap { padding-right: 10px; }
.qr-modal__close { display: inline-block; padding: 0; border: 0; background: none; color: gray; font: inherit; cursor: pointer; }
.qr-modal__close:hover { color: white; }
.qr-modal__close .icon { display: inline-block; width: 30px; height: 30px; }
.qr-modal__body { display: flex; flex-direction: column; flex: 0; }
.qr-modal__camera { position: relative; width: 100%; max-height: 360px; }
.qr-modal__preview { width: 100%; height: 166px; background-color: transparent; }
.qr-modal__controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background-color: black;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}
.qr-modal__refocus-row { display: flex; justify-content: center; align-items: center; color: white; }
/* MUI contained small Button with the theme's MuiButton overrides. */
.qr-refocus {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 4px 10px;
  border: 0;
  border-radius: 4px;
  background-color: #32BEB9;
  color: #fff;
  font-family: var(--mui-font);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.75;
  text-transform: capitalize;
  cursor: pointer;
}
.qr-refocus:hover { background-color: #44ffbb; }
.qr-refocus:disabled { background-color: #32BEB9; opacity: 0.7; cursor: default; }
.qr-refocus__icon { display: flex; margin-right: 8px; margin-left: -2px; }
.qr-refocus__icon .icon { width: 18px; height: 18px; }
.qr-refocus .cart-progress { display: none; width: 20px; height: 20px; }
.qr-refocus:disabled .icon { display: none; }
.qr-refocus:disabled .cart-progress { display: inline-block; }
.cart-progress { color: inherit; animation: cart-progress-rotate 1.4s linear infinite; }
.cart-progress svg { display: block; width: 100%; height: 100%; }
.cart-progress circle { stroke: currentColor; stroke-dasharray: 80px, 200px; stroke-dashoffset: 0; animation: cart-progress-dash 1.4s ease-in-out infinite; }
@keyframes cart-progress-rotate { 100% { transform: rotate(360deg); } }
@keyframes cart-progress-dash {
  0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -15px; }
  100% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; }
}
.custom-alert {
  position: relative;
  width: 100%;
  margin: 10px 0;
  padding: 10px 20px;
  border-radius: 4px;
  text-align: center;
  animation: custom-alert-in 0.3s ease-out;
}
.custom-alert[hidden] { display: none; opacity: 0; }
/* Eases out (policy native-ui-motion-eased-show-hide-v2); custom-alert-in eases it in. */
.custom-alert { transition: opacity var(--motion-out) var(--motion-ease-in), display var(--motion-out) allow-discrete; }
.custom-alert-success { background-color: #4caf50; color: white; }
.custom-alert-warning { background-color: #f48236; color: white; }
.custom-alert-error { background-color: #f44336; color: white; }
.custom-alert-flash { animation: custom-alert-flash 0.4s ease-in-out !important; }
.alert-message { margin-bottom: 4px; }
.alert-countdown { position: absolute; bottom: 4px; left: 8px; font-size: 0.75em; font-weight: bold; opacity: 0.7; }
@keyframes custom-alert-in {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes custom-alert-flash {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 255, 255, 0.7); }
  50% { transform: scale(1.50); box-shadow: 0 0 15px rgba(255, 255, 255, 0.9); }
}

/* ---------- Code-128 package panel (MetrcPackageInfoPanel, themes/darkPanel.js) ---------- */

/* A matched package expands the scan modal to fill its area (full screen below 600px, the cart panel's width above); the camera stays on top. */
.qr-modal.has-package .qr-modal__panel {
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  height: 100%;
  margin-top: 0;
  border-radius: 0;
  background-color: black;
}
.qr-modal.has-package .qr-modal__body { flex: 1; min-height: 0; }
.qr-modal.has-package .qr-modal__camera { flex: 0 0 auto; }
.qr-modal.has-package .qr-modal__refocus-row { display: none; }
.qr-modal__package { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.qr-modal__package[hidden] { display: none; }
.pkg-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 10px;
  padding: 10px 12px;
  border: 1px solid #2e2e2e;
  border-radius: 8px;
  background-color: #161616;
}
.pkg-panel p { margin: 0; }
.pkg-panel__head { display: flex; align-items: flex-start; gap: 8px; }
.pkg-panel__icon { flex-shrink: 0; width: 20px; height: 20px; font-size: 1.25rem; margin-top: 2px; color: #32beb9; }
.pkg-panel__heading { flex: 1; min-width: 0; }
.pkg-panel__product {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}
.pkg-panel__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: #9aa0a0; font-size: 0.75rem; }
.pkg-panel__place { flex-shrink: 0; width: 13px; height: 13px; }
.pkg-section-label {
  margin: 0 0 6px !important;
  color: #32beb9;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pkg-details { margin-top: 12px; padding-top: 10px; border-top: 1px solid #2e2e2e; }
.pkg-details__label {
  margin: 0 0 4px !important;
  color: #9aa0a0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pkg-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid #2e2e2e; }
.pkg-row__label { flex-shrink: 0; color: #9aa0a0; font-size: 0.8rem; }
.pkg-row__value { color: #e0e0e0; font-size: 0.8rem; text-align: right; word-break: break-all; }

/* ---------- RetailConversionForm ---------- */

.rc { margin-top: 10px; }
.rc[hidden] { display: none; }
.rc__edit-note { color: #8fb8b5; font-size: 0.75rem; }
.rc__details { margin-top: 12px; }
.rc__loading { display: flex; align-items: center; gap: 8px; min-height: 36px; color: #8fb8b5; font-size: 0.8rem; }
.rc__loading[hidden], .rc__fields[hidden] { display: none; }
.rc__loading .cart-progress { display: inline-block; width: 16px; height: 16px; }
.rc__details-error { min-height: 36px; color: #ff6b6b; font-size: 0.75rem; }
.rc__row { display: flex; flex-wrap: nowrap; gap: 8px; }
.rc__row--wrap { flex-wrap: wrap; gap: 0 8px; }
.rc__cell { min-width: 0; }
.rc__cell[hidden] { display: none; }
.rc__pair { display: flex; gap: 8px; }
.rc__summary { margin-bottom: 6px !important; color: #ff6b6b; font-size: 0.75rem; }
/* MUI contained Button with darkPrimaryButtonSx. */
.rc__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 64px;
  margin-top: 8px;
  padding: 6px 16px;
  border: 0;
  border-radius: 4px;
  background-color: #32beb9;
  color: #0b0b0b;
  font-family: var(--mui-font);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.75;
  text-transform: capitalize;
  box-shadow: none;
  cursor: pointer;
}
.rc__submit:hover { background-color: #45ccc7; color: #0b0b0b; }
.rc__submit:disabled { background-color: #262b2a; color: #8a9492; cursor: default; }
.rc__spinner { display: none; width: 16px; height: 16px; margin-right: 8px; margin-left: -4px; }
.rc__submit.is-submitting .rc__spinner { display: inline-block; }
.rc__result-slot { min-height: 36px; margin-top: 6px; }
.rc__result { font-size: 0.75rem; color: #44ffbb; }
.rc__result[data-ok="false"] { color: #ff6b6b; }

/* ---------- Outlined TextField, size small, darkFieldSx (VariationDetailsFields) ---------- */

.mf { position: relative; display: inline-flex; flex-direction: column; min-width: 0; width: 100%; vertical-align: top; }
.mf--inline { width: auto; }
.mf--gap { margin-bottom: 12px; }
.mf[hidden] { display: none; }
.mf__label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  max-width: calc(100% - 24px);
  overflow: hidden;
  color: #8fb8b5;
  font-size: 0.875rem;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
  transform: translate(14px, 9px) scale(1);
  transform-origin: top left;
  pointer-events: none;
  transition: color 200ms cubic-bezier(0, 0, 0.2, 1) 0ms, transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms, max-width 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;
}
.mf:focus-within .mf__label, .mf.is-filled .mf__label {
  max-width: calc(133% - 32px);
  margin-left: -6px;
  padding: 0 8px;
  line-height: 1.4375em;
  transform: translate(14px, -9px) scale(0.75);
  pointer-events: auto;
}
.mf:focus-within .mf__label { color: #32beb9; }
.mf__root {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.22);
  font-size: 0.875rem;
  line-height: 1.4375em;
  cursor: text;
}
.mf__input {
  display: block;
  box-sizing: content-box;
  width: 100%;
  min-width: 0;
  height: 1.4375em;
  margin: 0;
  padding: 7.5px 8px 7.5px 12px;
  border: 0;
  background: none;
  color: #d4dcdb;
  font: inherit;
  letter-spacing: inherit;
  outline: 0;
  -webkit-tap-highlight-color: transparent;
}
.mf__outline {
  position: absolute;
  inset: -5px 0 0;
  min-width: 0;
  margin: 0;
  padding: 0 8px;
  overflow: hidden;
  border: 1px solid #3f4d4b;
  border-radius: inherit;
  text-align: left;
  pointer-events: none;
}
.mf__outline legend {
  float: unset;
  display: block;
  width: auto;
  max-width: 0.01px;
  height: 11px;
  padding: 0;
  overflow: hidden;
  font-size: 0.75em;
  white-space: nowrap;
  visibility: hidden;
  transition: max-width 50ms cubic-bezier(0, 0, 0.2, 1) 0ms;
}
.mf__outline legend span { display: inline-block; padding: 0 5px; opacity: 0; visibility: visible; }
.mf:focus-within .mf__outline legend, .mf.is-filled .mf__outline legend { max-width: 100%; transition: max-width 100ms cubic-bezier(0, 0, 0.2, 1) 50ms; }
.mf__root:hover .mf__outline { border-color: #57c4c1; }
.mf:focus-within .mf__outline { border: 1px solid #32beb9; }
.mf__helper { margin: 4px 14px 0 !important; color: #9aa0a0; font-size: 0.75rem; line-height: 1.66; text-align: left; }
.mf__helper[hidden] { display: none; }
/* Error: only the idle outline turns red (MUI error.main); the label keeps its colors and hover/focus keep the dark-field colors, as in React. */
.mf.is-error:not(:focus-within) .mf__root:not(:hover) .mf__outline { border-color: #ff4d4f; }
.mf.is-error .mf__helper { color: #ff6b6b; }
/* darkReadOnlyFieldSx */
.mf--readonly .mf__root { background-color: rgba(0, 0, 0, 0.35); }
.mf--readonly .mf__input { color: #a3aead; }
.mf--readonly .mf__outline, .mf--readonly .mf__root:hover .mf__outline, .mf--readonly:focus-within .mf__outline { border: 1px solid #34403e; }
.mf--readonly:focus-within .mf__label { color: #8fb8b5; }
/* RetailConversionForm count and new tag fields. */
.mf--count .mf__input { padding: 8px 8px 8px 12px; font-size: 0.85rem; }
.mf--count .mf__label { font-size: 0.8rem; }
.mf--new-tag { margin-top: 8px; }
/* Multiline (Description, minRows 2). */
.mf--multiline .mf__root { padding: 8.5px 14px; }
.mf--multiline .mf__input { height: auto; min-height: 2.875em; padding: 0; resize: none; overflow: hidden; }
/* Select (Weight UOM). */
.mf__select { height: auto; min-height: 1.4375em; padding-right: 32px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; user-select: none; border-radius: 4px; }
.mf__arrow { position: absolute; top: calc(50% - 12px); right: 7px; width: 24px; height: 24px; color: #8fb8b5; pointer-events: none; }
.mf.is-open .mf__arrow { transform: rotate(180deg); }
/* Autocomplete. */
.mf--combo .mf__root { flex-wrap: wrap; padding: 6px 9px 6px 6px; }
.mf--combo.has-value .mf__root { padding-right: 39px; }
.mf--combo .mf__input { width: 0; min-width: 30px; flex-grow: 1; padding: 2.5px 4px 2.5px 8px; text-overflow: ellipsis; }
.mf--combo:has(.mf__popup) .mf__root { padding-right: 39px; }
.mf--combo.has-value:has(.mf__popup) .mf__root { padding-right: 65px; }
.mf__end { position: absolute; top: 50%; right: 9px; display: flex; transform: translate(0, -50%); }
.mf__end-button {
  display: inline-flex;
  font-size: 16px;
  line-height: normal;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: -2px;
  padding: 4px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: #8fb8b5;
  cursor: pointer;
}
.mf__end-button .icon { width: 20px; height: 20px; }
.mf__clear { visibility: hidden; }
.mf--combo:not(.has-value) .mf__clear { display: none; }
.mf--combo.has-value:focus-within .mf__clear { visibility: visible; }
@media (pointer: fine) {
  .mf--combo.has-value .mf__root:hover .mf__clear { visibility: visible; }
}
.mf__popup { padding: 2px; }
.mf__popup .icon { width: 24px; height: 24px; }
.mf.is-open .mf__popup { transform: rotate(180deg); }
.mf-hint { display: block; margin: -8px 0 12px; color: #8c8c8c; font-size: 0.75rem; line-height: 1.66; }
.mf-hint[hidden] { display: none; }
/* Dropdown paper (darkMenuPaperSx) shared by the autocompletes and the select. */
.mf-list {
  position: fixed;
  z-index: 1;
  max-height: 40vh;
  margin: 0;
  padding: 8px 0;
  overflow: auto;
  list-style: none;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  background-color: #1e1e1e;
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.57;
  box-shadow: var(--shadow-1);
  pointer-events: auto;
}
/* Select menu: MUI Menu paper, elevation 8. */
.mf-list--select { max-height: calc(100vh - 96px); box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12); }
.mf-list[hidden] { display: none; }
/* MuiAutocomplete-noOptions */
.mf-list.is-empty { padding: 0; }
.mf-list__empty { padding: 14px 16px; color: #9aa0a0; }
.mf-list__option { display: flex; align-items: center; min-height: 48px; padding: 6px 16px; overflow: hidden; cursor: pointer; white-space: nowrap; text-overflow: ellipsis; }
@media (min-width: 600px) { .mf-list__option { min-height: auto; } }
.mf-list__option.is-focused, .mf-list--select .mf-list__option:hover { background-color: rgba(87, 196, 193, 0.15); }
.mf-list__option[aria-selected="true"] { background-color: rgba(87, 196, 193, 0.3); }
/* Arrow-key highlight (Mui-focusVisible): action.focus; a selected menu item adds the primary tint (#1677ff at 0.08 + 0.12). */
.mf-list__option.is-keyboard { background-color: rgba(0, 0, 0, 0.12); }
.mf-list--select .mf-list__option.is-keyboard[aria-selected="true"] { background-color: rgba(22, 119, 255, 0.2); }

/*
 * ---------- kure_employee checkout (steps 4-5) ----------
 * Values from React OrderCashierStoreInfoWidget.js, utils/PinNumPad.js +
 * Common/NumPadStyle/NumPadStyle.css, components/CashierPinDialog.js,
 * Loading/LoadingWidget.js, LinearLoaderWithLabel.js, CheckoutWidget.js,
 * CartSummaryWidget.js (OneSummaryItem) and CashInputModal/CashNumpadWidget.
 */

/* OrderCashierStoreInfoWidget: Grid spacing 3 (24px), two xs=6 Stacks spacing 1. */
.cashier-info { display: flex; gap: 24px; padding-top: 15px; }
.cashier-info__col { flex: 1 1 0; min-width: 0; }
.cashier-info__row { display: flex; align-items: center; gap: 8px; font-size: 1rem; line-height: 1.75rem; }
.cashier-info__row[hidden] { display: none; }
/* The React order id Box inherits weight 600 from the drawer header. */
.cashier-info__order { font-weight: 600; }
.cashier-info__row + .cashier-info__row { margin-top: 8px; }
.cashier-info__icon { width: 1em; height: 1em; flex-shrink: 0; fill: currentColor; color: #8c8c8c; font-size: 1.2rem; }
.cashier-info__text { font-size: 0.875rem; font-weight: 400; line-height: 1.57; color: inherit; text-decoration: none; }
.cashier-info__link { text-decoration: underline; cursor: pointer; }

/* Download gate: LoadingWidget then two LinearWithValueLabel bars. */
.pin-gate { text-align: center; }
.pin-gate[hidden], .pin-inline[hidden] { display: none; }
.pin-gate__spin-box { width: fit-content; margin: 0 auto; padding: 20px 30px; }
.cart .pin-gate__spin { display: inline-block; width: 40px; height: 40px; animation: pin-gate-spin 2s linear infinite; }
@keyframes pin-gate-spin { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
.pin-gate__text { color: #c3915b; }
.pin-gate__bar { display: flex; align-items: center; }
.pin-gate__track { position: relative; overflow: hidden; width: 100%; height: 6px; margin-right: 8px; border-radius: 100px; background-color: rgb(166, 203, 255); }
.pin-gate__fill { width: 100%; height: 100%; border-radius: 100px; background-color: #1677ff; transform: translateX(-100%); transition: transform 0.4s linear; }
.pin-gate__label { min-width: 35px; color: #8c8c8c; font-size: 0.875rem; line-height: 1.57; }

/* Not in React: the PIN gate covers the cart pane (absolute in the fixed .cart-paper),
   its card centred over the dimmed header block; only the close X stays above it. */
.cart-paper.is-pin-locked .cart-paper__inner { overflow: hidden; }
.cart-paper.is-pin-locked .cart-head__close { z-index: 3; }
.pin-lock { position: absolute; inset: 0; z-index: 2; overflow-y: auto; overscroll-behavior: contain; padding: 80px 15px 24px; background-color: rgba(20, 20, 20, 0.8); }
/* The card is centred in the pane below the close X; a pane too short for it scrolls from the top. */
.pin-lock:not([hidden]) { display: flex; flex-direction: column; }
.pin-lock__card { width: 100%; max-width: 340px; margin: auto; padding: 20px; border: 1px solid #32beb9; border-radius: 8px; background-color: #383737; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
@media (min-width: 768px) { .pin-lock { padding: 104px 38px 38px; } }

/* PinNumPad: in the PIN gate card (max-width 300px) and in the dialog. */
.pin-inline { max-width: 300px; margin: auto; }
.pin-pad { width: 100%; height: 100%; }
.pin-pad__error {
  margin: 3px 0 5px;
  padding: 10px;
  border-radius: 5px;
  background-color: #ffa07a;
  color: #000;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.66;
  letter-spacing: 0.03333em;
  text-align: left;
}
.pin-pad__error[hidden] { display: none; }
.pin-pad__input {
  width: 100%;
  padding: 2%;
  border: 1px solid #2b2b2b;
  border-radius: 3px;
  font-size: clamp(1.25rem, 0.61vw + 1.1rem, 1.4rem);
}
.pin-pad__keys { width: 100%; margin-top: 10px; }
.pin-pad__row { display: flex; justify-content: space-between; gap: 3px; width: 100%; }
.pin-pad__key {
  width: 33.33%;
  margin: 0.5%;
  border: 2px solid #32bdb8;
  background-color: #2b2b2b;
  color: #32bdb8;
  font-size: clamp(1.56rem, 1vw + 1.31rem, 2.11rem);
  cursor: pointer;
}
.pin-pad__key:hover { background-color: #32bdb8; color: #fff; }
.pin-pad__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 64px;
  margin-top: 10px;
  padding: 6px 16px;
  border: 0;
  border-radius: 4px;
  background: #32beb9;
  color: #fff;
  font-family: var(--mui-font);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: normal;
  text-transform: capitalize;
  cursor: pointer;
}
@media (hover: hover) { .pin-pad__submit:hover { background-color: #08979c; } }
.pin-pad__spinner { width: 15px; height: 15px; margin-right: 10px; border: 1.5px solid #fff; border-right-color: transparent; border-radius: 50%; animation: cart-spin 1.4s linear infinite; }
.pin-pad__spinner[hidden] { display: none; }
@media only screen and (max-width: 600px) {
  .pin-pad__key { height: 60px; margin: 2% 1%; }
}

/* Payment card rows and the summary's Cash Amount / Change rows (OneSummaryItem). */
.pay-rows { margin-top: 16px; }
.sum-row--cash { position: relative; z-index: 9999; cursor: pointer; }
.sum-row__void { color: #fff; font-size: 13px; border-bottom: 1px solid #fff; }

/* CashAmountKeyPad + CashNumpadWidget (Grid spacing 1 rows of three). */
.cash-pad { margin-top: 10px; }
.cash-pad__wrapper { width: 100%; max-width: 350px; margin: auto; }
.cash-pad__input { width: 100%; padding: 3px 10px; font-size: 1.7rem; }
.cash-pad__keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.cash-pad__key {
  width: 100%;
  padding: 5px 0;
  border: 2px solid #32bdb8;
  border-radius: 3px;
  background-color: #2b2b2b;
  color: #32bdb8;
  font-size: 2rem;
  text-align: center;
}
.cash-pad__key:hover { background-color: #32bdb8; color: #fff; cursor: pointer; }
/* React sets no font family or line height on the PIN and cash keys, so they use the browser's button
   defaults; undo base.css button { font: inherit } and .cart button { font-family }. */
.pin-pad__key, .cart .pin-pad__key, .cash-pad__key, .cart .cash-pad__key { font-family: revert; line-height: revert; }
.cash-pad__error { margin: 10px 0 0; color: #ff4d4f; font-size: 1rem; line-height: 1.66; letter-spacing: 0.03333em; text-align: left; }
@media only screen and (max-width: 600px) {
  .cash-pad__key { height: 60px; }
}

/* ---------- Refused order alert (not in React; same look as .orders-confirm in css/orders.css) ---------- */
.cart-alert {
  position: fixed;
  inset: 0;
  z-index: 1302;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-alert[hidden] { display: none; }
.cart-alert__backdrop { position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.5); -webkit-tap-highlight-color: transparent; }
.cart-alert__paper {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 32px;
  max-width: 600px;
  max-height: calc(100% - 64px);
  overflow-y: auto;
  border-radius: 4px;
  box-shadow: var(--shadow-24);
  background-color: #0e0e0e;
  color: white;
  outline: 0;
}
.cart-alert__title { flex: 0 0 auto; margin: 0; padding: 16px 24px; font-size: 0.875rem; font-weight: 400; line-height: 1.57; }
.cart-alert__content { flex: 1 1 auto; padding: 0 24px 20px; overflow-y: auto; }
.cart-alert__text { margin: 0; font-size: 0.875rem; line-height: 1.57; color: #8c8c8c; }
.cart-alert__list { margin: 8px 0 0; padding: 0 0 0 20px; font-size: 0.875rem; line-height: 1.57; }
.cart-alert__actions { display: flex; align-items: center; justify-content: flex-end; flex: 0 0 auto; padding: 8px; }
.cart-alert__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 6px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #1677ff;
  font-family: var(--mui-font);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.02857em;
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}
.cart-alert__button:hover { background-color: rgba(22, 119, 255, 0.04); }
.cart-alert__button[aria-busy="true"] { cursor: default; }
.cart-alert__button .spinner { width: 16px; height: 16px; margin: 0 8px 0 0; }

/* Pickup info from the owner's Store settings (#2223 M3). */
.cart-pickup { margin: 0 20px 4px; border: 1px solid #c8e6c9; border-radius: 8px; background: #f1f8f1; padding: 10px 14px; }
.cart-pickup[hidden] { display: none; }
.cart-pickup__label { margin: 0 0 2px; color: #2e7d32; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.cart-pickup__windows { margin: 0; color: #1b1b1b; font-family: var(--mui-font, inherit); font-size: 13px; line-height: 1.5; }
.cart-pickup__note { margin: 4px 0 0; color: #555; font-family: var(--mui-font, inherit); font-size: 12px; }
