/* Solante sipariş kromu — Gusto Bowl paleti */
.cart-bar {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 80;
  width: min(calc(100% - 2rem), 320px);
  padding: 0.6rem 0.85rem 0.65rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.1rem;
  cursor: pointer;
  background: rgba(245, 244, 240, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 24px rgba(20, 12, 6, 0.22);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  transform: translateX(-50%);
}

.cart-bar.has-items {
  border-color: rgba(61, 74, 64, 0.35);
}

.cart-bar.is-bump {
  transform: translateX(-50%) scale(0.96);
}

.cart-bar.is-hidden,
body.cart-disabled .cart-bar {
  display: none !important;
}

.cart-overlay.is-open ~ .cart-bar {
  opacity: 0;
  pointer-events: none;
}

.cart-bar__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--coffee);
}

.cart-bar__desc {
  margin: 0;
  font-size: 0.64rem;
  color: var(--text-muted);
}

.cart-bar__price {
  margin-top: 0.28rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-dark);
}

.cart-overlay[hidden] {
  display: none !important;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(10, 10, 10, 0);
  transition: background 0.3s ease;
}

.cart-overlay.is-open {
  background: rgba(10, 10, 10, 0.45);
}

.cart-drawer {
  width: min(100%, 420px);
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem 1.2rem;
  border-radius: 20px 20px 0 0;
  background: rgba(245, 244, 240, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: none;
  box-shadow: 0 -8px 32px rgba(20, 20, 20, 0.18);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cart-overlay.is-open .cart-drawer {
  transform: translateY(0);
}

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.cart-drawer__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--coffee);
}

.cart-drawer__close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--coffee);
  background: rgba(20, 20, 20, 0.06);
  cursor: pointer;
}

.cart-drawer__empty {
  margin: 1.5rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cart-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.cart-item__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--coffee);
}

.cart-item__price {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-dark);
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.cart-item__btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(20, 20, 20, 0.08);
  font-size: 1rem;
  line-height: 1;
  color: var(--coffee);
  background: rgba(20, 20, 20, 0.07);
  cursor: pointer;
}

.cart-item__num {
  min-width: 1.2rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
}

.cart-drawer__foot {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
}

.cart-drawer__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cart-drawer__total strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--coffee);
}

.cart-drawer__meta {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cart-drawer__hint {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  color: #a33;
}

.cart-drawer__actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cart-drawer__btn {
  width: 100%;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid rgba(20, 20, 20, 0.08);
  cursor: pointer;
}

.cart-drawer__btn--muted {
  color: var(--text-muted);
  background: rgba(20, 20, 20, 0.06);
}

.cart-drawer__btn--primary {
  color: #fff;
  background: var(--green-dark);
  border-color: transparent;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.qr-modal.is-hidden {
  display: none !important;
}

.qr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.52);
  backdrop-filter: blur(4px);
}

.qr-modal__panel {
  position: relative;
  width: min(100%, 380px);
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.25rem 1.2rem 1.35rem;
  border-radius: 18px;
  background: rgba(245, 244, 240, 0.97);
  box-shadow: 0 16px 48px rgba(20, 20, 20, 0.22);
}

.qr-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--coffee);
}

.qr-modal__sub {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.qr-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  font-size: 1.35rem;
  background: rgba(20, 20, 20, 0.06);
  cursor: pointer;
}

.qr-modal__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.qr-modal__primary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #fff;
  background: var(--green-dark);
  cursor: pointer;
}

.qr-modal__success-icon {
  margin: 0;
  font-size: 2rem;
  text-align: center;
}

.qr-modal__panel--success .qr-modal__body {
  align-items: center;
  text-align: center;
}

.chef-strip {
  position: fixed;
  left: 50%;
  bottom: 5.5rem;
  z-index: 150;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: min(calc(100% - 2rem), 360px);
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(245, 244, 240, 0.94);
  box-shadow: 0 8px 28px rgba(20, 20, 20, 0.16);
}

.chef-strip.is-hidden {
  display: none !important;
}

.chef-strip.is-ready {
  background: rgba(232, 248, 237, 0.96);
  cursor: pointer;
}

.qr-modal__panel--track {
  width: min(100%, 420px);
  padding: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.order-track {
  position: relative;
  min-height: 420px;
  padding: 2rem 1.4rem 1.8rem;
  border-radius: 22px;
  overflow: auto;
  color: var(--coffee);
  background: #efe6d4;
}

.order-track__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(42, 28, 18, 0.62);
}

.order-track__title {
  margin: 0.15rem 0 0;
  padding-right: 2.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 5.5vw, 1.9rem);
}

.order-track__steps {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0.85rem 0.7rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.28);
}

.order-track__step {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
}

.order-track__step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(42, 28, 18, 0.25);
}

.order-track__step.is-current .order-track__step-dot,
.order-track__step.is-done .order-track__step-dot {
  background: #3d4a40;
}

.order-track__step-label {
  font-size: 0.72rem;
  font-weight: 600;
}

.order-track__arrow {
  opacity: 0.45;
}

.order-track__no,
.order-track__hint,
.order-track__stage,
.order-track__kasa-sub {
  position: relative;
  z-index: 2;
  font-size: 0.82rem;
  color: rgba(42, 28, 18, 0.7);
}

.order-track__no {
  margin-top: 0.85rem;
  font-weight: 700;
}

.order-track__timer-val {
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums;
}

.order-track__kasa-list {
  max-height: min(46vh, 22rem);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.order-track__kasa-card {
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.order-track__kasa-card.is-odeme-bekliyor {
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.95), rgba(255, 255, 255, 0.75));
}

.order-track__kasa-card.is-hazirlaniyor {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.95), rgba(255, 255, 255, 0.75));
}

.order-track__kasa-card.is-hazir {
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.95), rgba(255, 255, 255, 0.75));
}

.order-track__kasa-no {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.order-track__kasa-status {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.siparis-takip-page {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: auto;
  background: linear-gradient(165deg, #2a2418 0%, #3d4a40 48%, #1a1814 100%);
}

.siparis-takip-page.is-hidden[hidden] {
  display: none !important;
}

.siparis-takip-page__shell {
  width: min(100%, 560px);
  margin: 0 auto;
  min-height: 100%;
  padding: max(0.85rem, env(safe-area-inset-top)) 1rem max(1.5rem, env(safe-area-inset-bottom));
}

.siparis-takip-page__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.siparis-takip-page__back {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.siparis-takip-page__brand {
  text-decoration: none;
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html.boot-siparis-takip .stage,
html.boot-siparis-takip .cart-bar,
html.boot-siparis-takip .cart-overlay,
html.boot-siparis-takip .chef-strip,
html.boot-siparis-takip .qr-modal,
html.boot-siparis-takip .builder-section {
  display: none !important;
}

html.boot-siparis-takip #siparisTakipPage {
  display: block !important;
  visibility: visible !important;
}

body.is-siparis-takip .stage,
body.is-siparis-takip .cart-bar,
body.is-siparis-takip .cart-overlay,
body.is-siparis-takip .chef-strip,
body.is-siparis-takip .builder-section {
  display: none !important;
}
