
:root {
  --green: #27843b;
  --orange: #ff7600;
  --ink: #171717;
  --muted: #787878;
  --line: #ececec;
  --soft: #fff4df;
  --bg: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a { color: inherit; }
button, input, textarea { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 72px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 24px;
  font-weight: 900;
  color: var(--green);
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.location-button {
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  min-width: 210px;
}

.location-button small {
  display: block;
  color: var(--muted);
  margin-bottom: 2px;
}

.location-button b {
  display: block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-search {
  flex: 1;
}

.top-search input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 13px 16px;
  outline: none;
}

.topnav {
  display: flex;
  gap: 16px;
}

.topnav a {
  text-decoration: none;
  font-weight: 700;
  color: #3f5144;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 22px 90px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
  align-items: stretch;
  padding: 28px 0;
}

.hero-copy {
  padding: 22px 0;
}

.hero-copy p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 8px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
}

.delivery-card {
  border-radius: 24px;
  padding: 26px;
  background: var(--soft);
  display: grid;
  align-content: center;
  gap: 6px;
}

.delivery-card strong {
  font-size: 21px;
}

.location-warning {
  padding: 13px 15px;
  border-radius: 12px;
  background: #fff4d9;
  color: #745400;
  margin: 6px 0 18px;
}

.location-warning a {
  font-weight: 800;
  color: var(--green);
}

.section {
  padding: 26px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 17px;
}

.section-heading h2 {
  margin: 0;
  font-size: 28px;
}

.section-heading a {
  color: var(--orange);
  font-weight: 800;
  text-decoration: none;
}

.categories {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  border: 0;
  background: #fff;
  text-align: center;
  cursor: pointer;
}

.category-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 18px;
  background: #f5f5f5;
}

.category-card b,
.category-card span {
  display: block;
}

.category-card b {
  margin-top: 9px;
}

.category-card span {
  margin-top: 3px;
  color: #aaa;
}

.offers {
  display: flex;
  overflow: auto;
  gap: 12px;
}

.offer-card {
  min-width: 260px;
  border: 1px solid #ffe1b8;
  background: #fff7ea;
  padding: 18px;
  border-radius: 18px;
}

.offer-card span {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.food-card,
.vendor-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.food-card img,
.vendor-card > img {
  width: 100%;
  height: 175px;
  object-fit: cover;
}

.food-body,
.vendor-body {
  padding: 14px;
}

.food-body h3,
.food-body p,
.vendor-body h3,
.vendor-body p {
  margin: 0;
}

.food-body p,
.vendor-body p {
  color: var(--muted);
  margin-top: 5px;
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 13px;
}

.empty {
  grid-column: 1 / -1;
  border: 1px dashed #d8d8d8;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.status {
  color: #686868;
  min-height: 20px;
}

.status.bad { color: #b42318; }
.status.good { color: var(--green); }

.primary-btn,
.secondary-btn,
.danger-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 800;
}

.primary-btn {
  background: var(--orange);
  color: white;
}

.secondary-btn {
  background: #edf6ef;
  color: var(--green);
}

.danger-btn {
  background: #fff0f0;
  color: #b42318;
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.auth-page {
  min-height: 100vh;
  background: #f7faf7;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-brand-panel {
  background: linear-gradient(145deg, #1b6a38, #2d9250);
  color: #fff;
  padding: clamp(32px, 7vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-brand-panel .brand {
  color: #fff;
}

.auth-brand-panel h1 {
  max-width: 620px;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1;
}

.auth-card {
  width: min(430px, calc(100% - 36px));
  align-self: center;
  justify-self: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 45px rgba(0,0,0,.07);
}

.auth-card h2 {
  margin: 8px 0;
}

.auth-card input,
.location-panel input,
.location-panel textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px;
  margin: 7px 0 14px;
}

.phone-input {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding-left: 12px;
}

.phone-input input {
  border: 0;
  margin: 0;
}

.full-btn {
  width: 100%;
  margin-top: 12px;
}

.back-link {
  display: inline-block;
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 20px;
}

.location-page {
  max-width: 760px;
}

.location-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  margin-top: 16px;
}

.saved-location {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.saved-location p {
  margin: 5px 0 0;
  color: var(--muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mobile-nav {
  display: none;
}

@media (max-width: 900px) {
  .topbar-inner {
    flex-wrap: wrap;
  }

  .location-button {
    order: 3;
    width: 100%;
  }

  .top-search {
    order: 4;
    flex-basis: 100%;
  }

  .topnav {
    margin-left: auto;
  }

  .topnav a:not(:first-child) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr 180px;
  }

  .categories {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    justify-content: space-around;
    padding: 9px 5px 12px;
    background: #fff;
    border-top: 1px solid var(--line);
  }

  .mobile-nav a {
    text-decoration: none;
    color: #888;
    font-size: 12px;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .delivery-card {
    padding: 18px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .saved-location {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Saved addresses and Explore */

.page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 8px 0 24px;
}

.page-title h1 {
  margin: 4px 0 7px;
  font-size: clamp(32px, 5vw, 48px);
}

.page-title p {
  color: var(--muted);
  margin: 0;
}

.compact-title {
  margin-top: 20px;
}

.eyebrow {
  color: var(--orange) !important;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.address-page {
  max-width: 960px;
}

.address-list {
  display: grid;
  gap: 14px;
}

.saved-address-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: white;
}

.saved-address-card.selected {
  border-color: #65b77d;
  box-shadow: 0 0 0 3px rgba(50, 160, 82, .08);
}

.address-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f2f8f3;
  color: var(--green);
  font-size: 23px;
  font-weight: 900;
}

.address-copy h3,
.address-copy p {
  margin: 0;
}

.address-copy p {
  margin-top: 6px;
  color: #59665d;
  line-height: 1.5;
}

.address-copy small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.address-card-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.selected-pill {
  border-radius: 999px;
  padding: 5px 8px;
  background: #eaf7ed;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
}

.address-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.address-editor {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .05);
}

.editor-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.editor-heading h2 {
  margin: 3px 0;
}

.address-editor label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 800;
  color: #34493a;
}

.address-editor input,
.address-editor textarea {
  width: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  padding: 12px 13px;
  outline: none;
}

.address-editor input:focus,
.address-editor textarea:focus {
  border-color: #67a875;
  box-shadow: 0 0 0 3px rgba(39, 132, 59, .08);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.label-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.label-tab,
.category-pill {
  border: 1px solid #dce5df;
  background: white;
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 800;
  color: #315340;
  cursor: pointer;
}

.label-tab.active,
.category-pill.active {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.coordinate-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 15px;
  border-radius: 14px;
  background: #f7faf7;
}

.coordinate-panel p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.search-results {
  display: grid;
  gap: 12px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 30px;
  gap: 16px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  cursor: pointer;
}

.search-result-card > img {
  width: 110px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  background: #f5f5f5;
}

.search-result-copy h3,
.search-result-copy p {
  margin: 0;
}

.search-result-copy h3 {
  margin-top: 5px;
}

.search-result-copy p {
  margin-top: 4px;
  color: var(--muted);
}

.search-result-meta {
  display: flex;
  gap: 15px;
  margin-top: 11px;
}

.result-arrow {
  font-size: 24px;
  color: var(--green);
}

.location-account-hint {
  border: 1px solid #dcebdc;
  background: #f5fbf6;
  padding: 12px 14px;
  border-radius: 12px;
  color: #3a5c43 !important;
  margin-top: 12px !important;
}

.location-account-hint a {
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 760px) {
  .page-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .saved-address-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .address-card-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .coordinate-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-result-card {
    grid-template-columns: 82px minmax(0, 1fr) 20px;
    gap: 11px;
  }

  .search-result-card > img {
    width: 82px;
    height: 82px;
  }
}


/* Restaurant and product detail */

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  margin-left: 3px;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font-size: 10px;
  font-weight: 900;
}

.restaurant-hero {
  min-height: 340px;
  background-size: cover;
  background-position: center;
}

.restaurant-hero-overlay {
  min-height: 340px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}

.restaurant-back {
  width: fit-content;
  color: white;
  text-decoration: none;
  font-weight: 800;
}

.restaurant-hero-copy h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 64px);
}

.restaurant-hero-copy p {
  margin: 7px 0;
  font-size: 17px;
}

.restaurant-title-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.restaurant-state {
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8f8ec;
  color: #187139;
  font-size: 11px;
  font-weight: 900;
}

.restaurant-state.closed {
  background: #ffe5e5;
  color: #9b2727;
}

.restaurant-meta {
  display: flex;
  gap: 16px;
  font-weight: 700;
}

.restaurant-page {
  max-width: 980px;
}

.vendor-offer-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #ffb74d;
  background: #fff3e0;
  color: #e65100;
}

.vendor-offer-banner > div:last-child {
  display: grid;
  gap: 4px;
}

.vendor-offer-banner span {
  color: #6f6f6f;
  font-size: 12px;
}

.offer-icon {
  font-size: 22px;
}

.restaurant-tools {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.restaurant-tools h2 {
  margin: 3px 0;
  font-size: 30px;
}

.restaurant-filters {
  display: flex;
  gap: 9px;
}

.restaurant-filters input {
  min-width: 250px;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 11px 15px;
  outline: none;
}

.filter-toggle {
  border: 1px solid #d8e4da;
  border-radius: 999px;
  padding: 10px 15px;
  background: white;
  color: #315340;
  font-weight: 800;
  cursor: pointer;
}

.filter-toggle.active {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.menu-groups {
  display: grid;
  gap: 30px;
}

.menu-category-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.menu-category-heading h2 {
  margin: 0;
  font-size: 23px;
}

.menu-category-heading span {
  color: var(--muted);
  font-size: 13px;
}

.restaurant-menu-list {
  display: grid;
  gap: 12px;
}

.restaurant-menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 125px;
  gap: 18px;
  align-items: end;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.restaurant-menu-copy {
  cursor: pointer;
}

.restaurant-menu-copy h3 {
  margin: 6px 0 5px;
  font-size: 18px;
}

.restaurant-menu-copy p {
  max-width: 580px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.restaurant-menu-media {
  position: relative;
  padding-bottom: 17px;
}

.restaurant-menu-media img {
  width: 125px;
  height: 115px;
  object-fit: cover;
  border-radius: 16px;
  cursor: pointer;
  background: #f4f4f4;
}

.menu-add-btn {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 86px;
  transform: translateX(-50%);
  border: 1px solid #d2e4d5;
  border-radius: 9px;
  padding: 8px 10px;
  background: white;
  color: var(--green);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

.menu-add-btn:disabled {
  background: #eee;
  color: #777;
}

.offline-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  padding: 17px;
  text-align: center;
  background: #ffebee;
  color: #a02929;
  font-weight: 900;
  letter-spacing: .08em;
}

.floating-cart {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 40;
  transform: translateX(-50%);
  min-width: min(420px, calc(100vw - 34px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 14px 18px;
  border-radius: 15px;
  background: var(--green);
  color: white;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(20,90,45,.25);
}

.product-page {
  max-width: 1080px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: 42px;
  align-items: start;
}

.product-image-panel {
  min-height: 510px;
  overflow: hidden;
  border-radius: 26px;
  background: #f4f6f4;
}

.product-image-panel img {
  width: 100%;
  min-height: 510px;
  height: 100%;
  object-fit: cover;
}

.product-detail-copy h1 {
  margin: 10px 0 10px;
  font-size: clamp(36px, 5vw, 54px);
  color: #173d28;
}

.food-type {
  font-size: 12px;
  font-weight: 900;
}

.product-description {
  color: #68766d;
  line-height: 1.65;
}

.product-price {
  margin: 20px 0;
  color: #173d28;
  font-size: 30px;
  font-weight: 900;
}

.trusted-vendor-card {
  overflow: hidden;
  border: 1px solid #e0e7e2;
  border-radius: 18px;
  background: white;
}

.trusted-vendor-card > button {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  gap: 10px;
  align-items: center;
  border: 0;
  padding: 15px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.trusted-vendor-card > button:disabled {
  opacity: 1;
  cursor: default;
}

.trusted-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf7ed;
  color: var(--green);
  font-weight: 900;
}

.trusted-copy {
  display: grid;
  gap: 4px;
}

.trusted-copy small {
  color: var(--muted);
  line-height: 1.4;
}

.trusted-name,
.vendor-row-name {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.tiny-offer {
  padding: 3px 5px;
  border: 1px solid #ffb74d;
  border-radius: 5px;
  background: #fff3e0;
  color: #e65100;
  font-size: 9px;
  font-weight: 900;
}

.undo-icon {
  color: #888;
  font-size: 20px;
}

.other-vendors {
  border-top: 1px solid #edf1ed;
}

.other-vendors summary {
  padding: 13px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.other-vendors summary::-webkit-details-marker {
  display: none;
}

.other-vendors summary > div {
  display: grid;
  gap: 3px;
}

.other-vendors summary small {
  color: var(--muted);
}

.other-vendor-list {
  border-top: 1px solid #edf1ed;
}

.other-vendor-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border: 0;
  border-bottom: 1px solid #f0f2f0;
  background: white;
  text-align: left;
  cursor: pointer;
}

.other-vendor-row.selected {
  background: #f1f8f1;
}

.other-vendor-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.quantity-row {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quantity-control {
  display: flex;
  align-items: center;
  border-radius: 11px;
  background: #f3f5f3;
}

.quantity-control button {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}

.quantity-control span {
  width: 35px;
  text-align: center;
  font-weight: 900;
}

.instruction-label {
  display: block;
  margin-top: 22px;
  font-weight: 800;
}

.product-instructions {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px;
  resize: vertical;
}

.product-add-button {
  width: 100%;
  margin-top: 16px;
  font-size: 16px;
}

.view-restaurant-link {
  display: block;
  margin-top: 14px;
  color: var(--green);
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}

@media (max-width: 760px) {
  .restaurant-hero,
  .restaurant-hero-overlay {
    min-height: 270px;
  }

  .restaurant-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .restaurant-filters {
    width: 100%;
  }

  .restaurant-filters input {
    min-width: 0;
    flex: 1;
  }

  .restaurant-menu-item {
    grid-template-columns: minmax(0, 1fr) 95px;
  }

  .restaurant-menu-media img {
    width: 95px;
    height: 95px;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .product-image-panel,
  .product-image-panel img {
    min-height: 310px;
  }
}


/* Cart and checkout preparation */

.cart-page {
  max-width: 1120px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.cart-panel,
.bill-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background: white;
}

.cart-panel {
  margin-bottom: 16px;
}

.cart-panel h2,
.bill-card h2 {
  margin: 3px 0 12px;
}

.cart-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.cart-panel-heading .secondary-btn {
  text-decoration: none;
}

.selected-delivery-address {
  display: flex;
  gap: 12px;
  align-items: start;
}

.selected-delivery-address p {
  margin: 5px 0;
  color: var(--muted);
  line-height: 1.45;
}

.selected-delivery-address small {
  color: var(--muted);
}

.delivery-pin-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eaf7ed;
  color: var(--green);
  font-size: 20px;
}

.delivery-warning,
.maintenance-warning {
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 13px;
}

.delivery-warning {
  background: #fff0f0;
  color: #8b2c2c;
}

.delivery-warning p {
  margin: 5px 0 0;
  line-height: 1.45;
}

.maintenance-warning {
  margin-bottom: 18px;
  background: #fff4d9;
  color: #745400;
  font-weight: 800;
}

.cart-vendor-groups {
  display: grid;
  gap: 16px;
}

.cart-vendor-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
}

.cart-vendor-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  padding: 18px;
  background: #fafcfb;
  border-bottom: 1px solid #edf1ee;
}

.cart-vendor-header h2 {
  margin: 0;
  font-size: 20px;
}

.cart-vendor-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.vendor-menu-link {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.cart-items {
  padding: 0 18px;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #edf1ee;
}

.cart-item-row > img {
  width: 82px;
  height: 76px;
  border-radius: 13px;
  object-fit: cover;
  background: #f4f4f4;
}

.cart-item-copy h3 {
  margin: 5px 0;
  font-size: 16px;
}

.cart-item-actions {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.remove-item {
  border: 0;
  background: transparent;
  color: #b33b3b;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.vendor-subtotal {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  font-size: 13px;
}

.offer-panel {
  overflow: hidden;
}

.coupon-row {
  display: flex;
  gap: 9px;
}

.coupon-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 11px 12px;
  outline: none;
}

.unlock-offer {
  margin-bottom: 14px;
  border: 1px solid #f5d6ae;
  border-radius: 13px;
  padding: 13px;
  background: #fff8ef;
  color: #76501a;
}

.unlock-track {
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0e5d7;
}

.unlock-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--orange);
}

.available-offers {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.offer-choice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid #e2e8e3;
  border-radius: 13px;
  padding: 12px;
  background: white;
  text-align: left;
  cursor: pointer;
}

.offer-choice > div {
  display: grid;
  gap: 3px;
}

.offer-choice small {
  color: var(--muted);
}

.offer-choice > span {
  color: var(--green);
  font-weight: 900;
}

.offer-choice.selected {
  border-color: #65b77d;
  background: #f4fbf5;
}

.offer-empty {
  color: var(--muted);
  font-size: 13px;
}

.applied-offer {
  margin-top: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid #bfe0c7;
  border-radius: 13px;
  padding: 12px;
  background: #eff9f1;
}

.applied-offer > div {
  display: grid;
  gap: 3px;
}

.applied-offer small {
  color: #587060;
}

.applied-offer button {
  border: 0;
  background: transparent;
  color: #ae3535;
  font-weight: 800;
  cursor: pointer;
}

.cart-panel textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px;
  resize: vertical;
}

.bill-card {
  position: sticky;
  top: 90px;
}

.bill-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
}

.fee-pair {
  display: flex;
  gap: 7px;
  align-items: center;
}

.fee-pair s {
  color: #999;
  font-size: 12px;
}

.delivery-legs {
  display: grid;
  gap: 4px;
  padding: 0 0 10px;
  color: var(--muted);
}

.delivery-legs small {
  display: block;
  text-align: right;
}

.saving-row {
  color: #217a42;
}

.bill-card hr {
  border: 0;
  border-top: 1px solid #e8ece9;
}

.bill-total {
  font-size: 19px;
  font-weight: 900;
}

.checkout-button {
  width: 100%;
  margin-top: 10px;
}

.server-note {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.cart-empty {
  padding: 50px 20px;
}

.cart-empty h2 {
  margin: 0 0 7px;
}

.cart-empty p {
  margin: 0 0 20px;
}

.empty-action {
  display: inline-block;
  text-decoration: none;
}

.checkout-prep-page {
  max-width: 980px;
}

.checkout-prep-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.checkout-prep-main {
  display: grid;
  gap: 14px;
}

.checkout-prep-main .cart-panel {
  margin: 0;
}

.checkout-prep-main .cart-panel > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}

.checkout-leg-list {
  display: grid;
  gap: 9px;
}

.checkout-leg {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #edf1ee;
}

.checkout-leg span {
  color: var(--muted);
}

@media (max-width: 820px) {
  .cart-layout,
  .checkout-prep-grid {
    grid-template-columns: 1fr;
  }

  .bill-card {
    position: static;
  }
}

@media (max-width: 620px) {
  .cart-item-row {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .cart-item-row > img {
    width: 70px;
    height: 70px;
  }

  .cart-item-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .cart-vendor-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .coupon-row {
    align-items: stretch;
  }
}


/* COD checkout, order success and order history */

.checkout-page {
  max-width: 980px;
}

.payment-panel {
  display: grid;
  gap: 10px;
}

.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #e2e7e3;
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
}

.payment-option input {
  margin-top: 4px;
  accent-color: var(--green);
}

.payment-option > div {
  display: grid;
  gap: 4px;
}

.payment-option small {
  color: var(--muted);
}

.payment-option.disabled {
  opacity: .55;
  cursor: not-allowed;
  background: #fafafa;
}

.checkout-error {
  margin-top: 16px;
  font-weight: 750;
}

.success-page {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 28px;
  background:
    radial-gradient(
      circle at top,
      #eef9f1,
      #fff 55%
    );
}

.success-mark {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 48px;
  font-weight: 900;
  box-shadow:
    0 16px 40px
    rgba(39,132,59,.22);
}

.success-page h1 {
  max-width: 650px;
  margin: 12px 0 10px;
  font-size:
    clamp(38px, 6vw, 62px);
  color: #173d28;
}

.success-lead {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.success-reference {
  min-width: 270px;
  margin-top: 26px;
  padding: 16px 22px;
  display: grid;
  gap: 5px;
  border: 1px solid #e0ebe2;
  border-radius: 17px;
  background: white;
}

.success-reference span,
.success-reference small {
  color: var(--muted);
  font-size: 12px;
}

.success-reference b {
  font-size: 23px;
}

.success-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

.success-actions a {
  text-decoration: none;
}

.orders-page {
  max-width: 900px;
}

.order-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.orders-list {
  display: grid;
  gap: 14px;
}

.order-group-card {
  display: grid;
  grid-template-columns:
    110px minmax(0,1fr);
  gap: 16px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 14px;
  background: white;
  transition:
    border-color .2s,
    box-shadow .2s;
}

.order-group-card.highlighted {
  border-color: #69b97d;
  box-shadow:
    0 0 0 4px
    rgba(39,132,59,.08);
}

.order-group-card > img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
  background: #f4f4f4;
}

.order-group-copy {
  min-width: 0;
}

.order-card-top,
.order-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.order-card-top small {
  color: var(--muted);
}

.order-status-pill {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff3dc;
  color: #8b5c00;
  font-size: 10px;
  font-weight: 900;
}

.order-status-pill.active {
  background: #eaf7ed;
  color: #217a42;
}

.order-status-pill.delivered {
  background: #edf5ff;
  color: #285f9e;
}

.order-status-pill.cancelled {
  background: #fff0f0;
  color: #a02d2d;
}

.order-group-copy h3 {
  margin: 10px 0 6px;
  font-size: 19px;
}

.order-group-copy p {
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-card-footer {
  margin-top: 14px;
}

.order-card-footer span {
  color: var(--muted);
  font-size: 12px;
}

.checkout-leg > div {
  display: grid;
  gap: 4px;
}

.checkout-leg small {
  color: var(--muted);
}

.checkout-leg a {
  color: var(--green);
  text-decoration: none;
  font-weight: 800;
}

@media (max-width: 620px) {
  .order-group-card {
    grid-template-columns:
      80px minmax(0,1fr);
  }

  .order-group-card > img {
    width: 80px;
    height: 80px;
  }

  .order-card-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

/* Stage 6 — live tracking */
.order-group-card{cursor:pointer}
.order-details-page{max-width:980px}
.master-progress{margin-bottom:22px}
.master-progress-track{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid var(--line);border-radius:18px;overflow:hidden;background:white}
.progress-step{min-width:0;display:flex;gap:9px;align-items:center;padding:14px 10px;border-right:1px solid #edf1ee;opacity:.48}
.progress-step:last-child{border-right:0}.progress-step.active{opacity:1;background:#f5fbf6}
.progress-step>span{width:28px;height:28px;flex:0 0 auto;display:grid;place-items:center;border-radius:50%;background:#e7ece8;color:#68766d;font-size:12px;font-weight:900}
.progress-step.active>span{background:var(--green);color:white}
.progress-step>div{min-width:0;display:grid;gap:2px}.progress-step b{font-size:12px}.progress-step small{color:var(--muted);font-size:10px;line-height:1.3}
.order-legs{display:grid;gap:18px}.order-leg-card{border:1px solid var(--line);border-radius:22px;padding:20px;background:white}
.order-leg-header{display:flex;justify-content:space-between;align-items:start;gap:20px}.order-leg-header h2{margin:9px 0 5px}.order-leg-header p{margin:0;max-width:650px;color:var(--muted);line-height:1.45}
.leg-total{display:grid;justify-items:end;gap:3px}.leg-total small{color:var(--muted)}.leg-total b{font-size:20px}
.leg-status-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.leg-status-grid>div{display:grid;gap:5px;padding:13px;border-radius:14px;background:#f7faf7}.leg-status-grid small{color:var(--muted)}
.rider-card{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px;margin:12px 0;border:1px solid #dce9df;border-radius:15px;background:#f5fbf6}
.rider-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:white;font-size:22px}
.rider-card>div:nth-child(2){display:grid;gap:3px}.rider-card small,.rider-card span{color:var(--muted)}.rider-card a{text-decoration:none}
.order-map{height:310px;margin-top:14px;overflow:hidden;border-radius:17px;border:1px solid #e1e6e2;background:#f4f6f4}
.map-unavailable{min-height:310px;display:grid;place-items:center;color:var(--muted)}
.order-leg-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}.order-leg-actions button{min-width:120px}
@media(max-width:820px){.master-progress-track{grid-template-columns:1fr}.progress-step{border-right:0;border-bottom:1px solid #edf1ee}.progress-step:last-child{border-bottom:0}}
@media(max-width:620px){.order-leg-header{flex-direction:column}.leg-total{justify-items:start}.leg-status-grid{grid-template-columns:1fr}.rider-card{grid-template-columns:44px minmax(0,1fr)}.rider-card a{grid-column:1/-1;text-align:center}.order-map{height:260px}}


/* Stage 7 — Razorpay online checkout */

.payment-option:has(input:checked) {
  border-color: #65b77d;
  background: #f4fbf5;
  box-shadow: 0 0 0 3px rgba(39,132,59,.06);
}

.payment-option:not(.disabled):hover {
  border-color: #9bc8a6;
}

.payment-option b {
  color: #233b2a;
}

.payment-security-note {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}


/* Home offers section: ADMIN CAROUSEL BANNERS ONLY */

.banner-section[hidden] {
  display: none !important;
}

.promo-carousel-shell {
  position: relative;
}

.promo-carousel {
  width: 100%;
}

.promo-banner-slide {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  border-radius: 24px;
  background: var(--banner-bg, #174d2c);
  color: var(--banner-text, #fff);
  isolation: isolate;
}

.promo-banner-slide.is-clickable {
  cursor: pointer;
}

.promo-banner-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,.72) 0%,
      rgba(0,0,0,.42) 46%,
      rgba(0,0,0,.08) 100%
    );
}

.promo-banner-content {
  position: relative;
  z-index: 2;
  width: min(620px, 76%);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 34px;
}

.promo-banner-kicker {
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: inherit;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.promo-banner-content h3 {
  margin: 0;
  max-width: 580px;
  color: inherit;
  font-size: clamp(27px, 4vw, 44px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.promo-banner-content p {
  margin: 10px 0 0;
  max-width: 520px;
  color: inherit;
  opacity: .9;
  font-size: 15px;
  line-height: 1.45;
}

.promo-banner-cta {
  width: fit-content;
  margin-top: 18px;
  padding: 10px 15px;
  border-radius: 999px;
  background: #fff;
  color: #1f5733;
  font-size: 12px;
  font-weight: 900;
}

.promo-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #244a32;
  box-shadow: 0 8px 28px rgba(0,0,0,.16);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.promo-carousel-arrow[hidden] {
  display: none !important;
}

.promo-carousel-prev {
  left: 12px;
}

.promo-carousel-next {
  right: 12px;
}

.promo-carousel-dots {
  min-height: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.promo-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d1d9d3;
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.promo-dot.active {
  width: 20px;
  background: var(--green);
}

@media (max-width: 620px) {
  .promo-banner-slide,
  .promo-banner-content {
    min-height: 180px;
  }

  .promo-banner-content {
    width: 88%;
    padding: 22px;
  }

  .promo-banner-content h3 {
    font-size: 28px;
  }

  .promo-banner-content p {
    max-width: 92%;
    font-size: 13px;
  }

  .promo-carousel-arrow {
    display: none;
  }
}


/* UI correction — compact home carousel + cart offer hidden-state fix */

/* Keep the home carousel compact instead of using a large hero height. */
.promo-banner-slide,
.promo-banner-content {
  min-height: 150px;
}

.promo-banner-content {
  padding: 20px 28px;
}

.promo-banner-content h3 {
  font-size: clamp(24px, 3vw, 34px);
}

.promo-banner-content p {
  margin-top: 7px;
  font-size: 14px;
}

.promo-banner-cta {
  margin-top: 12px;
  padding: 8px 13px;
}

/* IMPORTANT:
   author CSS display:flex was overriding the browser's [hidden] behavior,
   which created the empty green rounded bar visible in the cart screenshot. */
.applied-offer[hidden],
.unlock-offer[hidden] {
  display: none !important;
}

/* Do not reserve a blank status row when there is no coupon error. */
.offer-panel #couponError:empty {
  display: none;
}

.offer-panel #couponError:not(:empty) {
  display: block;
  margin: 10px 0 0;
}

/* Slightly tighten the savings panel. */
.available-offers {
  margin-top: 12px;
}

.offer-empty {
  margin: 14px 0 2px;
}

@media (max-width: 620px) {
  .promo-banner-slide,
  .promo-banner-content {
    min-height: 130px;
  }

  .promo-banner-content {
    width: 90%;
    padding: 18px 20px;
  }

  .promo-banner-content h3 {
    font-size: 24px;
  }

  .promo-banner-content p {
    font-size: 12px;
  }
}


.unlock-offer-name {
  display: block;
  margin-top: 5px;
  color: #8b6a3a;
  font-size: 12px;
  font-weight: 700;
}


/* FINAL UI FIX — complete carousel image + correct cart offer hidden states */

/* Banner artwork supplied by Admin already contains its own design/text.
   Show the entire image instead of cropping it with object-fit: cover. */
.promo-banner-slide:has(.promo-banner-art-full) {
  min-height: 0;
  height: auto;
  display: block;
  background: #fff;
}

.promo-banner-art-full {
  position: static !important;
  inset: auto !important;
  display: block;
  width: 100%;
  height: auto !important;
  max-height: 180px;
  object-fit: contain !important;
  object-position: center;
  border-radius: 20px;
  background: #fff;
}

.promo-banner-slide:has(.promo-banner-art-full) .promo-banner-overlay,
.promo-banner-slide:has(.promo-banner-art-full) .promo-banner-content {
  display: none !important;
}

/* Keep a compact fallback only for banners without an image. */
.promo-banner-slide:not(:has(.promo-banner-art-full)),
.promo-banner-slide:not(:has(.promo-banner-art-full)) .promo-banner-content {
  min-height: 150px;
}

/* Browser hidden attribute must win over display:flex on bill rows. */
.bill-row[hidden],
#discountRow[hidden],
.applied-offer[hidden],
.unlock-offer[hidden] {
  display: none !important;
}

@media (max-width: 620px) {
  .promo-banner-art-full {
    max-height: 125px;
    border-radius: 16px;
  }
}


/* Cart offer eligibility/application correction */
.offer-choice {
  transition:
    border-color .18s ease,
    background .18s ease,
    transform .18s ease;
}

.offer-choice:hover {
  transform: translateY(-1px);
  border-color: #9bc8a6;
}

.offer-choice.selected {
  border-color: #5caf72;
  background: #eff9f1;
}

.applied-offer {
  border-color: #8bc99b;
  background: #edf9f0;
}

.applied-offer b {
  color: #176b35;
}

.unlock-offer .unlock-track span {
  transition: width .2s ease;
}


/* Missing Profile / Offers pages fix */

.profile-page,
.offers-page {
  max-width: 980px;
}

.profile-grid {
  display: grid;
  gap: 18px;
}

.profile-main-card {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: white;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf7ed;
  color: var(--green);
  font-size: 30px;
  font-weight: 900;
}

.profile-main-copy {
  flex: 1;
}

.profile-main-copy h2 {
  margin: 4px 0 14px;
}

.profile-detail-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid #edf1ee;
}

.profile-detail-line span {
  color: var(--muted);
}

.profile-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.profile-action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 16px;
  background: white;
  color: inherit;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.profile-action-card > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f3f8f4;
  font-size: 19px;
}

.profile-action-card > div {
  display: grid;
  gap: 4px;
}

.profile-action-card small {
  color: var(--muted);
}

.profile-logout {
  font: inherit;
}

.profile-links-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
}

.profile-links-panel a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.offers-page-grid {
  display: grid;
  gap: 14px;
}

.offer-page-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 18px;
  background: white;
}

.offer-page-copy {
  min-width: 0;
}

.offer-page-card h3 {
  margin: 8px 0 6px;
  color: #173d28;
}

.offer-page-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.offer-page-card small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
}

.offer-pill {
  display: inline-flex;
  background: #fff2e4;
  color: #c86408;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: #58665d;
}

.offer-page-card > a {
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .profile-action-grid {
    grid-template-columns: 1fr;
  }

  .profile-main-card,
  .offer-page-card {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Partner / Restaurant / Rider registration */

.partner-nav-link {
  color: var(--orange) !important;
  font-weight: 900 !important;
}

.partner-home-section {
  padding-top: 20px;
  padding-bottom: 42px;
}

.partner-home-card {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: 24px;
  background:
    linear-gradient(
      135deg,
      #173d28 0%,
      #22623b 100%
    );
  color: white;
}

.partner-home-copy h2 {
  margin: 7px 0 9px;
  color: white;
  font-size: 28px;
}

.partner-home-copy p {
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.5;
}

.partner-home-copy .eyebrow {
  color: #ffb56f;
}

.partner-home-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.partner-restaurant-btn,
.partner-rider-btn {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-radius: 16px;
  background: white;
  color: #173d28;
  text-decoration: none;
}

.partner-restaurant-btn > span,
.partner-rider-btn > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef8f1;
  font-size: 20px;
}

.partner-restaurant-btn > div,
.partner-rider-btn > div {
  display: grid;
  gap: 3px;
}

.partner-restaurant-btn small,
.partner-rider-btn small {
  color: #728078;
  line-height: 1.3;
}

.partner-restaurant-btn strong,
.partner-rider-btn strong {
  color: var(--orange);
  font-size: 20px;
}

.partner-page {
  max-width: 1020px;
}

.partner-hero {
  max-width: 760px;
  margin: 18px 0 28px;
}

.partner-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(40px,6vw,66px);
  line-height: .98;
  letter-spacing: -.05em;
  color: #173d28;
}

.partner-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.partner-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.partner-choice {
  display: grid;
  grid-template-columns: 54px minmax(0,1fr);
  gap: 15px;
  align-items: start;
  padding: 20px;
  border: 1px solid #dfe7e1;
  border-radius: 20px;
  background: white;
  text-align: left;
  cursor: pointer;
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.partner-choice:hover {
  transform: translateY(-2px);
}

.partner-choice.active {
  border-color: #68b67c;
  box-shadow: 0 0 0 4px rgba(39,132,59,.07);
  background: #f6fbf7;
}

.partner-choice-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #edf8f0;
  font-size: 25px;
}

.partner-choice h2 {
  margin: 4px 0 7px;
  color: #173d28;
}

.partner-choice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.partner-choice small {
  color: var(--orange);
  font-weight: 900;
  letter-spacing: .08em;
}

.partner-choice strong {
  grid-column: 2;
  margin-top: 12px;
  color: var(--green);
}

.partner-form-shell {
  scroll-margin-top: 100px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  background: white;
}

.partner-form-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.partner-form-heading h2 {
  margin: 7px 0 6px;
  color: #173d28;
  font-size: 30px;
}

.partner-form-heading p {
  margin: 0;
  color: var(--muted);
}

.partner-type-badge {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: #fff1e2;
  color: #c86106;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.partner-register-form {
  display: grid;
  gap: 16px;
}

.partner-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.partner-register-form label {
  display: grid;
  gap: 7px;
  color: #304b39;
  font-weight: 800;
}

.partner-register-form input,
.partner-register-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dce5df;
  border-radius: 13px;
  padding: 13px 14px;
  background: white;
  font: inherit;
  font-weight: 500;
  outline: none;
}

.partner-register-form input:focus,
.partner-register-form textarea:focus {
  border-color: #75b987;
  box-shadow: 0 0 0 3px rgba(39,132,59,.07);
}

.partner-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px;
  border-radius: 13px;
  background: #f6faf7;
  color: #607067;
}

.partner-consent > span {
  color: var(--green);
  font-weight: 900;
}

.partner-consent p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.partner-submit {
  width: fit-content;
  min-width: 250px;
}

.partner-benefits {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin: 22px 0 36px;
}

.partner-benefits article {
  display: grid;
  gap: 7px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
}

.partner-benefits article > span {
  font-size: 23px;
}

.partner-benefits p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .partner-home-card {
    grid-template-columns: 1fr;
  }

  .partner-benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .partner-home-actions,
  .partner-choice-grid,
  .partner-field-grid {
    grid-template-columns: 1fr;
  }

  .partner-choice strong {
    grid-column: 2;
  }

  .partner-submit {
    width: 100%;
  }

  .partner-hero h1 {
    font-size: 42px;
  }
}


/* =========================================================
   TOP NAVIGATION BUTTONS
   Partner = orange
   Home / Orders / Profile = green
   Click = quick blink/glow, then page opens
   ========================================================= */

.topnav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.topnav .nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 17px;
  border-radius: 13px;
  border: 1.5px solid transparent;
  text-decoration: none !important;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform .16s ease,
    background .16s ease,
    border-color .16s ease,
    color .16s ease,
    box-shadow .16s ease;
}

.topnav .nav-btn-main {
  color: #176b35;
  background: #f6fbf7;
  border-color: #86c899;
  box-shadow: 0 3px 12px rgba(28, 122, 59, .05);
}

.topnav .nav-btn-main:hover {
  color: #0f5a2a;
  background: #eaf7ed;
  border-color: #53ae6c;
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(28, 122, 59, .12);
}

.topnav .nav-btn-partner {
  color: #e96700 !important;
  background: #fff8f1;
  border-color: #ff9b4a;
  box-shadow: 0 3px 12px rgba(255, 111, 0, .06);
}

.topnav .nav-btn-partner:hover {
  color: #c95300 !important;
  background: #fff0e2;
  border-color: #ff7600;
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(255, 111, 0, .14);
}

.topnav .nav-btn-main.nav-active {
  color: #fff;
  background: #237a3f;
  border-color: #237a3f;
  box-shadow: 0 7px 18px rgba(35, 122, 63, .20);
}

.topnav .nav-btn-partner.nav-active {
  color: #fff !important;
  background: #f26a00;
  border-color: #f26a00;
  box-shadow: 0 7px 18px rgba(242, 106, 0, .20);
}

.topnav .nav-click-blink {
  animation: univNavBlink .32s ease-in-out 1;
  pointer-events: none;
}

@keyframes univNavBlink {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }

  35% {
    transform: scale(.94);
    filter: brightness(1.14);
    box-shadow:
      0 0 0 5px rgba(73, 176, 98, .17),
      0 0 22px rgba(73, 176, 98, .25);
  }

  70% {
    transform: scale(1.03);
    filter: brightness(1.06);
  }

  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.topnav .nav-btn-partner.nav-click-blink {
  animation-name: univPartnerBlink;
}

@keyframes univPartnerBlink {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }

  35% {
    transform: scale(.94);
    filter: brightness(1.12);
    box-shadow:
      0 0 0 5px rgba(255, 123, 31, .18),
      0 0 22px rgba(255, 123, 31, .28);
  }

  70% {
    transform: scale(1.03);
    filter: brightness(1.05);
  }

  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@media (max-width: 820px) {
  .topnav {
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

  .topnav .nav-btn {
    min-height: 39px;
    padding: 8px 13px;
    border-radius: 12px;
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  .topnav {
    width: 100%;
    order: 3;
    padding-top: 7px;
  }

  .topnav .nav-btn {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 8px 12px;
  }
}


/* =========================================================
   CUSTOMER LOGIN + SIGN UP
   Based on the supplied reference, without referral code.
   ========================================================= */

.auth-card-v2 {
  max-width: 500px;
}

.auth-mode[hidden] {
  display: none !important;
}

.auth-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.auth-heading-row h2 {
  margin: 0;
  color: #111;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.04em;
}

.auth-heading-row p {
  margin: 12px 0 0;
  color: #111;
  font-size: 17px;
}

.auth-switch-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--orange);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.auth-switch-link:hover {
  text-decoration: underline;
}

.auth-food-icon {
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fafafa;
  box-shadow:
    0 8px 28px rgba(0,0,0,.06);
  font-size: 42px;
}

.auth-mini-line {
  width: 36px;
  height: 2px;
  margin: 25px 0 30px;
  background: #161616;
}

.auth-input-box {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
  padding: 17px 20px;
  border: 1px solid #d7d7d7;
  background: white;
}

.auth-input-box + .auth-input-box {
  border-top: 0;
}

.auth-input-box > span {
  color: #767676;
  font-size: 14px;
  font-weight: 750;
}

.auth-input-box input {
  width: 100%;
  box-sizing: border-box;
  padding: 4px 0;
  border: 0 !important;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  box-shadow: none !important;
}

.auth-phone-row {
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.auth-phone-row > span {
  color: #333;
  font-size: 15px;
  font-weight: 750;
}

.auth-main-btn {
  margin-top: 24px;
  min-height: 58px;
  border-radius: 0;
  font-size: 16px;
  letter-spacing: .01em;
}

.auth-secondary-btn {
  margin-top: 10px;
}

.signup-fields {
  display: grid;
}

.auth-status {
  padding: 0;
  margin: 12px 0 0;
}

.auth-status:empty {
  display: none;
}

.auth-terms {
  margin: 9px 0 0;
  color: #202020;
  font-size: 13px;
  line-height: 1.45;
}

.auth-terms a {
  color: #111;
  font-weight: 850;
}

@media (max-width: 620px) {
  .auth-heading-row h2 {
    font-size: 32px;
  }

  .auth-food-icon {
    width: 68px;
    height: 68px;
    font-size: 34px;
  }

  .auth-input-box {
    padding: 15px 16px;
  }
}


/* =========================================================
   AUTH REFINEMENT
   - Home Sign in/Create account
   - no +91 visual prefix
   - no placeholders
   - smaller reference-sized inputs
   - clearer line icons
   ========================================================= */

.home-auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.home-auth-actions[hidden] {
  display: none !important;
}

.home-signin-btn,
.home-create-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 11px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.home-signin-btn {
  border: 1px solid #83c294;
  background: #f6fbf7;
  color: #176b35;
}

.home-signin-btn:hover {
  background: #ebf7ee;
}

.home-create-btn {
  border: 1px solid #ff8a31;
  background: #ff7108;
  color: #fff;
}

.home-create-btn:hover {
  background: #e96300;
}

/* compact form card */
.auth-card-v2 {
  max-width: 480px;
  padding: 30px 34px;
}

.auth-food-icon {
  width: 76px;
  height: 76px;
  background: #f4faf5;
  color: #176b35;
  box-shadow: none;
}

.auth-line-icon {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-mini-line {
  margin: 20px 0 24px;
}

/* reference-sized form rows */
.auth-input-box {
  min-height: 68px;
  padding: 11px 16px;
  gap: 5px;
}

.auth-input-box > span {
  color: #59615d;
  font-size: 13px;
  font-weight: 800;
}

.auth-input-box input {
  min-height: 27px;
  padding: 0;
  font-size: 16px;
  color: #151515;
}

/* remove old phone prefix spacing */
.auth-phone-row {
  display: block !important;
}

.auth-phone-row input {
  width: 100%;
}

.auth-main-btn {
  min-height: 52px;
  margin-top: 18px;
  border-radius: 2px;
}

.auth-secondary-btn {
  min-height: 46px;
}

/* signup fields look like one clean stacked box */
.signup-fields .auth-input-box {
  border-radius: 0;
}

.signup-fields .auth-input-box:first-child {
  border-radius: 2px 2px 0 0;
}

.signup-fields .auth-input-box:nth-child(3) {
  border-radius: 0 0 2px 2px;
}

@media (max-width: 1100px) {
  .home-auth-actions {
    order: 2;
  }
}

@media (max-width: 820px) {
  .home-auth-actions {
    width: 100%;
    margin-left: 0;
    order: 2;
  }

  .home-signin-btn,
  .home-create-btn {
    flex: 1;
  }
}

@media (max-width: 620px) {
  .auth-card-v2 {
    padding: 24px 20px;
  }

  .auth-input-box {
    min-height: 62px;
    padding: 10px 14px;
  }

  .auth-food-icon {
    width: 66px;
    height: 66px;
  }

  .auth-line-icon {
    width: 38px;
    height: 38px;
  }
}


/* =========================================================
   FINAL GUEST / SIGNED-IN HEADER FLOW
   Guest: Partner with us | Home | Orders | Sign in
   Signed in: Partner with us | Home | Orders | Profile
   Search remains in Home header.
   ========================================================= */

.home-auth-actions {
  display: none !important;
}

/* Give search priority in the desktop header. */
.topbar-inner {
  gap: 14px;
}

.top-search {
  flex: 1 1 360px;
  min-width: 240px;
  max-width: 560px;
}

.top-search input {
  width: 100%;
}

/* Account slot should look like the green nav buttons. */
#accountNavButton[data-auth-state="guest"] {
  color: #176b35;
  background: #f6fbf7;
  border-color: #86c899;
}

#accountNavButton[data-auth-state="signed-in"] {
  color: #176b35;
}

/* Keep the nav compact enough that search does not disappear. */
.topnav .nav-btn {
  padding-left: 15px;
  padding-right: 15px;
}

@media (max-width: 1100px) {
  .topbar-inner {
    flex-wrap: wrap;
  }

  .top-search {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
  }

  .topnav {
    margin-left: auto;
  }
}

@media (max-width: 620px) {
  .top-search {
    width: 100%;
    min-width: 100%;
  }
}


/* FREE DELIVERY card removed from Home */
.hero { grid-template-columns: 1fr !important; }
.delivery-card { display: none !important; }
.hero-copy { max-width: 900px; }


/* Modern location pill */
.location-button.location-pill {
  min-width: 200px; height: 54px; display: grid;
  grid-template-columns: 36px 1fr 20px; align-items: center; gap: 9px;
  padding: 7px 12px; border: 1px solid #e4eee6; border-radius: 18px;
  background: linear-gradient(135deg,#f7fcf8,#edf8f0); color: #173d28;
  cursor: pointer; text-align: left; box-shadow: 0 4px 14px rgba(25,112,54,.06);
  transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.location-button.location-pill:hover { transform: translateY(-1px); border-color:#a7d5b3; background:linear-gradient(135deg,#f2faf4,#e7f5eb); box-shadow:0 7px 18px rgba(25,112,54,.11); }
.location-icon { width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#dff3e5;color:#218943; }
.location-icon svg,.location-arrow svg { width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }
.location-text { min-width:0;display:grid;gap:2px; }
.location-text small { color:#6f7c72;font-size:11px;font-weight:600;line-height:1; }
.location-text b { overflow:hidden;color:#111;font-size:14px;font-weight:800;line-height:1.2;white-space:nowrap;text-overflow:ellipsis; }
.location-arrow { display:grid;place-items:center;color:#288047; }
.location-arrow svg { width:18px;height:18px; }
@media (max-width:700px) { .location-button.location-pill { min-width:180px;height:50px;padding:6px 10px; } .location-text b { font-size:13px; } }


/* =========================================================
   SEARCH AUTOCOMPLETE
   ========================================================= */

.search-autocomplete {
  position: relative;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1000;
  overflow: hidden;
  max-height: 430px;
  padding: 7px;
  border: 1px solid #e1e7e3;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 18px 46px rgba(26, 61, 39, .15);
}

.search-suggestions[hidden] {
  display: none !important;
}

.search-suggestion-item {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #1a241d;
  text-align: left;
  cursor: pointer;
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
  background: #f1f8f3;
}

.search-suggestion-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e9f6ed;
  color: #1c7c3b;
  font-size: 18px;
}

.search-suggestion-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.search-suggestion-copy b,
.search-suggestion-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion-copy b {
  font-size: 14px;
}

.search-suggestion-copy small {
  color: #748078;
  font-size: 12px;
}

.search-suggestion-type {
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff4e9;
  color: #cb6304;
  font-size: 10px;
  font-weight: 850;
}

@media (max-width: 720px) {
  .search-suggestions {
    position: fixed;
    top: auto;
    left: 12px;
    right: 12px;
    max-height: 55vh;
  }

  .search-suggestion-type {
    display: none;
  }
}
