.tf-cart-bar {
  position: fixed;
  z-index: 900;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(390px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  box-sizing: border-box;
  min-height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(105deg, #ef1b2d, #f20f42);
  color: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .38);
  font: 750 14px/1.15 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tf-cart-bar[hidden] { display: none !important; }
.tf-cart-bar:focus-visible { outline: 3px solid #ffb8c0; outline-offset: 3px; }
.tf-cart-bar__summary, .tf-cart-bar__action { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tf-cart-bar__summary b { font-weight: 800; }
.tf-cart-bar__dot { opacity: .82; }
.tf-cart-bar__action { font-weight: 800; }
@media (min-width: 768px) { .tf-cart-bar { bottom: 20px; } }
@media (prefers-reduced-motion: no-preference) { .tf-cart-bar { transition: transform .16s ease, box-shadow .16s ease; } .tf-cart-bar:hover { transform: translateX(-50%) translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, .42); } }

@media (max-width: 480px) {
  .tf-cart-bar {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    min-height: 56px;
    padding: 14px 16px;
    gap: 10px;
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .tf-cart-bar__summary { flex: 1; min-width: 0; gap: 6px; font-size: 14px; }
  .tf-cart-bar__action { flex: 0 0 auto; gap: 6px; font-size: 14px; }
}


/* TriFome pickup time picker */
.pickup-time-control { position: relative; }
.pickup-time-value { padding-right: 52px; cursor: pointer; }
.pickup-time-open { position: absolute; top: 50%; right: 8px; display: grid; width: 38px; height: 38px; place-items: center; transform: translateY(-50%); border: 0; border-radius: 11px; color: var(--brand, #ed174c); background: rgba(237, 23, 76, .12); cursor: pointer; }
.pickup-time-open svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tf-time-picker { width: min(410px, calc(100vw - 32px)); max-width: none; padding: 0; overflow: visible; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; color: #f7f7fb; background: #17171e; box-shadow: 0 24px 80px rgba(0,0,0,.48); }
.tf-time-picker::backdrop { background: rgba(4,5,10,.72); backdrop-filter: blur(5px); }
.tf-time-picker-card { padding: 22px; }
.tf-time-picker-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.tf-time-picker-head h3 { margin: 0; font-size: 18px; font-weight: 750; }
.tf-time-picker-head p { margin: 5px 0 0; color: #a6a5b4; font-size: 13px; }
.tf-time-picker-close { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 11px; color: #e9e8ee; background: transparent; font-size: 22px; cursor: pointer; }
.tf-time-picker-inputs { display: grid; grid-template-columns: 1fr 18px 1fr; align-items: end; gap: 12px; }
.tf-time-picker-inputs .field { min-width: 0; }
.tf-time-picker-inputs input { height: 64px; text-align: center; font-size: 28px; font-weight: 750; }
.tf-time-picker-inputs input::-webkit-inner-spin-button, .tf-time-picker-inputs input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.tf-time-separator { padding-bottom: 15px; color: #a6a5b4; text-align: center; font-size: 25px; font-weight: 700; }
.tf-time-picker-actions { display: flex; gap: 10px; margin-top: 20px; }
.tf-time-picker-actions .btn { flex: 1; min-height: 46px; }
@media (max-width: 520px) {
  .tf-time-picker { position: fixed; inset: auto 0 0; width: 100%; margin: 0; border-radius: 22px 22px 0 0; }
  .tf-time-picker-card { padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
}

/* Professional payment method cards in checkout */
.checkout-payments {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}
.checkout-payments > label {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 60px;
  align-items: center;
  padding: 12px 38px 12px 14px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 14px;
  color: #f3f2f7;
  background: linear-gradient(145deg, #1d1c24, #15151b);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.checkout-payments > label > input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.checkout-payments > label > span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.checkout-payments > label::after {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  color: transparent;
  content: "✓";
  font-size: 12px;
  font-weight: 800;
  transform: translateY(-50%);
}
.checkout-payments > label:has(input[type="radio"]:checked) {
  border-color: #ed174c;
  color: #fff;
  background: linear-gradient(145deg, rgba(237,23,76,.19), rgba(237,23,76,.08));
  box-shadow: 0 0 0 1px rgba(237,23,76,.15), 0 8px 22px rgba(0,0,0,.15);
}
.checkout-payments > label:has(input[type="radio"]:checked)::after {
  border-color: #ed174c;
  color: #fff;
  background: #ed174c;
}
.checkout-payments > label:has(input[type="radio"]:focus-visible) {
  outline: 2px solid rgba(255,75,115,.72);
  outline-offset: 2px;
}
.checkout-payments > label:hover {
  border-color: rgba(255,255,255,.28);
  transform: translateY(-1px);
}
.checkout-payments > label:has(input[type="radio"]:checked):hover {
  border-color: #ff476d;
}
@media (max-width: 480px) {
  .checkout-payments { gap: 8px; }
  .checkout-payments > label {
    min-height: 56px;
    padding: 10px 34px 10px 11px;
    border-radius: 12px;
    font-size: 13px;
  }
  .checkout-payments > label::after { right: 9px; width: 18px; height: 18px; }
  .checkout-payments > label > span { gap: 6px; }
}

/* Keep the single online payment option full width in checkout. */
.checkout-payments > .payment-online-option { grid-column: 1 / -1; }
