:root {
  --primary: #6d28d9;
  --primary-hover: #5b21b6;
  --primary-light: #8b5cf6;
  --primary-bg: #f3e8ff;
  --primary-dark: #4c1d95;
  --restaurant-accent: #6d28d9;
  --restaurant-accent-dark: #4c1d95;
  --rider-accent: #6d28d9;
  --rider-accent-soft: rgba(109, 40, 217, 0.14);
  --legal-primary: #6d28d9;
}

body.restaurant-page-body {
  --restaurant-accent: #6d28d9;
  --restaurant-accent-dark: #4c1d95;
}

body.restaurant-page-body .restaurant-main-info h1 {
  color: var(--restaurant-accent-dark);
}

body.restaurant-page-body .menu-item-card-premium .price-row-item {
  color: var(--restaurant-accent-dark);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(109, 40, 217, 0.35);
  outline-offset: 2px;
}

.primary-btn:not(:disabled),
.btn-primary:not(:disabled),
.primary-button:not(:disabled),
.login-btn:not(:disabled),
.rider-login-btn:not(:disabled),
.rider-verify-submit:not(:disabled) {
  border-color: transparent;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff;
}

.primary-btn:not(:disabled):hover,
.btn-primary:not(:disabled):hover,
.primary-button:not(:disabled):hover,
.login-btn:not(:disabled):hover,
.rider-login-btn:not(:disabled):hover,
.rider-verify-submit:not(:disabled):hover {
  background: linear-gradient(135deg, #6d28d9, #4c1d95);
}

.restaurant-page-body .menu-item-card-premium .qty-selector-premium.not-added {
  border: 0;
  background: linear-gradient(135deg, #7624e5, #5915c2);
  color: #fff;
  box-shadow: 0 5px 13px rgba(91, 33, 182, 0.23);
}

.restaurant-page-body .floating-cart-bucket.active {
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(110deg, #4c1d95, #6d28d9 58%, #7c3aed);
  box-shadow: 0 12px 30px rgba(76, 29, 149, 0.28);
}

.restaurant-page-body .floating-cart-bucket .bucket-right {
  border: 0;
  background: #fff;
  color: #4c1d95 !important;
}

.restaurant-page-body .floating-cart-bucket .bucket-right span::after {
  color: #6d28d9;
}

.restaurant-page-body .restaurant-menu-intro .menu-search-bar {
  border-color: #e4d7f6;
}

.restaurant-page-body .restaurant-menu-intro .menu-search-bar::before {
  border-color: #d8bfff;
  background: linear-gradient(145deg, #7c3aed, #4c1d95);
  box-shadow: 0 2px 6px rgba(76, 29, 149, 0.22);
}

.restaurant-page-body .restaurant-menu-intro .menu-search-bar:focus-within {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12), 0 6px 18px rgba(76, 29, 149, 0.12);
}

.restaurant-page-body .restaurant-menu-intro .menu-search-bar:hover:not(:focus-within) {
  border-color: #c4a8f3;
}

.restaurant-page-body .menu-item-card-premium .menu-variety-actions button {
  border-color: rgba(109, 40, 217, 0.18);
  background: #f7f3ff;
}

.admin-menu-btn.active {
  color: #a78bfa !important;
}

#admin-dashboard-container #admin-logout-btn {
  border-color: rgba(109, 40, 217, 0.2);
  background: rgba(109, 40, 217, 0.08);
  color: #6d28d9;
}

#admin-dashboard-container #admin-logout-btn:hover {
  border-color: rgba(109, 40, 217, 0.35);
  background: rgba(109, 40, 217, 0.14);
}

.moozo-helper-chat form > button {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.moozo-helper-chat input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.14);
}

#rider-login-container.rider-login-shell {
  background: #f7f3ff;
}

.rider-login-card {
  border-color: #e8ddfb;
  box-shadow: 0 16px 42px rgba(76, 29, 149, 0.12);
}

.rider-login-logo {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.rider-login-form input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.14);
}

.rider-offer-actions .primary-btn:not(:disabled),
.rider-verify-submit:not(:disabled) {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.page-eyebrow,
.page-shell a:not(.action-link) {
  color: #6d28d9;
}

.action-link,
.action-link:hover {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.contact-card {
  background: #f7f3ff;
}

.chef-cart-moment {
  position: absolute;
  min-height: 84px;
  gap: 12px;
  overflow: hidden;
  padding: 12px 14px;
  border: 1px solid rgba(109, 40, 217, 0.18);
  border-left: 4px solid #6d28d9;
  border-radius: 20px;
  background: linear-gradient(115deg, #fff 18%, #faf6ff 100%);
  box-shadow: 0 16px 38px rgba(52, 27, 91, 0.24);
}

.chef-cart-moment::before {
  position: absolute;
  top: -50px;
  right: 24px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.16), transparent 70%);
  content: "";
  pointer-events: none;
}

.chef-cart-moment.is-celebrating {
  animation: chefCartArrive 5.8s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.chef-cart-trail {
  right: auto;
  left: 59px;
  z-index: 0;
  width: 76px;
  border-color: rgba(109, 40, 217, 0.42);
}

.chef-cart-moment.is-celebrating .chef-cart-trail {
  animation: chefTrailDraw 2.2s cubic-bezier(0.2, 0.75, 0.25, 1) 180ms both;
}

.chef-cart-mascot {
  z-index: 3;
  width: 54px;
  height: 54px;
  flex-basis: 54px;
  border-color: #e5d7ff;
  border-radius: 18px;
  background: radial-gradient(circle at 35% 25%, #fff, #f1e8ff 78%);
  box-shadow: 0 7px 17px rgba(109, 40, 217, 0.18);
}

.chef-cart-avatar {
  font-size: 34px;
  transform-origin: 50% 85%;
}

.chef-cart-catcher {
  position: absolute;
  top: 29px;
  right: -35px;
  z-index: 3;
  width: 34px;
  height: 17px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-4px, 4px) rotate(-32deg) scale(0.72);
  transform-origin: 3px 50%;
}

.chef-cart-forearm {
  position: absolute;
  top: 6px;
  left: 0;
  width: 27px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c4b5fd 0 32%, #f6c39a 32% 100%);
  box-shadow: 0 1px 2px rgba(52, 27, 91, 0.18);
}

.chef-cart-palm {
  position: absolute;
  top: -2px;
  right: -10px;
  display: grid;
  width: 22px;
  height: 20px;
  place-items: center;
  font-size: 19px;
  line-height: 1;
  filter: drop-shadow(0 2px 2px rgba(52, 27, 91, 0.18));
}

.chef-cart-dish {
  z-index: 1;
  width: 50px;
  height: 50px;
  flex-basis: 50px;
  border-color: #fff;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(109, 40, 217, 0.16), 0 4px 11px rgba(31, 24, 45, 0.16);
}

.chef-cart-moment.is-celebrating .chef-cart-dish {
  animation: chefDishHandoff 780ms cubic-bezier(0.18, 0.75, 0.25, 1) 100ms both,
    chefDishBob 800ms ease-in-out 950ms infinite alternate;
}

.restaurant-page-body .chef-cart-moment.is-celebrating.has-dish-image .chef-cart-catcher {
  animation: chefReachAndCatch 2.75s cubic-bezier(0.2, 0.75, 0.25, 1) 120ms both;
}

.restaurant-page-body .chef-cart-moment.is-celebrating.has-dish-image .chef-cart-palm {
  animation: chefPalmCatch 2.75s cubic-bezier(0.2, 0.75, 0.25, 1) 120ms both;
}

.restaurant-page-body .chef-cart-moment.is-celebrating.has-dish-image .chef-cart-avatar {
  animation: chefAnticipateCatch 2.65s ease-in-out both;
}

.restaurant-page-body .chef-cart-moment.is-celebrating .chef-cart-dish {
  animation: chefDishCaught 2.75s cubic-bezier(0.18, 0.75, 0.25, 1) 120ms both,
    chefDishBob 900ms ease-in-out 3s infinite alternate;
}

.restaurant-page-body .chef-cart-moment.is-celebrating .chef-cart-spark {
  animation: chefCatchConfirmed 850ms cubic-bezier(0.2, 0.75, 0.25, 1) 2.05s both;
}

.restaurant-page-body .chef-cart-moment.is-catching .chef-cart-status::before {
  animation: chefStatusPulse 1s ease-in-out infinite;
}

.restaurant-page-body .floating-cart-bucket.chef-receiving {
  animation: cartWelcomeBounce 950ms cubic-bezier(0.2, 0.8, 0.3, 1) 2.45s both;
}

.chef-cart-copy {
  z-index: 1;
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.chef-cart-kicker {
  overflow: hidden;
  color: #6d28d9;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chef-cart-message {
  color: #252033;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.chef-cart-status {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #756c83;
  font-size: 10px;
  font-weight: 650;
}

.chef-cart-status::before {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #8b5cf6;
  content: "";
}

.chef-cart-spark {
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  background: #6d28d9;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

@keyframes chefCartArrive {
  0% { opacity: 0; transform: translateY(34px) scale(0.92); }
  10% { opacity: 1; transform: translateY(-5px) scale(1.015); }
  16%, 91% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(10px) scale(0.99); }
}

@keyframes chefDishHandoff {
  0% { opacity: 0; transform: translateX(22px) scale(0.52) rotate(12deg); }
  70% { opacity: 1; transform: translateX(-3px) scale(1.12) rotate(-5deg); }
  100% { opacity: 1; transform: translateX(0) scale(1) rotate(0); }
}

@keyframes chefReachAndCatch {
  0%, 100% { opacity: 0; transform: translate(-6px, 5px) rotate(-34deg) scale(0.7); }
  18% { opacity: 1; transform: translate(0, 0) rotate(-22deg) scale(0.82); }
  42%, 67% { opacity: 1; transform: translate(5px, -2px) rotate(8deg) scale(1.08); }
  78% { opacity: 1; transform: translate(1px, 0) rotate(-8deg) scale(0.94); }
  91% { opacity: 0.8; transform: translate(-3px, 3px) rotate(-24deg) scale(0.76); }
}

@keyframes chefPalmCatch {
  0% { opacity: 0; transform: scale(0.5) rotate(-24deg); }
  35% { opacity: 1; transform: scale(0.9) rotate(-10deg); }
  62% { opacity: 1; transform: scale(1.1) rotate(8deg); }
  75% { opacity: 1; transform: scale(0.8) rotate(-10deg); }
  86% { opacity: 1; transform: scale(1.1) rotate(6deg); }
  100% { opacity: 0; transform: scale(0.72) rotate(18deg); }
}

@keyframes chefAnticipateCatch {
  0%, 100% { transform: translateX(0) rotate(0); }
  25%, 55% { transform: translateX(4px) rotate(12deg); }
  72% { transform: translateX(-2px) rotate(-8deg); }
}

@keyframes chefDishCaught {
  0% { opacity: 0; transform: translate(88px, -38px) scale(0.46) rotate(25deg); }
  20% { opacity: 0.65; transform: translate(69px, -25px) scale(0.6) rotate(18deg); }
  43% { opacity: 1; transform: translate(38px, -12px) scale(0.76) rotate(12deg); }
  68% { opacity: 1; transform: translate(8px, 5px) scale(1.1) rotate(-8deg); }
  78% { opacity: 1; transform: translate(-5px, 0) scale(0.9) rotate(5deg); }
  88% { opacity: 1; transform: translate(2px, -2px) scale(1.08) rotate(-3deg); }
  100% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0); }
}

@keyframes chefCatchConfirmed {
  0% { opacity: 0.45; transform: scale(0.5) rotate(-18deg); }
  50% { opacity: 1; transform: scale(1.22) rotate(10deg); }
  72% { transform: scale(0.92) rotate(-5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes chefStatusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.2); transform: scale(1); }
  50% { box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.08); transform: scale(1.15); }
}

@media (max-width: 380px) {
  .chef-cart-moment {
    gap: 8px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .chef-cart-mascot {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .chef-cart-avatar {
    font-size: 30px;
  }

  .chef-cart-catcher {
    top: 25px;
    right: -29px;
    transform-origin: 3px 50%;
  }

  .chef-cart-dish {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .restaurant-page-body .chef-cart-moment.is-celebrating {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .restaurant-page-body .floating-cart-bucket.chef-receiving,
  .restaurant-page-body .chef-cart-status::before {
    animation: none !important;
  }

  .restaurant-page-body .chef-cart-moment,
  .restaurant-page-body .chef-cart-mascot,
  .restaurant-page-body .chef-cart-catcher,
  .restaurant-page-body .chef-cart-palm,
  .restaurant-page-body .chef-cart-dish,
  .restaurant-page-body .chef-cart-trail,
  .restaurant-page-body .chef-cart-spark {
    animation: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
