h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Prata", serif;
  font-weight: 400 !important;
}

p {
  font-family: "Inter", sans-serif;
}
.font_prata {
  font-family: "Prata", serif;
}
.font_inter {
  font-family: "Inter", sans-serif;
}
.font-fantasy {
  font-family: fantasy, serif !important;
}
.fs-12{
font-size: 12px;
}
.fs-14 {
  font-size: 14px;
}
.fs-15 {
  font-size: 15px;
}
.fs-16 {
  font-size: 16px;
}
.fs-17 {
  font-size: 17px;
}
.fs-18 {
  font-size: 18px;
}
.fs-19 {
  font-size: 19px;
}
.fs-20 {
  font-size: 20px;
}
.fs-21 {
  font-size: 21px;
}
.fs-22 {
  font-size: 22px;
}
.fs-23 {
  font-size: 23px;
}
.fs-24 {
  font-size: 24px;
}
.fs-50 {
  font-size: 50px;
}
.text_primary {
  color: var(--text-primary);
}
.text-color1 {
  color: #112a2a;
}
.text-color2 {
  color: #c3c3c3;
}
header,
.main-nav-scrolled {
  position: fixed;
  width: 100%;
  top: 0;
  transition: all 0.2s ease-in-out;
}
.main-nav-scrolled {
  background: #fff;
  z-index: 1000;
  box-shadow: 0 0 1.25rem rgb(41 50 64 / 14%);
  transition: all 0.2s ease-in-out;
}
.main-nav-scrolled .top_header .navbar-nav .nav-link {
  color: #2a2828 !important;
}
.main-nav-scrolled .top_header .navbar-nav .nav-link:hover {
 color: var(--text-primary) !important;
}

.main-nav-scrolled .top_header .navbar-nav .nav-item.active .nav-link {
  color: var(--text-primary) !important;
}
.header-content-top {
  height: 45px;
}
@media screen and (max-width: 600px) {
  .main_title {
    font-size: 40px !important;
  }
  .sec_title {
    font-size: 35px !important;
  }
  p {
    font-size: 14px !important;
  }
  .w-sm-100 {
    width: 100% !important;
  }
  .btn_primary_outline,
  .btn_primary {
    font-size: 14px !important;
    padding: 7px 15px !important;
  }
  .social-bookmark ul li a {
    width: 25px !important;
    line-height: 25px !important;
  }
}
.main_title {
  font-size: 60px;
  font-weight: 400;
}
.sec_title {
  font-size: 45px;
  font-weight: 400;
  color: #112a2a;
}
.bg_primary {
  background: var(--text-primary);
}
.bg_deep_primary1 {
  background: #755b2d !important;
}
.bg_soft_primary {
  background: #f4f2eb;
}
.bg_deep_primary {
  background: #f3f0eb;
}
.bg-dark-green {
  background: #081d1c;
}
.bg-swamp {
  background: var(--top-header-bg);
}
.details-bg-1 {
  background-color: #f4f1eb;
}
.details-bg-2 {
  background-color: #f4f4f4 !important;
}
.logo-resize {
  height: 60px;
}
.top_header {
  width: 100%;
  z-index: 999;
}

.top_header .navbar-nav .nav-link {
  color: var(--nav-text);
  font-size: 16px;
  font-weight: 500;
  padding: 0 16px;
  font-family: "Prata";
  line-height: 55px;
  text-transform: capitalize;
}

.top_header .navbar-nav .nav-link.cartBtn {
  border: 2px solid #ddd;
  width: 56px;
  height: 56px;
  padding: 0;
}

.top_header .navbar-nav .nav-link:hover {
  color: var(--text-primary);
}

.top_header .navbar-nav .nav-item.active .nav-link {
  color: var(--text-primary);
  font-weight: 600;
}

.top_header.menu_fixed {
  width: 100%;
  display: block;
  position: fixed;
  font-weight: bold;
  background: #ffffff;
  -webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15);
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15);
  /*    transition: all 300ms linear 0s;*/
  height: auto;
  z-index: 9999;
  color: #fff !important;
  top: 0;
}
.header-content-top .type-one  path{
  stroke: var(--text-primary);
}
.header-content-top .type-two  path{
  fill: var(--text-primary);
}
.h-250 {
  height: 250px;
}
.btn_dark_green {
  font-size: 15px;
  padding: 10px 14px;
  font-family: "Prata", serif;
  background: #183a3a;
  border: 1px solid #183a3a;
  min-width: 165px;
  text-align: center;
  color: #fff !important;
  animation-duration: 0.9s;
  animation-delay: 0.5s;
  border-radius: 14px;
  line-height: 33px;
  transform: translateY(0);
  transition: all 0.2s ease-in-out;
}
.btn_dark_green:focus,
.btn_dark_green:hover {
  background: #1e4242;
  border: 1px solid #1e4242;
  color: #fff !important;
  transform: translateY(-0.15rem);
  box-shadow: 0 0.25rem 0.75rem rgba(30, 34, 40, 0.15);
}

.btn_primary {
  font-size: 16px;
  padding: 12px 15px;
  font-family: "Prata", serif;
  border: 1px solid var(--text-primary);
  background: var(--text-primary);
  min-width: 186px;
  text-align: center;
  color: #fff;
  animation-duration: 0.9s;
  animation-delay: 0.5s;
  border-radius: 8px;
  line-height: 33px;
  transform: translateY(0);
  transition: all 0.2s ease-in-out;
}

.btn_primary:hover {
  background: var(--text-primary);
  border: 1px solid var(--text-primary);
  color: #fff !important;
  transform: translateY(-0.15rem);
  box-shadow: 0 0.25rem 0.75rem rgba(30, 34, 40, 0.15);
}

.btn_primary_outline {
  font-size: 16px;
  padding: 12px 15px;
  font-family: "Prata", serif;
  border: 1px solid var(--text-primary);
  min-width: 186px;
  text-align: center;
  animation-duration: 0.9s;
  animation-delay: 0.5s;
  border-radius: 8px;
  line-height: 33px;
  transform: translateY(0);
  transition: all 0.2s ease-in-out;
}

.btn_primary_outline:hover {
  background: var(--text-primary);
  border: 1px solid var(--text-primary);
  color: #fff !important;
  transform: translateY(-0.15rem);
  box-shadow: 0 0.25rem 0.75rem rgba(30, 34, 40, 0.15);
}

.btn_secondary_outline {
  border: 1px solid #b0b0b026;
  color: #2a2a2a;
  font-size: 16px;
  padding: 12px 15px;
  font-family: "Prata", serif;
  min-width: 186px;
  text-align: center;
  animation-duration: 0.9s;
  animation-delay: 0.5s;
  border-radius: 8px;
  line-height: 33px;
  transform: translateY(0);
  transition: all 0.2s ease-in-out;
}

.btn_secondary_outline:hover {
  color: #2a2a2a;
  transform: translateY(-0.15rem);
  box-shadow: 0 0.25rem 0.75rem rgba(30, 34, 40, 0.15);
}

.btn_secondary {
  font-size: 16px;
  padding: 12px 15px;
  font-family: "Prata", serif;
  border: 1px solid #f4f4f4;
  background: #f4f4f4;
  min-width: 186px;
  text-align: center;
  color: #000000;
  animation-duration: 0.9s;
  animation-delay: 0.5s;
  border-radius: 8px;
  line-height: 33px;
  transform: translateY(0);
  transition: all 0.2s ease-in-out;
}

.btn_secondary:hover {
  background: #f4f4f4;
  border: 1px solid #f4f4f4;
  color: #000000 !important;
  transform: translateY(-0.15rem);
  box-shadow: 0 0.25rem 0.75rem rgba(30, 34, 40, 0.15);
}

.btn.btn-circle.btn-video {
  width: 5rem;
  height: 5rem;
  z-index: 3;
  transition: transform 0.3s ease;
  transform: scale(1);
}
.btn.btn-circle.btn-video::before {
  content: "";
  border: 1px solid #ffffff;
  padding: 5px;
  top: -7px;
  position: absolute;
  left: -7px;
  width: 118%;
  height: 118%;
  border-radius: 50%;
}

.btn.btn-circle.btn-video:hover {
  transform: scale(1.07);
  background-color: var(--text-primary);
}
.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Georgia", serif;
  font-size: 20px;
  color: #143c3c;
  text-decoration: none;
  cursor: pointer;
}
.arrow-icon {
  width: 27px;
  height: 27px;
  background-color: #225656;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s ease;
}
.arrow-icon svg {
  width: 16px;
  height: 16px;
  stroke: white;
  transition: transform 0.2s ease;
  transform: rotate(-45deg) scale(1.1);
}
.cart-button:hover .arrow-icon svg {
  transform: rotate(0deg) scale(1.1);
  color: #225656;
}
.cart-button:hover {
  color: #225656;
}

.social-bookmark ul li a {
  display: inline-block;
  font-size: 16px;
  width: 30px;
  color: #fff;
  background: var(--text-primary);
  line-height: 30px;
}

.menu-slider-img {
  height: 230px;
  width: 100%;
  margin-bottom: 25px;
}
.menu-slider-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* food menu css  */
.food-menu .col-md-6 {
  position: relative;
}
@media (min-width: 1400px) {
  .food-menu .col-md-6::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0px;
    bottom: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, rgba(17, 42, 42, 0) 11.06%, var(--text-primary) 50.96%, rgba(17, 42, 42, 0) 85.58%);
  }
  .food-menu .col-md-6:first-child::before {
    width: 0px;
  }
}

@media (min-width: 768px) and (max-width: 1400px) {
  .food-menu .col-md-6::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0px;
    bottom: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, rgba(17, 42, 42, 0) 11.06%, var(--text-primary) 50.96%, rgba(17, 42, 42, 0) 85.58%);
  }
  .food-menu .col-md-6:first-child::before {
    width: 0px;
  }
  .food-menu .col-md-6:last-child::before {
    width: 0px;
  }
}

.menu-item {
  margin-bottom: 35px;
}
.menu-item:last-child {
  margin-bottom: 0px;
}

.food-title {
  font-size: 24px;
  color: var(--text-primary);
}
.food-item {
  background: #193838;
  padding: 20px;
  border-radius: 20px;
}

.dot-fill {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 15px;
}
.dot-fill:last-child {
  margin-bottom: 0;
}

.food-description {
  white-space: nowrap;
  flex: 0 0 auto;
  font-size: 16px;
  margin-right: 3px;
  color: #fff;
  font-family: "Prata", serif;
}

.dots {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
  margin-right: 25px;
}

.dots::before {
  content: "................................................................................";
  display: inline-block;
  width: 100%;
  color: #fff;
  font-weight: 600;
}

.food-price {
  flex: 0 0 auto;
  font-size: 16px;
  color: var(--text-primary);
  font-family: "Prata", serif;
}
/* end food menu css  */
.expert-img {
  height: 250px;
  width: 100%;
}
.expert-img img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.expert-slider {
  border-radius: 50px;
  /* height: 500px; */
  position: relative;
}
.expert-slider::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  background-color: #0000008c;
  z-index: 1;
}
.expert-slider img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 50px;
}
.expert-slider-text {
  position: absolute;
  bottom: 40px;
  right: 50px;
  color: #fff;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
}
.btn-expert {
  color: #e9ba66;
  border: 1px solid var(--text-primary);
  background-color: var(--text-primary)30;
  padding: 20px;
  border-radius: 50%;
}
.btn-expert svg path{
  fill: var(--text-primary);

}
.expert-slider:hover .expert-slider-text .btn-expert {
  opacity: 1;
  transform: translateY(-0.15rem);
}
.expert-slider .expert-slider-text .btn-expert {
  opacity: 0;
  transform: translateY(0);
  transition: all 0.2s ease-in-out;
}
.table-book {
  border-radius: 40px;
  transform: perspective(700px) rotateY(345deg) !important;
  padding-right: 40px;
}

.table-book img {
  border-radius: 40px;
}

.custom-control {
  background-color: #f3f3f3;
  border: 0;
  border-radius: 10px;
  padding: 15px 20px;
  font-family: "Prata", serif;
}
.custom-input-group-text {
  background-color: #f3f3f3;
  border: 0;
  border-radius: 10px 0 0 10px;
  padding: 15px 0px 15px 20px;
}
.custom-control:focus {
  outline: none;
  box-shadow: none;
  border: 0 !important;
  background-color: #f3f3f3 !important;
}
.testimonial-card {
  background-color: white;
  padding: 40px 20px 20px;
  border-radius: 10px;
  position: relative;
  margin-top: 140px;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  transform: skewY(346deg);
  transform-origin: top left;
  z-index: 0;
}
.testimonial-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.testimonial-profile {
  position: absolute;
  top: -120px;
  left: 15px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
}

.testimonial-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonial-text {
  color: #797b78;
  text-align: center;
  font-family: "Prata", serif;
}
.testimonial-name {
  color: #797b78;
  text-align: center;
  font-family: "Prata", serif;
}

.owl-carousel .owl-stage {
  display: flex;
}
.owl-carousel .owl-stage .owl-item {
  display: flex;
  flex: 1 0 auto;
}
.expert-carousel .owl-dots .owl-dot span,
.testimonial-carousel .owl-dots .owl-dot span {
  background: #225656;
}

.expert-carousel .owl-dots .owl-dot.active span,
.expert-carousel .owl-dots .owl-dot:hover span,
.testimonial-carousel .owl-dots .owl-dot.active span,
.testimonial-carousel .owl-dots .owl-dot:hover span {
  background: var(--text-primary);
}
select {
  height: 100% !important;
}
.select2-container .select2-selection--single {
  height: 100% !important;
  background-color: #f3f3f3 !important;
  border: 0px !important;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}
.select2-container .select2-selection--single .select2-selection__rendered {
  height: 100% !important;
  display: flex;
  align-items: center;
  padding-left: 25px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
  right: 0px;
  width: 50px !important;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: var(--text-primary) !important;
  color: white;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
  background: var(--text-primary) !important;
  -webkit-box-shadow: none;
  box-shadow: none;

  border-color: var(--text-primary) !important;
}

.common-bg {
  background-color: var(--header-bg);
}
.common-bg-img{
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  z-index: 1;
  height: 100%;
  width: 100%;
}
.z-1{
  z-index: 1;
}

.grid-container {
  display: grid;
  gap: 15px;
}

/* Common styling for image boxes */
.gallery-img-box {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.gallery-img-box img.gallery-img-size {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-img-box:hover img.gallery-img-size {
  transform: scale(1.05);
}

/* Responsive row height */
.grid-container {
  grid-auto-rows: 200px;
}
@media (max-width: 767px) {
  .grid-container {
    grid-auto-rows: 250px;
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .grid-container {
    grid-auto-rows: 300px;
  }
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .grid-container {
    grid-auto-rows: 300px;
  }
  .span-2-col {
    grid-column: span 2;
  }
  .span-3-col {
    grid-column: span 3;
  }
  .span-4-col {
    grid-column: span 4;
  }
  .span-2-row {
    grid-row: span 2;
  }
  .grid-container {
    grid-template-columns: repeat(4, 1fr);
  }
}
.category-search {
  border: 0 !important;
  min-width: 290px !important;
  width: auto !important;
  padding: 10px 40px 10px 20px !important;
  border-radius: 10px !important;
  background: #ffff !important;
  position: relative;
}
.category-search::before {
  content: "";
  position: absolute;
  right: 10px;
  top: 10px;
  width: 22px;
  height: 22px;
  background-image: url('data:image/svg+xml;utf8,<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.3077 18.6154C7.46681 18.6154 5.66726 18.0695 4.13662 17.0468C2.60598 16.0241 1.41299 14.5703 0.708512 12.8696C0.00403229 11.1689 -0.180292 9.29732 0.178851 7.49185C0.537994 5.68634 1.42446 4.02787 2.72617 2.72617C4.02787 1.42446 5.68634 0.537994 7.49185 0.178851C9.29732 -0.180292 11.1689 0.00403229 12.8696 0.708512C14.5703 1.41299 16.0241 2.60598 17.0468 4.13662C18.0695 5.66726 18.6154 7.46681 18.6154 9.3077C18.6154 10.5299 18.3746 11.7403 17.9069 12.8696C17.4391 13.9989 16.7535 15.0249 15.8892 15.8892C15.0249 16.7535 13.9989 17.4391 12.8696 17.9069C11.7403 18.3746 10.5299 18.6154 9.3077 18.6154ZM9.3077 1.86648C7.84086 1.86648 6.40695 2.30146 5.18731 3.1164C3.96768 3.93132 3.01709 5.08963 2.45576 6.4448C1.89442 7.79999 1.74755 9.29114 2.03371 10.7298C2.31988 12.1685 3.02624 13.49 4.06344 14.5272C5.10066 15.5644 6.42214 16.2708 7.86081 16.5569C9.29942 16.8431 10.7906 16.6962 12.1459 16.1349C13.501 15.5735 14.6593 14.623 15.4743 13.4033C16.2892 12.1837 16.7242 10.7498 16.7242 9.28298C16.7242 7.31599 15.9429 5.42958 14.5519 4.03872C13.1611 2.64786 11.2747 1.86648 9.3077 1.86648Z" fill="%23CECECE"/><path d="M21.0957 21.9997C20.9768 22.0002 20.8589 21.977 20.7492 21.9314C20.6394 21.8859 20.5397 21.8189 20.4562 21.7343L15.4734 16.7521C15.3135 16.5805 15.2265 16.3536 15.2306 16.1192C15.2347 15.8848 15.3298 15.6613 15.4956 15.4954C15.6613 15.3296 15.885 15.2347 16.1194 15.2306C16.3539 15.2265 16.5807 15.3135 16.7523 15.4733L21.7351 20.4556C21.9045 20.6252 21.9997 20.8551 21.9997 21.0949C21.9997 21.3346 21.9045 21.5646 21.7351 21.7343C21.6516 21.8189 21.552 21.8859 21.4422 21.9314C21.3324 21.977 21.2145 22.0002 21.0957 21.9997Z" fill="%23CECECE"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.product-card {
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
}
.product-card img {
  border-radius: 10px;
  width: 200px;
  height: 185px;
  object-fit: cover;
}
.online-order-img{
  border-radius: 10px;
  width: 200px;
  height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.online-order-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ws-nowrap{
  white-space: nowrap;
}

.add-cart-btn {
  color: var(--text-primary);
  font-size: 16px;
  border: 0;
  background: none;
  padding: 0;
}

.add-cart-btn:hover,
.add-cart-btn:focus {
  border: 0;
  box-shadow: none;
}
.cart-close-btn {
  border: 0;
  background: none;
  padding: 0;
}
.cart-close-btn:hover,
.cart-close-btn:focus {
  border: 0;
  box-shadow: none;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid #eee7d7;
  padding: 5px 12px;
  border-radius: 10px;
  font-family: "Prata";
}
.qty-control button {
  border: 0;
  background: #f4f1eb;
  padding: 13px 9px;
  border-radius: 9px;
  line-height: 1px;
  font-size: 25px;
  font-weight: 900;
}
.cart-box {
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
}
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 15px;
  font-family: "Prata";
  border-bottom: 1px solid #eee7d7;
}
.border_bottom1 {
  border-bottom: 1px solid #eee7d7;
}
.cart-item img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}
.cart-summary {
  font-size: 0.9rem;
  font-family: "Prata";
}
.btn-checkout {
  background: var(--text-primary);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  width: 100%;
  font-family: "Prata";
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 16px;
}
.category-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.category-scroll {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  background: #fff;
  padding: 6px 10px 0px;
  border-radius: 10px;
  width: 100%;
}
.category-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}
.category-scroll.nav-tabs {
  flex-wrap: nowrap;
  border-bottom: none;
}
.category-scroll.nav-tabs .nav-link {
  white-space: nowrap;
  padding: 14px 20px 16px;
  border: none;
  border-bottom: 4px solid transparent;
  color: #646464;
  font-family: "Prata";
  font-size: 15px;
  line-height: 15px;
}
.category-scroll.nav-tabs .nav-link.active {
  border-bottom: 4px solid var(--text-primary);
}
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  width: 40px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  z-index: 5;
}
.scroll-btn.left {
  left: 0px;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  box-shadow: 4px 0px 9px 0px rgb(182 139 76 / 14%);
}
.scroll-btn.right {
  right: 0px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: -4px 0px 9px 0px rgb(182 139 76 / 14%);
}
.scroll-btn.hidden {
  display: none;
}
#foodDetailModal .select2-container .select2-selection--single .select2-selection__rendered {
  padding: 10px 10px 10px 15px !important;
}
.food-details-img {
  border-radius: 10px;
  overflow: hidden;
  background-color: #f5f7fb;
  padding: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.food-details-img img {
  width: auto;
  height: auto;
}
.custom-control-two .select2-container .select2-selection--single {
  border-radius: 10px !important;
}
.custom-control-two .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 45px !important;
  font-family: "Prata", serif;
}
.custom-control-two .select2-container {
  width: 300px !important;
}
.custom-control-two .select2-container .select2-selection--single {
  background-color: #ffffff !important;
  border: 1px solid #eee7d7 !important;
}
.custom-control-three .select2-container .select2-selection--single {
  border-radius: 10px !important;
}
.custom-control-three .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 55px !important;
  font-family: "Prata", serif;
}
.custom-control-three .select2-container {
    width: 100% !important;
}

/* checkout table start  */
.checkout-table {
  background: white;
  border-radius: 10px;
}
@media screen and (min-width: 768px) {
  .checkout-table thead th,
  .checkout-table thead td {
    background: #f9f6f1;
    border-bottom: 0px !important;
  }
}
.checkout-table th,
.checkout-table td {
  vertical-align: middle;
  text-align: center;
  padding: 12px;
  font-family: "Prata", serif;
}
.checkout-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
}

/* Mobile view */
@media (max-width: 767px) {
  table.checkout-table thead {
    display: none;
  }
  table.checkout-table,
  table.checkout-table tbody,
  table.checkout-table tr,
  table.checkout-table td {
    display: block;
    width: 100%;
    text-align: left;
  }
  table.checkout-table tr {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
  }
  table.checkout-table td {
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  table.checkout-table td::before {
    content: attr(data-label);
    font-weight: bold;
    flex: 1;
    color: #555;
  }
  table.checkout-table td:last-child {
    border-bottom: none;
  }
}
.w-150 {
  width: 150px !important;
}

.shipping-method-table tr th,
.shipping-method-table tr td {
  padding: 12px;
  font-family: "Prata", serif;
}
.order-summary-table tr th,
.order-summary-table tr td {
  padding: 12px;
  font-family: "Prata", serif;
  background-color: transparent;
}
.shipping-method-table .form-check-input:checked {
  background-color: var(--text-primary);
  border-color: var(--text-primary);
}
.shipping-method-table .form-check-input:focus {
  border-color: #ba9b62;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgb(192 147 66 / 14%);
}
.custom-check.form-check-input:checked {
  background-color: var(--text-primary);
  border-color: var(--text-primary);
}
.custom-check.form-check-input:focus {
  border-color: #ba9b62;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgb(192 147 66 / 14%);
}
.flatpickr-calendar.noCalendar.hasTime .flatpickr-time {
  gap: 8px;
}
.flatpickr-calendar.open {
  width: max-content;
}
.map_area iframe {
  width: 100%;
  min-height: 450px;
  border:0;
  border-radius: 1rem;
}

/* checkout table end  */

.h-60 {
  height: 60px;
}
.rounded-top-left {
  border-top-left-radius: 16px !important;
}
.rounded-bottom-left {
  border-bottom-left-radius: 16px !important;
}

/* ===== /home POS ===== */

/* Image thumbnails — SVG icon shows when no <img> rendered or it errors */
.pos-thumb {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 42%;
  overflow: hidden;
  flex: 0 0 auto;
}
.pos-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pos-thumb--cover img { object-fit: cover; }
/* food: bowl with rising steam */
.pos-thumb--food {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a8b5' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M9 3c-1 1.6 1 2.4 0 4'/><path d='M13 3c-1 1.6 1 2.4 0 4'/><path d='M17 3c-1 1.6 1 2.4 0 4'/><path d='M3 11h18l-1 4a4 4 0 0 1-4 3H8a4 4 0 0 1-4-3z'/><path d='M2 11h20'/></svg>");
}
/* category: 4-box grid (shown when no category image is set) */
.pos-thumb--cat {
  width: 28px; height: 28px;
  border-radius: 50%;
  background-color: #f3f4f6;
  background-size: 48%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a8b5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3.5' y='3.5' width='7.5' height='7.5' rx='1.5'/><rect x='13' y='3.5' width='7.5' height='7.5' rx='1.5'/><rect x='3.5' y='13' width='7.5' height='7.5' rx='1.5'/><rect x='13' y='13' width='7.5' height='7.5' rx='1.5'/></svg>");
}
/* all menus: open menu-book with lines, evoking "the whole menu" */
.pos-thumb--all {
  background-color: #ecfdf5;
  background-size: 58%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M3 5a2 2 0 0 1 2-2h6v17H5a2 2 0 0 1-2-2z'/><path d='M21 5a2 2 0 0 0-2-2h-6v17h6a2 2 0 0 0 2-2z'/><path d='M6 7h3M6 10h3M6 13h3M15 7h3M15 10h3M15 13h3'/></svg>");
}
/* combo: burger silhouette suggesting a meal-bundle / set menu */
.pos-thumb--combo {
  background-color: #fff7ed;
  background-size: 58%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2410c' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M4 9c0-3 4-5 8-5s8 2 8 5'/><path d='M3 9h18'/><path d='M3 12.5h18'/><path d='M3 16h18'/><path d='M5 19h14a2 2 0 0 0 2-2H3a2 2 0 0 0 2 2z'/></svg>");
}
/* avatar: heroicons-style user */
.pos-thumb--avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background-color: #e8eaf0;
  background-size: 60%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a1a8b5'><path d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8z'/><path d='M4 21a8 8 0 0 1 16 0v.5H4z'/></svg>");
}
.pos-thumb--logo {
  width: auto; min-width: 38px; height: 38px;
  padding: 0 8px;
  border-radius: 8px;
  background: transparent;
}
.pos-thumb-logo img {
  position: static;
  inset: auto;
  width: auto;
  height: 100%;
  object-fit: contain;
}


:root {
  --pos-bg: #fff8ed;
  --pos-card: #ffffff;
  --pos-border: #e5e7eb;
  --pos-muted: #9ca3af;
  --pos-text: #1f2937;
  --pos-blue: #2563eb;
  --pos-blue-soft: #eff4ff;
  --pos-green: #16a34a;
  --pos-green-soft: #d1fae5;
  --pos-red: #dc2626;
  --pos-red-soft: #fee2e2;
  --pos-amber: #f59e0b;
  --pos-amber-soft: #fef3c7;
}

.pos-shell {
  min-height: 100vh;
  /* Cream base. The food-doodle pattern itself lives on the ::before
     pseudo-element below so we can blur it without softening the UI. */
  background-color: var(--pos-bg);
  position: relative;
  color: var(--pos-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  isolation: isolate; /* keeps the pseudo's stacking local to the shell */
}
.pos-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('../images/food-pattern.svg');
  background-repeat: repeat;
  background-size: 420px 420px;
  background-position: 0 0;
  /* Light softening — barely diffused, doodles still crisp. */
  filter: blur(1px);
  /* Slight scale so the blur halo doesn't reveal hard tile edges. */
  transform: scale(1.02);
  transform-origin: center;
  z-index: -1;
  pointer-events: none;
}

/* Login / signup background — mirrors the home page's cream + food-doodle
   wallpaper. Applied on the wrapping <section> via class="pos-auth-bg" in
   place of the old solid `bg_soft_primary` so other pages that still use
   that class are unaffected. The section also flex-centers its child so
   the auth card is perfectly anchored regardless of viewport size. */
.pos-auth-bg {
  background-color: var(--pos-bg);
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
}
.pos-auth-bg > .container { width: 100%; }
.pos-auth-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('../images/food-pattern.svg');
  background-repeat: repeat;
  background-size: 420px 420px;
  filter: blur(1px);
  transform: scale(1.02);
  transform-origin: center;
  z-index: -1;
  pointer-events: none;
}

/* Auth card — matches the home POS surface look: soft shadow, rounded
   corners, fluid responsive padding. Used by both login and signup so the
   two screens read as one component family. */
.pos-auth-card {
  border: 0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 18px 48px -22px rgba(31, 41, 55, 0.28),
    0 6px 14px -8px rgba(31, 41, 55, 0.10);
  overflow: hidden;
}
.pos-auth-card .card-body {
  /* Fluid padding: comfy on phones, generous on desktops, never huge. */
  padding: clamp(22px, 4vw, 44px);
}
/* Pull Bootstrap form controls inside the auth card into the same visual
   language as the home POS — same border colour, radius, padding, and the
   emerald focus ring that .pos-input uses. */
.pos-auth-card .form-control,
.pos-auth-card .custom-control,
.pos-auth-card textarea,
.pos-auth-card input[type="file"] {
  border: 1px solid var(--pos-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--pos-text);
  background: #fff;
  width: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: border-color .15s ease, box-shadow .15s ease;
  box-shadow: none;
}
.pos-auth-card .form-control:focus,
.pos-auth-card .custom-control:focus,
.pos-auth-card textarea:focus,
.pos-auth-card input[type="file"]:focus {
  outline: none;
  border-color: #15803d;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12);
}
.pos-auth-card label {
  font-size: 13px;
  font-weight: 600;
  color: var(--pos-text);
}

/* Buttons — the primary action (login / register) gets the home page CTA
   look (dark forest green, large hit target, fluid width). Secondary
   buttons keep a softer outline so the hierarchy stays clear. */
.pos-auth-card .btn {
  border-radius: 12px;
  font-weight: 600;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 12px 18px;
  font-size: 14px;
  transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
}
.pos-auth-card .btn:active { transform: translateY(1px); }
.pos-auth-card .btn_primary,
.pos-auth-card .btn-primary {
  background: #14241c;
  color: #fff;
  border: 0;
}
.pos-auth-card .btn_primary:hover,
.pos-auth-card .btn-primary:hover,
.pos-auth-card .btn_primary:focus,
.pos-auth-card .btn-primary:focus {
  background: #0a1611;
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(10, 22, 17, 0.5);
}
.pos-auth-card .btn-link {
  color: #15803d;
  font-weight: 600;
  padding: 0;
}
.pos-auth-card .btn-link:hover { color: #166534; text-decoration: underline; }
.pos-auth-card .form-check-input:checked {
  background-color: #15803d;
  border-color: #15803d;
}

/* Page-level background — same cream + doodle wallpaper as auth, but content
   anchored to the top so long pages (profile, orders) flow naturally instead
   of being vertically centered. */
.pos-page-bg {
  background-color: var(--pos-bg);
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: 28px 16px;
}
.pos-page-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('../images/food-pattern.svg');
  background-repeat: repeat;
  background-size: 420px 420px;
  filter: blur(1px);
  transform: scale(1.02);
  transform-origin: center;
  z-index: -1;
  pointer-events: none;
}

/* Profile layout — sidebar + main, both wrapped in pos-auth-cards. */
.pos-profile-head {
  text-align: center;
  margin-bottom: 24px;
}
.pos-profile-head h2 {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  color: var(--pos-text);
  margin: 0 0 4px;
}
.pos-profile-head p {
  color: var(--pos-muted);
  margin: 0;
  font-size: 14px;
}
.pos-profile-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pos-border);
  margin-bottom: 14px;
}
.pos-profile-avatar img {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px -6px rgba(31, 41, 55, 0.25);
}
.pos-profile-avatar .pos-profile-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--pos-text);
}
.pos-profile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pos-profile-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--pos-text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.pos-profile-nav a:hover {
  background: #f3f4f6;
  color: var(--pos-text);
}
.pos-profile-nav a.is-active {
  background: #ecfdf5;
  color: #15803d;
}
.pos-profile-nav a.is-danger { color: #b91c1c; }
.pos-profile-nav a.is-danger:hover { background: #fef2f2; color: #991b1b; }

/* Read-only profile field rows — replaces the old <table> look with cleaner
   label / value stacks that wrap nicely on phones. */
.pos-profile-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.pos-profile-field {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--pos-border);
  gap: 12px;
}
.pos-profile-field:last-child { border-bottom: 0; }
.pos-profile-field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--pos-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pos-profile-field-value {
  color: var(--pos-text);
  font-size: 14px;
  word-break: break-word;
}
@media (max-width: 480px) {
  .pos-profile-field { grid-template-columns: 1fr; gap: 4px; }
}
.pos-profile-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}

/* Top bar */
.pos-topbar {
  background: #fff;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--pos-border);
  position: sticky; top: 0; z-index: 50;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
/* overflow-x: clip (not hidden) — hidden silently turns the shell into a scroll
   container, which breaks position: sticky on the filter card under mobile page-scroll.
   clip prevents horizontal overflow without creating a scroll context. */
.pos-shell { width: 100%; max-width: 100%; box-sizing: border-box; overflow-x: clip; }
.pos-shell *, .pos-shell *::before, .pos-shell *::after { box-sizing: border-box; }
.pos-topbar-left { display: flex; align-items: center; gap: 16px; }
.pos-brand img { height: 38px; }
.pos-thumb-logo { height: 38px; }
.pos-thumb-logo img { width: auto; max-width: 120px; height: 100%; }
.pos-grid-toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--pos-border);
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(3, 4px);
  grid-template-rows: repeat(3, 4px);
  gap: 3px;
  place-content: center;
  cursor: pointer;
}
.pos-grid-toggle span {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--pos-text);
}
.pos-topnav {
  display: flex;
  gap: 4px;
  margin: 0 auto;
}
.pos-topnav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.pos-topnav-item:hover { background: #f3f4f6; color: var(--pos-text); }
.pos-topnav-item.is-active { background: var(--pos-blue-soft); color: var(--pos-blue); }
.pos-topnav-icon { font-size: 16px; line-height: 1; }
.pos-topbar-right { display: flex; align-items: center; gap: 8px; }
.pos-icon-btn {
  width: 38px; height: 38px;
  border: 1px solid var(--pos-border);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  font-size: 16px;
}
.pos-icon-btn:hover { background: #f9fafb; }
.pos-notif-dot {
  position: absolute;
  top: 8px; right: 9px;
  width: 8px; height: 8px;
  background: var(--pos-red);
  border: 2px solid #fff;
  border-radius: 50%;
}
.pos-avatar {
  width: 38px; height: 38px;
  padding: 0; border: 0; border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
}
.pos-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pos-avatar .pos-thumb { width: 100%; height: 100%; }

/* ===== Zomato-style top bar ===== */
.pos-topbar--zomato {
  gap: 32px;
  padding: 14px 32px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.pos-topbar--zomato .pos-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 54px;
}
.pos-topbar--zomato .pos-thumb-logo { height: 44px; display: inline-flex; align-items: center; }
.pos-topbar--zomato .pos-thumb-logo img { max-width: 150px; height: 100%; display: block; }

.pos-zsearch {
  flex: 0 1 720px;
  display: flex;
  align-items: stretch;
  height: 54px;
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
  overflow: hidden;
}
.pos-zsearch:focus-within {
  border-color: #d1d5db;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .08);
}

.pos-zsearch-loc {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 0 18px;
  height: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #1f2937;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  min-width: 0;
}
.pos-zsearch-loc:hover { color: #111827; }
.pos-zsearch-loc-text {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
}
.pos-zsearch-pin { flex: 0 0 auto; display: block; }
.pos-zsearch-caret { color: #6b7280; flex: 0 0 auto; display: block; }

.pos-zsearch-sep {
  width: 1px;
  background: #e5e7eb;
  margin: 10px 0;
  flex: 0 0 1px;
  align-self: stretch;
}

.pos-zsearch-input {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  margin: 0;
  min-width: 0;
  height: 100%;
}
.pos-zsearch-icon { flex: 0 0 auto; display: block; }
.pos-zsearch-input input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
  line-height: 1.2;
  color: #1f2937;
  padding: 0;
}
.pos-zsearch-input input::placeholder { color: #9ca3af; font-weight: 300; }

.pos-zsearch-actions {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  flex: 0 0 auto;
  height: 54px;
}
.pos-zlink {
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-size: 16px;
  font-weight: 300;
  color: #6b7280;
  text-decoration: none;
  line-height: 1;
  transition: color .15s ease;
}
.pos-zlink:hover { color: #1f2937; }

@media (max-width: 991px) {
  .pos-topbar,
  .pos-topbar--zomato {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    flex-wrap: wrap !important;
    gap: 12px;
    padding: 10px 16px;
    row-gap: 10px;
    position: relative;
    left: 0;
    right: 0;
  }
  .pos-topbar--zomato .pos-brand { order: 1; height: 44px; flex: 0 0 auto; }
  .pos-topbar--zomato .pos-thumb-logo { height: 36px; }
  .pos-topbar--zomato .pos-thumb-logo img { max-width: 120px; }
  .pos-zsearch-actions { order: 2; gap: 16px; margin-left: auto !important; height: 44px; flex: 0 0 auto; }
  .pos-zsearch {
    order: 3;
    flex: 1 1 100% !important;
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 48px;
  }
  .pos-zlink { font-size: 14px; }
  .pos-announce {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 575px) {
  .pos-topbar,
  .pos-topbar--zomato {
    gap: 10px;
    padding: 10px 12px;
  }
  .pos-topbar--zomato .pos-brand { height: 40px; }
  .pos-topbar--zomato .pos-thumb-logo { height: 32px; }
  .pos-topbar--zomato .pos-thumb-logo img { max-width: 100px; }
  .pos-zsearch { height: 44px; }
  .pos-zsearch-loc { padding: 0 10px 0 12px; gap: 6px; font-size: 13px; }
  .pos-zsearch-loc-text { max-width: 90px; font-size: 13px; }
  .pos-zsearch-sep { margin: 8px 0; }
  .pos-zsearch-input { padding: 0 12px; gap: 8px; }
  .pos-zsearch-input input { font-size: 13px; }
  .pos-zsearch-actions { gap: 12px; height: 40px; }
  .pos-zlink { font-size: 13px; }
}

@media (max-width: 380px) {
  .pos-topbar--zomato .pos-thumb-logo img { max-width: 80px; }
  .pos-zsearch-loc { padding: 0 8px 0 10px; }
  .pos-zsearch-loc-text { max-width: 70px; }
  .pos-zsearch-actions { gap: 10px; }
  .pos-zlink { font-size: 12px; }
}

/* Announcement bar — sits directly below the navbar, uses the logo's orange→yellow gradient */
.pos-announce {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* right padding reserves space for the fixed 380px sidebar + 24px gap so the centered text stays centered in the visible food area */
  padding: 10px 404px 10px 24px;
  background: linear-gradient(90deg, #f58220 0%, #f9a825 50%, #fbbf24 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-align: center;
  text-shadow: 0 1px 1px rgba(124, 45, 18, 0.18);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.pos-announce strong {
  background: rgba(255, 255, 255, 0.22);
  padding: 1px 8px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pos-announce-emoji { font-size: 16px; line-height: 1; }
@media (max-width: 991px) {
  .pos-announce { padding: 10px 16px; }
}
@media (max-width: 640px) {
  .pos-announce { padding: 8px 12px; font-size: 12px; gap: 6px; }
  .pos-announce-emoji { font-size: 14px; }
}

/* Customer-side home hero banner — sits inside .pos-body so it shares the centered 1200px column with the menu categories + food grid */
.pos-body > .pos-hero {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.2);
  /* Desktop: slim banner shape, cropping top/bottom is expected. */
  aspect-ratio: 5 / 1;
  height: auto;
  display: block;
}
.pos-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.pos-hero-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
@media (max-width: 1199px) {
  .pos-hero { aspect-ratio: 4 / 1; }
}
@media (max-width: 991px) {
  .pos-hero {
    aspect-ratio: 3 / 1;
    border-radius: 14px;
  }
}
/* Below 767px: match the source image's 4/3 ratio so the FULL banner artwork is visible — no cropping, no letterbox. The banner ends up slightly taller than wide on a phone, which is fine for a hero. */
@media (max-width: 767px) {
  .pos-hero {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }
}
@media (max-width: 480px) {
  .pos-hero {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
  }
}

/* Body grid — main content; sidebar is fixed to the viewport edge */
.pos-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 10px 404px 18px 24px; /* right padding reserves 380px sidebar + 24px gap */
  align-items: start;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
/* Critical: prevent any child of .pos-body from blowing out the grid track.
   Without min-width:0 the intrinsic content of .pos-left (cat strip, food cells)
   forces the grid column wider than the viewport on mobile. */
.pos-body > * {
  min-width: 0;
  max-width: 100%;
}
.pos-left {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* ============================================================
   DESKTOP PAGE-LOCK (≥ 992px) — viewport-fit shell with internal
   scroll on the food column. Eliminates the empty "scroll past
   the food grid" gap beside the fixed basket sidebar. Scoped to
   .pos-shell so other pages keep normal page scroll. Mobile rules
   below override this entirely.
   ============================================================ */
@media (min-width: 992px) {
  .pos-shell {
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .pos-shell .pos-topbar,
  .pos-shell .pos-announce { flex: 0 0 auto; }
  .pos-shell .pos-body {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
  }
  .pos-shell .pos-left {
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  /* The Menu Categories block is sticky inside the scrolling food column.
     Anchor it to the column's own top, not the viewport-relative 82px
     offset that was correct under the old page-scroll model. */
  .pos-shell .pos-left .pos-section:not(.pos-section--grid) { top: 0; }
}
.pos-left .pos-section,
.pos-left .pos-section--grid,
.pos-left #posFoodGrid {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 991px) {
  .pos-body { grid-template-columns: 1fr; padding: 16px; }
}
@media (max-width: 767px) {
  .pos-body { padding: 12px 10px; gap: 12px; }
}
@media (max-width: 480px) {
  .pos-body { padding: 8px 8px; gap: 10px; }
}
@media (max-width: 360px) {
  .pos-body { padding: 6px 6px; gap: 8px; }
}

/* Sections */
.pos-section { background: #fff; border-radius: 16px; padding: 18px 20px; margin-bottom: 16px; }
/* Categories / filters block stays pinned under the navbar; only the food grid scrolls */
.pos-section:not(.pos-section--grid) {
  position: sticky;
  top: 82px;
  z-index: 5;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 8px;
  background: var(--pos-bg);
  border-radius: 0;
  padding: 8px 0 10px;
  border-bottom: 1px solid var(--pos-border);
  box-shadow: none;
}
.pos-section:not(.pos-section--grid) .pos-section-head { margin-bottom: 8px; }
.pos-left .pos-section--grid {
  padding: 0;
  background: transparent;
  position: static;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 8px;
  box-sizing: border-box;
}
@media (max-width: 991px) {
  /* Mobile topbar is position:relative (not sticky), so pin the filter card to top:0
     once the topbar scrolls off — keeps the same "cards slide behind filter" effect. */
  .pos-section:not(.pos-section--grid) { top: 0; }
}
.pos-section--grid > .row {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  justify-content: flex-start;
}
/* In-grid category section header. Foods arrive sorted by admin Position, so
   each new category emits one of these so the user has a visual anchor as they
   scroll — pairs with the strip's scroll-spy highlight. */
.pos-cat-divider {
  padding: 18px 4px 6px;
  scroll-margin-top: 96px;
}
.pos-cat-divider:first-child { padding-top: 4px; }
.pos-cat-divider-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  position: relative;
  padding-left: 12px;
}
.pos-cat-divider-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 3px;
  background: #f58220;
}
@media (max-width: 767px) {
  .pos-cat-divider { padding: 12px 2px 4px; }
  .pos-cat-divider-title { font-size: 16px; padding-left: 10px; }
  .pos-cat-divider-title::before { width: 3px; }
}
.pos-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.pos-section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.pos-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.pos-tab {
  padding: 7px 14px;
  border: 1px solid var(--pos-border);
  background: #fff;
  border-radius: 10px;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  transition: all .15s ease;
}
.pos-tab:hover { border-color: #cbd5e1; }
.pos-tab.is-active {
  background: var(--pos-blue);
  border-color: var(--pos-blue);
  color: #fff;
}
.pos-arrow-nav { display: inline-flex; gap: 6px; margin-left: auto; }
.pos-arrow {
  width: 32px; height: 32px;
  border: 1px solid var(--pos-border);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1;
  color: #4b5563;
}
.pos-arrow:hover { background: #f9fafb; }
.pos-arrow.is-spinning { animation: posArrowSpin 500ms linear; }
@keyframes posArrowSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Recent order cards */
.pos-recent-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}
.pos-empty-line { padding: 24px; color: var(--pos-muted); text-align: center; grid-column: 1 / -1; }
.pos-order-card {
  border: 1px solid var(--pos-border);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pos-order-card-top {
  display: flex; align-items: center; justify-content: space-between;
}
.pos-order-id { font-weight: 600; color: var(--pos-text); }
.pos-order-type {
  font-size: 12px;
  color: #6b7280;
  display: inline-flex; align-items: center; gap: 4px;
}
.pos-order-card-body {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pos-order-name { font-weight: 600; }
.pos-order-meta { font-size: 12px; color: var(--pos-muted); display: flex; gap: 4px; align-items: center; }
.pos-mins-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  background: var(--pos-green-soft);
  color: var(--pos-green);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.pos-mins-pill.is-late { background: var(--pos-red-soft); color: var(--pos-red); }
.pos-progress {
  height: 4px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}
.pos-progress-bar {
  display: block;
  height: 100%;
  background: var(--pos-green);
  border-radius: 4px;
}
.pos-progress-bar.is-late { background: var(--pos-red); }
.pos-progress-time {
  text-align: right;
  font-size: 12px;
  color: var(--pos-muted);
  display: flex; align-items: center; justify-content: flex-end; gap: 4px;
}

/* Categories filters — pill chips with colored icon circle on the left and
   a small radio-style indicator on the right that fills when checked. */
.pos-checks { display: flex; gap: 12px; flex-wrap: wrap; }
.pos-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 3px 12px 3px 3px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.pos-check:hover { border-color: #cbd5e1; box-shadow: 0 4px 10px -6px rgba(15, 23, 42, 0.12); }
/* Hide native checkbox visually but keep it focusable for accessibility. */
.pos-check input[type="checkbox"] {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  border: 0; clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}
.pos-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  flex: 0 0 auto;
  color: #fff;
  font-size: 16px;
  line-height: 1;
}
.pos-check-icon svg { width: 15px; height: 15px; }
.pos-check-label { line-height: 1; padding: 0 4px 0 2px; }
.pos-check-mark {
  display: inline-flex;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: #fff;
  flex: 0 0 auto;
  position: relative;
  transition: border-color .15s ease, background-color .15s ease;
}
.pos-check-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: currentColor;
  transform: scale(0);
  transition: transform .15s ease;
}

/* Per-tag accent colors used by the icon circle, the focused border, and
   the filled indicator dot. Each chip variant just sets `color` so all
   three pick it up via currentColor. */
.pos-check--pureveg    { --chip: #16a34a; --chip-soft: #dcfce7; --chip-border: #bbf7d0; }
.pos-check--spicy      { --chip: #dc2626; --chip-soft: #fee2e2; --chip-border: #fecaca; }
.pos-check--bestseller { --chip: #d97706; --chip-soft: #fef3c7; --chip-border: #fde68a; }
.pos-check--special    { --chip: #2563eb; --chip-soft: #dbeafe; --chip-border: #bfdbfe; }
.pos-check .pos-check-icon { background: var(--chip-soft); border: 1px solid var(--chip-border); color: var(--chip); }

/* Checked state — border picks up the tag color and the inner dot fills. */
.pos-check input[type="checkbox"]:checked ~ .pos-check-mark {
  border-color: var(--chip);
  color: var(--chip);
}
.pos-check input[type="checkbox"]:checked ~ .pos-check-mark::after {
  transform: scale(1);
}
.pos-check:has(input[type="checkbox"]:checked) {
  border-color: var(--chip);
  background: color-mix(in srgb, var(--chip) 6%, #fff);
}
/* Keyboard focus on the (visually hidden) input shows on the chip. */
.pos-check input[type="checkbox"]:focus-visible ~ .pos-check-mark {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--chip) 25%, transparent);
}
.pos-search {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--pos-border);
  border-radius: 10px;
  padding: 6px 12px;
  background: #fff;
  margin-left: auto;
}
.pos-search input {
  border: 0; outline: 0;
  font-size: 14px;
  width: 200px;
}
.pos-search-icon { color: var(--pos-muted); }

.pos-cat-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 2px 6px;
  margin: 4px 0 2px;
  scrollbar-width: thin;
}
.pos-cat-card {
  flex: 0 0 auto;
  min-width: 140px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px;
  background: #fff;
  border: 1px solid var(--pos-border);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pos-cat-card:focus,
.pos-cat-card:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(245, 130, 32, 0.18); }
.pos-cat-card:hover { border-color: #fdba74; }
.pos-cat-card.is-active {
  border-color: #f58220;
  box-shadow: 0 0 0 2px rgba(245, 130, 32, 0.18);
}
.pos-cat-card .pos-thumb--cat { flex: 0 0 auto; }
.pos-cat-name { font-weight: 600; font-size: 13px; line-height: 1.2; }
.pos-cat-count { font-size: 11px; color: var(--pos-muted); line-height: 1.2; }

/* Veg/Non-veg/Egg marker */
.pos-veg-mark {
  width: 14px; height: 14px;
  border: 1.5px solid;
  border-radius: 2px;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.pos-veg-mark::after { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.pos-veg-mark--veg { border-color: var(--pos-green); }
.pos-veg-mark--veg::after { background: var(--pos-green); }
.pos-veg-mark--nonveg { border-color: var(--pos-red); }
.pos-veg-mark--nonveg::after { background: var(--pos-red); }
.pos-veg-mark--egg { border-color: var(--pos-amber); }
.pos-veg-mark--egg::after { background: var(--pos-amber); }

/* Food card */
.col-xl-fifth { width: 100%; }
@media (min-width: 1200px) {
  .col-xl-fifth { flex: 0 0 auto; width: 20%; }
}
.pos-food-card {
  background: #fff;
  border: 1px solid var(--pos-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.pos-food-card:hover {
  transform: translateY(-4px);
  border-color: #fdba74;
  box-shadow:
    0 20px 34px 2px rgba(245, 130, 32, 0.22),
    0 8px 16px 1px rgba(15, 23, 42, 0.10),
    0 0 0 4px rgba(245, 130, 32, 0.06);
}
.pos-food-card:active {
  transform: translateY(-1px);
  box-shadow:
    0 8px 16px 1px rgba(15, 23, 42, 0.16),
    0 0 0 2px rgba(245, 130, 32, 0.08);
}
.pos-food-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  margin: 10px 10px 0;
  border-radius: 12px;
}
.pos-food-media .pos-thumb {
  width: 100%; height: 100%;
  background-size: 32%;
}
.pos-food-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.pos-tag-flag {
  position: absolute;
  top: 8px; left: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.pos-tag-flag--trending { background: var(--pos-red); }
.pos-tag-flag--musttry  { background: #0f766e; } /* offer flag — teal-green */

.pos-food-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pos-food-cattag {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 6px;
  font-size: 12px; color: var(--pos-muted);
}
.pos-food-diets {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  max-width: 70%;
}
.pos-food-cat {
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #94a3b8;
}
.pos-food-diet {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  padding: 0;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.pos-food-diet .pos-tag-emoji { font-size: 13px; line-height: 1; }
.pos-food-diet-label { font-size: 11px; font-weight: 600; }
.pos-food-diet--pureveg    { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.pos-food-diet--spicy      { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.pos-food-diet--bestseller { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.pos-food-diet--special    { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.pos-food-diet--offer      { background: #ccfbf1; color: #0f766e; border: 1px solid #99f6e4; }
.pos-tag-emoji { font-size: 12px; line-height: 1; }
.pos-food-nameprice {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

/* Set / group-menu items — show the bundle's components below the price. */
.pos-food-set {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 4px 0 6px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--pos-muted);
}
.pos-food-set-label {
  font-weight: 600;
  color: #15803d;
  flex: 0 0 auto;
}
.pos-food-set-items {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
}
.pos-food-set-items .pos-food-set-size { font-style: normal; color: #94a3b8; }
.pos-food-set-items strong { color: var(--pos-text); font-weight: 600; }
.pos-food-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pos-food-nameprice .pos-food-price { flex: 0 0 auto; }
.pos-food-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  margin-top: auto;
}
.pos-food-price { display: inline-flex; align-items: baseline; gap: 6px; }
.pos-food-price-old { color: var(--pos-muted); text-decoration: line-through; font-size: 12px; }
.pos-food-price-cur { font-weight: 700; }

/* Add to Cart button on each food card */
.pos-food-add-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  margin-top: auto;
  padding: 10px 12px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.pos-food-add-btn:hover {
  background: #15803d;
  color: #fff;
  border-color: #15803d;
}
.pos-food-add-btn:active { transform: translateY(1px); }
.pos-food-add-btn svg { flex: 0 0 auto; }
.pos-food-add-qty {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  background: #15803d;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 2px;
}
.pos-food-add-btn:hover .pos-food-add-qty {
  background: #fff;
  color: #15803d;
}

/* ============================================================
   Below-navbar responsive tuning for the home page
   Targets: .pos-body container, .pos-section header, the
   category strip, the food grid + cards, the size dropdown, and
   the Add to Cart button. Keeps everything legible on phones
   without losing the desktop layout.
   ============================================================ */

@media (max-width: 991px) {
  .pos-section { padding: 14px 14px; border-radius: 14px; }
  .pos-section:not(.pos-section--grid) { padding: 10px 0 12px; margin-bottom: 12px; }
  .pos-section-head { gap: 10px; margin-bottom: 12px; }
  .pos-section-title { font-size: 16px; }
  .pos-checks { flex-wrap: wrap; gap: 8px; }
  .pos-check { font-size: 13px; height: 38px; padding: 3px 12px 3px 3px; gap: 8px; }
  .pos-check-icon { width: 30px; height: 30px; }
  .pos-check-icon svg { width: 16px; height: 16px; }
  .pos-check-mark { width: 16px; height: 16px; }
  .pos-arrow-nav { gap: 4px; }
  .pos-arrow { width: 30px; height: 30px; font-size: 15px; }
  .pos-cat-strip { gap: 10px; padding: 4px 2px 8px; }
  .pos-cat-card { min-width: 140px; padding: 6px 10px; }
  .pos-cat-name { font-size: 13px; }
  .pos-cat-count { font-size: 11px; }
}

@media (max-width: 767px) {
  /* Force exactly 2 food cards per row on phones — bypass Bootstrap's col system entirely with CSS Grid so the layout is deterministic */
  #posFoodGrid,
  .pos-section--grid > .row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  #posFoodGrid > .pos-food-cell,
  .pos-section--grid > .row > .pos-food-cell {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  /* Category dividers are Bootstrap col-12, but the CSS Grid override above
     ignores Bootstrap's column system, so the divider lands in a single
     grid cell. Force it to span the full row so food cards always start
     on the line BELOW the section label. */
  #posFoodGrid > .pos-cat-divider,
  .pos-section--grid > .row > .pos-cat-divider {
    grid-column: 1 / -1 !important;
  }

  .pos-food-card { border-radius: 12px; min-width: 0; }
  .pos-food-media { aspect-ratio: 1 / 1; margin: 6px 6px 0; border-radius: 10px; }
  .pos-food-body { padding: 8px 8px 10px; gap: 5px; min-width: 0; }
  .pos-food-cattag { gap: 4px; font-size: 10px; }
  .pos-food-cat { font-size: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* Stack name above price on narrow cards so neither gets clipped */
  .pos-food-nameprice { flex-direction: column; align-items: flex-start; gap: 2px; }
  .pos-food-name { font-size: 12.5px; line-height: 1.25; -webkit-line-clamp: 2; white-space: normal; }
  .pos-food-price-cur { font-size: 13px; }
  .pos-food-price-old { font-size: 10px; }
  .pos-food-diets { max-width: 100%; gap: 3px; }
  .pos-food-diet { width: 18px; height: 18px; }
  .pos-food-diet .pos-tag-emoji { font-size: 10px; }
  .pos-tag-flag { font-size: 9px; padding: 2px 6px; top: 6px; left: 6px; border-radius: 4px; }
  .pos-food-add-btn { padding: 7px 8px; font-size: 11px; border-radius: 8px; gap: 4px; line-height: 1.1; }
  .pos-food-add-qty { min-width: 16px; height: 16px; font-size: 9px; padding: 0 4px; }
}

@media (max-width: 480px) {
  .pos-section { padding: 10px 8px; border-radius: 12px; }
  #posFoodGrid,
  .pos-section--grid > .row {
    gap: 8px !important;
  }
  .pos-food-card { border-radius: 10px; }
  .pos-food-media { margin: 5px 5px 0; border-radius: 8px; }
  .pos-food-body { padding: 7px 7px 9px; gap: 4px; }
  .pos-food-name { font-size: 12px; }
  .pos-food-price-cur { font-size: 12.5px; }
  .pos-food-cat { font-size: 9.5px; }
  .pos-food-add-btn { padding: 6px 6px; font-size: 10.5px; }
  .pos-cat-card { min-width: 124px; }
  .pos-checks { gap: 6px; }
  .pos-check { font-size: 12px; height: 34px; padding: 3px 10px 3px 3px; gap: 6px; }
  .pos-check-icon { width: 26px; height: 26px; }
  .pos-check-icon svg { width: 14px; height: 14px; }
  .pos-check-mark { width: 14px; height: 14px; border-width: 1.5px; }
}

@media (max-width: 360px) {
  .pos-section { padding: 8px 6px; }
  #posFoodGrid,
  .pos-section--grid > .row {
    gap: 6px !important;
  }
  .pos-food-media { margin: 4px 4px 0; }
  .pos-food-body { padding: 6px 6px 8px; gap: 3px; }
  .pos-food-name { font-size: 11.5px; }
  .pos-food-price-cur { font-size: 12px; }
  .pos-food-add-btn { padding: 5px 4px; font-size: 10px; }
}

/* Stepper (food card) */
.pos-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pos-stepper-btn {
  border: 0;
  background: #f3f4f6;
  width: 26px; height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px; line-height: 1;
  color: var(--pos-text);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
}
.pos-stepper-btn:hover { background: #e5e7eb; }
.pos-stepper-btn--add {
  background: #1f2937;
  color: #fff;
}
.pos-stepper-btn--add:hover { background: #000; }
.pos-stepper-val {
  min-width: 18px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
}

/* Stepper (right-panel order item) */
.pos-stepper--mini { gap: 6px; }
.pos-stepper--mini .pos-stepper-btn {
  width: 24px; height: 24px;
  font-size: 13px;
  background: #f3f4f6;
  color: var(--pos-text);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .15s ease;
}
.pos-stepper--mini .pos-stepper-btn:hover { background: #e5e7eb; }
.pos-stepper--mini .pos-stepper-val {
  min-width: 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--pos-text);
}

.pos-empty-grid {
  text-align: center; padding: 48px 16px;
  color: var(--pos-muted);
  background: #fff; border-radius: 14px;
}

/* ==== Right panel — fixed sidebar; sits directly below the topbar.
   Top padding is zero so the wizard stepbar begins at the same Y as the
   orange announcement bar on the left, reading as one continuous strip. ==== */
.pos-right {
  background: #fff;
  border-radius: 0;
  padding: 0 20px 20px;
  display: flex; flex-direction: column;
  position: fixed;
  top: 82px;
  right: 0;
  width: 380px;
  max-width: none;
  height: calc(100vh - 82px);
  max-height: calc(100vh - 82px);
  z-index: 10;
  overflow: hidden;
  transform: none;
  box-shadow: -12px 0 32px -16px rgba(15, 23, 42, 0.12);
  border-left: 1px solid var(--pos-border);
  border-top: 1px solid var(--pos-border);
}
/* Items stage gets its own breathing room since the panel no longer pads at the top. */
.pos-right .pos-drawer-stage[data-stage-pane="items"] { padding-top: 14px; }
/* Drawer body wrapper — scrollable middle, summary pinned at the bottom */
.pos-right #posDrawerBody {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.pos-right.is-open { transform: none; }

/* Desktop-only: the right sidebar is always visible, so the drawer
   backdrop / close button / cart pill bar are not needed. They become
   active again inside the mobile media query below. */
@media (min-width: 992px) {
  .pos-drawer-backdrop { display: none !important; }
  .pos-drawer-close { display: none !important; }
  .pos-cart-fab { display: none !important; }
}

/* ============================================================
   MOBILE CART (≤ 991px) — sticky "View Basket" pill bar +
   slide-up bottom sheet drawer. Replaces the static-block cart
   that previously required scrolling to the page bottom.
   ============================================================ */
@media (max-width: 991px) {
  .pos-right {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    /* 100dvh tracks the actual visible viewport on iOS Safari (the address
       bar can grow/shrink and 100vh is the *maximum* — its bottom edge
       slips below the fold, hiding the Place-Order button). */
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-left: 0;
    border-top: 0;
    border-radius: 0;
    padding: 18px 16px 16px;
    padding-top: max(18px, env(safe-area-inset-top, 18px));
    padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
    transform: translateY(100%);
    transition: transform .28s cubic-bezier(.32,.72,.34,1);
    box-shadow: none;
    z-index: 60;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .pos-right.is-open { transform: translateY(0); }
  .pos-right #posDrawerBody {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  /* The items list is the only thing that needs to scroll inside the
     drawer, and #posDrawerBody already handles that. Nesting another
     scroll container here causes touch fight on mobile and the inner
     scroll often "wins" leaving the page behind it to scroll instead. */
  .pos-right .pos-order-items {
    overflow-y: visible;
    flex: 0 0 auto;
    padding-right: 0;
  }
  /* Pin the Place-Order CTA to the bottom of the items stage so it never
     scrolls off-screen, regardless of how many lines are in the basket. */
  .pos-right .pos-drawer-stage[data-stage-pane="items"] .pos-order-actions {
    flex-shrink: 0;
    margin-top: 12px;
    padding-top: 12px;
    background: #fff;
    border-top: 1px solid var(--pos-border);
  }
  .pos-drawer-close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 18px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--pos-border);
    background: #fff;
    color: #4b5563;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: background-color .15s ease, color .15s ease;
  }
  .pos-drawer-close:hover { background: #f1f5f9; color: #0f172a; }
  .pos-drawer-close svg { width: 14px; height: 14px; }
  /* Reserve clearance in the basket header so "Items : N" doesn't slide
     under the close button. The button is 32px wide + 14px right offset
     = 46px from the right edge, plus a small gap. */
  .pos-right .pos-order-itemshead { padding-right: 56px; }
  .pos-drawer-backdrop {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease;
    z-index: 55;
  }
  .pos-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

  /* Sticky "View Basket" pill bar — bottom-pinned, full-width with margins */
  .pos-cart-fab {
    display: flex !important;
    align-items: center;
    gap: 12px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom, 12px));
    width: auto;
    height: 56px;
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    background: var(--pos-green, #15803d);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 12px 28px -10px rgba(22, 101, 52, 0.45);
    cursor: pointer;
    z-index: 50;
    transform: translateY(0);
    transition: transform .25s ease, opacity .2s ease;
  }
  .pos-cart-fab.is-hidden {
    transform: translateY(140%);
    opacity: 0;
    pointer-events: none;
  }
  .pos-cart-fab-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
  }
  .pos-cart-fab-icon svg { width: 22px; height: 22px; }
  .pos-cart-fab-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #fff;
    color: var(--pos-green, #15803d);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  .pos-cart-fab-badge[data-count="0"] { display: none; }
  .pos-cart-fab-label {
    flex: 1 1 auto;
    text-align: left;
    font-size: 15px;
    letter-spacing: 0.01em;
  }
  .pos-cart-fab-total {
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 700;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,0.35);
  }
  .pos-cart-fab-chevron {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    opacity: 0.9;
  }
  .pos-cart-fab-chevron svg { width: 14px; height: 14px; }

  /* Lock the body when the bottom sheet is open so background doesn't scroll.
     `overflow:hidden` alone isn't enough on iOS Safari — the page can still be
     panned with touch. Pinning the body with `position:fixed` is the reliable
     fix; the drawer's open/close JS saves window.scrollY and writes it to
     `top` so the page doesn't jump to the top when locked, then restores it
     on close. Mirrors the pos-addons-open pattern. */
  body.pos-no-scroll {
    position: fixed;
    inset-inline: 0;
    width: 100%;
    overflow: hidden;
    overscroll-behavior: contain;
  }
}

/* Hide the legacy theme back-to-top button (.cd-top from index.php) on the home page only — .pos-top-fab below replaces it. .cd-top is still rendered globally so it remains on every other route. */
.pos-shell ~ .cd-top { display: none !important; }

/* Go to top floating button — sits inside the food area, left of the sidebar */
.pos-top-fab {
  position: fixed !important;
  bottom: 24px !important;
  right: calc(380px + 24px) !important; /* sidebar width + gap */
  left: auto !important;
  top: auto !important;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: #f58220;
  color: #fff;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(245, 130, 32, 0.55);
  z-index: 1100;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.pos-top-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(245, 130, 32, 0.7);
}
.pos-top-fab:active { transform: translateY(0); }
.pos-top-fab[hidden] { display: none !important; }
.pos-top-fab svg { width: 20px; height: 20px; }
/* Hide the back-to-top FAB whenever the basket bottom-sheet is open
   (the drawer JS sets `pos-no-scroll` on <body> only on mobile). */
body.pos-no-scroll .pos-top-fab { display: none !important; }
@media (max-width: 991px) {
  /* Sit above the sticky "View Basket" pill bar (~56px + 12px gap) */
  .pos-top-fab { right: 16px !important; bottom: 84px !important; }
  /* Leave room at the bottom of the page for the pill bar so the last
     food card row isn't covered. Adds when the pill is potentially showing. */
  .pos-body { padding-bottom: 88px; }
}

/* Drawer close button + Floating cart trigger styling now lives inside
   the mobile-cart media query above. On desktop they're hidden via
   the "@media (min-width: 992px)" override block — no base styles
   needed here. */

@media (max-width: 640px) {
  .pos-right { width: 100%; max-width: 100%; }
}

.pos-order-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 8px; margin-bottom: 14px;
  padding-right: 44px;
}
.pos-order-title {
  font-size: 18px; font-weight: 600; margin: 0;
}
.pos-order-stamp { font-size: 12px; color: var(--pos-muted); }
.pos-order-types {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-bottom: 18px;
}
.pos-order-type-btn {
  padding: 10px 8px;
  border: 1px solid var(--pos-border);
  background: #fff;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--pos-text);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.pos-order-type-btn:hover { border-color: #cbd5e1; }
.pos-order-type-btn.is-active {
  background: var(--pos-blue);
  color: #fff;
  border-color: var(--pos-blue);
}
.pos-order-type-btn svg { flex: 0 0 auto; }

.pos-order-pickers {
  display: flex; gap: 6px; align-items: center; margin-bottom: 18px;
}
.pos-select {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--pos-border);
  border-radius: 10px;
  padding: 9px 12px;
  background: #fff;
  font-size: 13px;
  color: var(--pos-muted);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
  cursor: pointer;
}
.pos-select-grow { flex: 1.4; min-width: 0; }
.pos-icon-action {
  width: 38px; height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--pos-border);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--pos-text);
  padding: 0;
}
.pos-icon-action:hover { background: #f9fafb; }
.pos-icon-action--primary {
  background: var(--pos-blue);
  color: #fff;
  border-color: var(--pos-blue);
}
.pos-icon-action--primary:hover { background: #1d4ed8; }

.pos-order-itemshead {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.pos-order-itemstitle { font-size: 22px; font-weight: 800; margin: 0; line-height: 1.2; letter-spacing: -0.02em; color: #0f172a; }
.pos-order-itemstitle-count {
  display: inline-block;
  font-weight: 700;
  color: var(--pos-muted);
  margin-left: 6px;
  font-size: 18px;
  letter-spacing: 0;
  vertical-align: baseline;
  font-variant-numeric: tabular-nums;
}
.pos-order-totalmenus { font-size: 12px; color: var(--pos-muted); display: inline-flex; align-items: center; gap: 6px; }
.pos-totalmenus-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--pos-text);
  font-size: 12px;
  font-weight: 600;
}

.pos-order-items {
  display: flex; flex-direction: column;
  margin-bottom: 16px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  /* slim scrollbar */
  scrollbar-width: thin;
  padding-right: 4px;
}
.pos-order-items::-webkit-scrollbar { width: 6px; }
.pos-order-items::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 999px; }
.pos-order-items::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }
.pos-order-empty {
  text-align: center; padding: 32px 16px;
  color: var(--pos-muted);
  border: 1px dashed var(--pos-border);
  border-radius: 12px;
}

/* Order drawer item — borderless list row */
.pos-order-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid #f1f5f9;
}
.pos-order-item:last-child { border-bottom: 0; }
.pos-order-item-thumb {
  width: 44px; height: 44px;
  border-radius: 8px;
  flex: 0 0 auto;
  overflow: hidden;
  background-size: 50%;
}
.pos-order-item-thumb img { border-radius: 8px; }
.pos-order-item-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.pos-order-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.pos-order-item-titleline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 8px;
  flex: 1 1 auto;
  min-width: 0;
}
/* Set-menu components shown under the basket line. Forces a new row so the
   name + size chip stay clean on the first line and the included items wrap
   below them. */
.pos-order-item-set {
  flex: 0 0 100%;
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--pos-muted);
  min-width: 0;
}
.pos-order-item-set-label {
  font-weight: 600;
  color: #15803d;
  flex: 0 0 auto;
}
.pos-order-item-set-items {
  /* Show every component — long set menus get more vertical room rather than
     being clipped. Wrapping is allowed so the line breaks at commas/spaces. */
  display: inline;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.pos-order-item-set-size { font-style: normal; color: #94a3b8; }
.pos-order-item-set-items strong { color: var(--pos-text); font-weight: 600; }
.pos-order-item-name {
  flex: 0 1 auto;
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: var(--pos-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.pos-order-item-variant {
  flex: 0 0 auto;
  padding: 2px 8px;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #1d4ed8;
  line-height: 1.4;
  white-space: nowrap;
}
.pos-order-item-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.pos-order-item-total {
  font-size: 14px;
  font-weight: 700;
  color: var(--pos-text);
  white-space: nowrap;
}
.pos-order-item-remove {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  padding: 0;
  border: 0; border-radius: 50%;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .15s ease, color .15s ease;
}
.pos-order-item-remove:hover { background: #fee2e2; color: #b91c1c; }

.pos-order-item-row--controls .pos-stepper--mini { flex: 0 0 auto; }
.pos-order-note {
  flex: 0 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 600;
  color: #f58220;
  cursor: pointer;
  line-height: 1;
}
.pos-order-note:hover { text-decoration: underline; }
.pos-order-note.has-note { color: #475569; }

.pos-order-item-noteline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
}
.pos-order-item-noteview {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 11px;
  line-height: 1.3;
  color: #7c2d12;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pos-order-item-noteview::before { content: '“'; }
.pos-order-item-noteview::after  { content: '”'; }

/* Promo code (admin "Coupon Code") input row inside the basket. */
.pos-promo {
  flex: 0 0 auto;
  margin: 12px 0 4px;
}
.pos-promo-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 6px 6px 6px 12px;
  transition: border-color .15s ease, background-color .15s ease;
}
.pos-promo-form:focus-within {
  border-color: #f58220;
  border-style: solid;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.15);
}
.pos-promo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f58220;
  flex: 0 0 auto;
}
.pos-promo-icon svg { width: 18px; height: 18px; }
.pos-promo-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pos-text);
  padding: 6px 0;
}
.pos-promo-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.pos-promo-apply {
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  background: #f58220;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background-color .15s ease, transform .1s ease;
}
.pos-promo-apply:hover { background: #ea7212; }
.pos-promo-apply:active { transform: translateY(1px); }
.pos-promo-apply:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.pos-promo-error {
  margin: 6px 4px 0;
  font-size: 12px;
  color: #dc2626;
}
.pos-promo-applied {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 10px 10px 10px 12px;
}
.pos-promo-applied-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--pos-green, #16a34a);
  color: #fff;
  flex: 0 0 auto;
}
.pos-promo-applied-icon svg { width: 14px; height: 14px; }
.pos-promo-applied-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.pos-promo-applied-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #047857;
}
.pos-promo-applied-code {
  font-size: 14px;
  font-weight: 700;
  color: #064e3b;
  letter-spacing: 0.04em;
}
.pos-promo-remove {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #047857;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .15s ease;
}
.pos-promo-remove:hover { background: rgba(4, 120, 87, 0.12); }

.pos-summary-row--discount span:last-child { color: #047857; font-weight: 600; }

.pos-order-summary {
  flex: 0 0 auto;
  margin: 8px 0 16px;
  padding-top: 14px;
  border-top: 1px solid var(--pos-border);
}
.pos-order-summary .pos-order-itemstitle { margin-bottom: 10px; }
.pos-summary-row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: var(--pos-text);
}
.pos-summary-row span:first-child { color: var(--pos-muted); }
.pos-summary-row--total {
  border-top: 1px solid var(--pos-border);
  margin-top: 8px;
  padding-top: 14px;
  font-size: 16px;
  font-weight: 700;
}
.pos-summary-row--total span:first-child { color: var(--pos-text); }

.pos-order-actions { display: flex; flex-direction: column; gap: 8px; }
.pos-btn {
  border: 1px solid var(--pos-border);
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  color: var(--pos-text);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.pos-btn:hover { background: #f9fafb; color: var(--pos-text); }
.pos-btn--primary {
  background: #15803d; color: #fff; border-color: #15803d;
  padding: 10px 14px;
  font-size: 13px;
}
.pos-btn--primary:hover { background: #166534; color: #fff; border-color: #166534; }
.pos-btn--ghost { flex: 1; }
.pos-order-actions-row {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-top: 4px;
}
.pos-order-actions-row .pos-btn { flex: 1; }

/* Modal + toast (keep) */
.size-picker-row {
  background: #f3f4f6;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.size-picker-row:hover { border-color: var(--pos-blue); background: #fff; }
.size-picker-row:disabled { opacity: 0.5; cursor: not-allowed; }
.size-picker-name { font-weight: 500; color: var(--pos-text); }
.size-picker-price { color: var(--pos-blue); font-weight: 600; }

.home-toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translate(-50%, 16px);
  background: #1f2937;
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1080;
}
.home-toast svg { color: #6dd58c; }
.home-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* ===== POS typography refinement ============================== */
/* Override global Prata h1-h6 + force-400 weight inside the POS UI */
.pos-shell,
.pos-shell input,
.pos-shell select,
.pos-shell button,
.pos-shell textarea {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  letter-spacing: -0.005em;
}
.pos-shell h1,
.pos-shell h2,
.pos-shell h3,
.pos-shell h4,
.pos-shell h5,
.pos-shell h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em;
  color: #0f172a;
}

/* Type scale + hierarchy */
.pos-shell { color: #1e293b; }
.pos-section-title {
  font-size: 17px;
  font-weight: 700 !important;
  letter-spacing: -0.015em;
  color: #0f172a;
}
.pos-order-title {
  font-size: 19px;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.pos-order-title #posOrderNo { font-weight: 700; color: #0f172a; }
.pos-order-stamp {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0;
}
.pos-order-itemstitle {
  font-size: 22px;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0f172a;
}
.pos-order-totalmenus {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}
.pos-totalmenus-pill {
  background: #eef2ff;
  color: #4338ca;
  font-weight: 600;
  font-size: 11px;
}

/* Category cards */
.pos-cat-name {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.005em;
}
.pos-cat-count {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}
.pos-cat-card.is-active .pos-cat-name { color: #f58220; }

/* Filter checks + search */
.pos-check {
  font-size: 12px;
  font-weight: 500;
  color: #475569;
}
.pos-search input {
  font-size: 13px;
  color: #0f172a;
  font-weight: 500;
}
.pos-search input::placeholder { color: #94a3b8; font-weight: 400; }

/* Food card */
.pos-food-cat {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #94a3b8;
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.pos-food-diet-label {
  font-size: 11px;
  font-weight: 600;
  color: inherit;
}
.pos-food-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0f172a;
  line-height: 1.35;
}
.pos-food-price-cur {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.015em;
}
.pos-food-price-old {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
}

/* Order types */
.pos-order-type-btn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #475569;
}
.pos-order-type-btn.is-active { font-weight: 600; color: #fff; }

/* Order items typography overrides handled inline in the main rule block above */

/* Empty state */
.pos-order-empty p {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}
.pos-order-empty .small {
  font-size: 11px;
  color: #94a3b8;
}

/* Payment summary */
.pos-summary-row {
  font-size: 13px;
  font-weight: 500;
}
.pos-summary-row span:first-child {
  color: #64748b;
  font-weight: 500;
}
.pos-summary-row span:last-child {
  color: #0f172a;
  font-weight: 600;
}
.pos-summary-row--total {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.pos-summary-row--total span:first-child { color: #0f172a; font-weight: 700; }
.pos-summary-row--total span:last-child { color: #0f172a; font-weight: 700; }

/* Primary CTA */
.pos-btn--primary {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.005em;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 12px -4px rgba(21, 128, 61, 0.45);
  transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.pos-btn--primary:hover {
  box-shadow: 0 6px 16px -4px rgba(21, 128, 61, 0.55);
}
.pos-btn--primary:active { transform: translateY(1px); }

/* Tag flags – cleaner casing */
.pos-tag-flag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 8px;
}

/* ===== legacy /home grid (no longer used; kept as no-op) ===== */

.home-grid-section {
  background-color: #f4f4f4;
  padding: 32px 0;
  min-height: 70vh;
}

/* 5-column grid on xl (Bootstrap 5 has no native col-xl-2.4) */
.col-xl-fifth { width: 100%; }
@media (min-width: 1200px) {
  .col-xl-fifth { flex: 0 0 auto; width: 20%; }
}

/* Two-tone card: cream media on top, white body on bottom, single rounded shell */
.food-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}
.food-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -16px rgba(0, 0, 0, 0.18);
}
.food-card-media {
  position: relative;
  background: #ecebe4;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.food-card-img {
  max-width: 55%;
  max-height: 55%;
  object-fit: contain;
  transition: transform .25s ease;
}
.food-card:hover .food-card-img { transform: scale(1.05); }

/* Veg / Non-veg square indicator (matches Indian-standard FSSAI mark) */
.food-veg-mark {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 16px;
  height: 16px;
  border: 1.5px solid;
  border-radius: 2px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.food-veg-mark::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.food-veg-mark--veg { border-color: #2e9a4a; }
.food-veg-mark--veg::after { background: #2e9a4a; }
.food-veg-mark--nonveg { border-color: #d23a26; }
.food-veg-mark--nonveg::after { background: #d23a26; }

/* Popular pill */
.food-popular-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px 5px 10px;
  background: #fde0cb;
  color: #d96f30;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
}
.food-popular-icon { font-size: 12px; line-height: 1; }

/* Round black + button */
.food-card-add {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #1c1c1c;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.35);
}
.food-card-add:hover {
  background: #2a2a2a;
  transform: scale(1.06);
}
.food-card-add:active { transform: scale(0.96); }

/* White body */
.food-card-body {
  background: #ffffff;
  padding: 14px 16px 16px;
}
.food-card-name {
  font-size: 17px;
  font-weight: 600;
  color: #1c1c1c;
  margin: 0 0 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.food-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.food-card-sizes {
  font-size: 13px;
  color: #b8b3a7;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.01em;
}
.food-card-price {
  font-size: 14px;
  color: #1c1c1c;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.food-card-price-curr {
  font-size: 12px;
  color: #b8b3a7;
  font-weight: 400;
}
.food-card-price strong {
  font-size: 17px;
  font-weight: 700;
}

/* Size-picker modal rows */
.size-picker-row {
  background: #f6f4ee;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 14px 18px;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.size-picker-row:hover {
  border-color: var(--text-primary, #c09342);
  background: #ffffff;
}
.size-picker-row:disabled { opacity: 0.5; cursor: not-allowed; }
.size-picker-name { font-weight: 500; color: #1c1c1c; }
.size-picker-price { color: var(--text-primary, #c09342); }

/* Floating toast */
.home-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 16px);
  background: #1c1c1c;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1080;
}
.home-toast svg { color: #6dd58c; }
.home-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

@media (max-width: 575.98px) {
  .food-card-name { font-size: 15px; }
  .food-card-price strong { font-size: 16px; }
}

/* ========================================================================
   In-drawer Place-Order wizard (lives inside .pos-right basket panel)
   3 stages swap inside the drawer: items → mode → details.
   ======================================================================== */
.pos-right .pos-drawer-stage {
  display: flex; flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.pos-right .pos-drawer-stage[hidden] { display: none; }

/* Mini stepbar shown on stages 2 & 3.
   Total height matches the orange announcement bar on the left (~40px),
   so the bottom border line runs straight across the entire page. */
.pos-drawer-stepbar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 -20px;
  padding: 4px 14px;
  background: #fff;
  border-bottom: 1px solid var(--pos-border);
  box-sizing: border-box;
  height: 40px;
  /* Position context for the absolutely-placed back-arrow so the
     steps can centre horizontally without it taking flex space.
     z-index keeps the stepbar above any incidentally repositioned
     stage content so the form fields can never bleed up over it. */
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.pos-drawer-stepbar[hidden] { display: none; }
.pos-drawer-stepback {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--pos-border);
  border-radius: 50%;
  cursor: pointer;
  color: #14241c;
  transition: background .15s ease, transform .1s ease;
  /* Absolute so the steps stay perfectly centred inside the stepbar */
  position: absolute;
  left: 14px;
  top: 50%;
  margin-top: -14px;
  flex-shrink: 0;
}
.pos-drawer-stepback svg { width: 12px; height: 12px; }
.pos-drawer-stepback:hover { background: #f5f5f5; }
.pos-drawer-stepback:active { transform: scale(0.95); }
.pos-drawer-steps {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: center; gap: 4px;
}
.pos-drawer-step {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
}
.pos-drawer-step:not(:last-child)::after {
  content: "";
  flex: 0 0 auto;
  width: 16px; height: 1.5px;
  background: #d4d2c8;
  margin: 0 4px;
}
.pos-drawer-step-dot {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid #d4d2c8;
  border-radius: 50%;
  background: transparent;
  font-size: 10.5px;
  font-weight: 700;
  color: #9ca3af;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.pos-drawer-step.is-active .pos-drawer-step-dot {
  background: #15803d; border-color: #15803d; color: #fff;
}
.pos-drawer-step.is-active { color: #14241c; font-weight: 700; }
.pos-drawer-step.is-done .pos-drawer-step-dot {
  background: #dcfce7; border-color: #15803d; color: #15803d;
}

/* Stage header inside the drawer */
.pos-stage-head {
  padding: 20px 0 12px;
  /* Sits in normal flow but a small top margin guarantees clear separation
     from the stepbar's bottom border even if any sub-pixel rounding kicks in. */
  margin-top: 4px;
  position: relative;
  z-index: 1;
}
.pos-stage-title {
  font-family: "Prata", serif !important;
  font-size: 18px; margin: 0 0 4px; color: var(--pos-text);
}
.pos-stage-sub { font-size: 12px; color: var(--pos-muted); margin: 0; }

/* Scrollable middle of stages 2 & 3 — keeps footer pinned */
.pos-stage-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 4px;
  margin: 0 -4px 12px 0;
}

/* ============================================================
   Mode stage — illustrated hero carousel matching the reference.
   - Warm beige stage bg
   - Hero card: pale-green sky / mid-green ground / white body
   - Carousel arrows + pagination dots + 3-mode illustrations
   - Title row + time pill
   - 3-column stats grid with vertical dividers
   - Mode pill row (white default, black selected)
   - Sticky black CTA + muted footnote
   ============================================================ */
/* Mode stage shares the white panel bg so all three stages feel cohesive.
   The hero card inside has its own pale-green sky + drop shadow to read as a card. */
.pos-right .pos-drawer-stage.pos-mode-stage {
  padding-top: 14px;
}
.pos-mode-stage-scroll { padding-bottom: 16px; }

/* "STEP 01" eyebrow + title */
.pos-mode-step { padding: 4px 0 14px; }
.pos-mode-step-eyebrow {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em;
  color: #15803d;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pos-mode-step-title {
  font-family: "Prata", serif !important;
  font-weight: 400 !important;
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
  color: #14241c;
}

/* ====== Hero card (sits below the pill row) ======
   Lives on a white stage now, so the card is distinguished by its
   own internal pale-green sky + a 1px hairline border + a softer shadow. */
.pos-mode-hero {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e5e3da;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 36px -22px rgba(15, 23, 42, 0.18);
  margin: 0;
}

/* Top illustrated stage: pale-green sky + ground strip */
.pos-mode-hero-stage {
  position: relative;
  background: #e6f1de;
  height: 188px;
  overflow: hidden;
}
.pos-mode-hero-ground {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 22px;
  background: #a8c8a0;
  border-top: 1px solid rgba(21, 128, 61, 0.18);
}

/* Pagination dots top-right */
.pos-mode-hero-dots {
  position: absolute;
  top: 14px; right: 16px;
  display: flex; align-items: center; gap: 4px;
  z-index: 2;
}
.pos-mode-hero-dot {
  width: 6px; height: 6px;
  background: rgba(21, 128, 61, 0.35);
  border-radius: 999px;
  transition: width .2s ease, background .2s ease;
  cursor: pointer;
}
.pos-mode-hero-dot.is-active {
  width: 18px;
  background: #14532d;
}

/* Carousel arrows */
.pos-mode-hero-arrow {
  position: absolute;
  top: 60%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  background: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  color: #14241c;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: transform .12s ease, box-shadow .12s ease;
}
.pos-mode-hero-arrow:hover {
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
  transform: translateY(-50%) scale(1.04);
}
.pos-mode-hero-arrow:active { transform: translateY(-50%) scale(0.96); }
.pos-mode-hero-arrow--prev { left: 12px; }
.pos-mode-hero-arrow--next { right: 12px; }

/* Illustrations — only the active one shows */
.pos-mode-hero-illu {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 14px 56px 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.pos-mode-hero-illu.is-active {
  opacity: 1;
}
.pos-mode-hero-illu svg {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: 100%;
}

/* Circular badge holding a Font Awesome icon for each mode */
.pos-mode-hero-icon {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: #14241c;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px -12px rgba(15, 23, 42, 0.35),
              0 4px 12px -6px rgba(15, 23, 42, 0.18);
  position: relative;
}
.pos-mode-hero-icon .fa {
  font-size: 56px;
  line-height: 1;
}
/* Subtle ring around the badge so it pops on the green sky */
.pos-mode-hero-icon::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(21, 83, 45, 0.25);
  pointer-events: none;
}

/* Hero body — white panel below the illustration */
.pos-mode-hero-body { padding: 18px 20px 20px; }
.pos-mode-hero-titlerow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 6px;
}
.pos-mode-hero-title {
  font-family: "Prata", serif !important;
  font-weight: 400 !important;
  font-size: 24px;
  line-height: 1;
  margin: 0;
  color: #14241c;
  flex: 1;
  min-width: 0;
}
.pos-mode-hero-time {
  display: inline-flex; align-items: center;
  background: #dcfce7;
  color: #166534;
  font-family: "Inter", sans-serif;
  font-size: 12px; font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.pos-mode-hero-desc {
  font-size: 13px;
  color: #6b7263;
  margin: 0 0 16px;
  line-height: 1.45;
}

/* 3-column stats grid */
.pos-mode-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #e5e3da;
  border-radius: 12px;
  overflow: hidden;
}
.pos-mode-hero-stat {
  padding: 12px 10px;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.pos-mode-hero-stat + .pos-mode-hero-stat {
  border-left: 1px solid #e5e3da;
}
.pos-mode-hero-stat-label {
  font-family: "Inter", sans-serif;
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.16em;
  color: #9ca3af;
  text-transform: uppercase;
}
.pos-mode-hero-stat-value {
  font-family: "Inter", sans-serif !important;
  font-size: 13px; font-weight: 600 !important;
  color: #14241c;
  line-height: 1.25;
  word-wrap: break-word;
}

/* ====== Mode pill row (sits directly under the title, above the hero) ====== */
.pos-mode-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 16px;
}
.pos-mode-pill {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 8px;
  /* Neutral white pill — the 1.5px border keeps the pill distinct from the panel
     without picking up the warm/orange cast of the homepage --pos-bg cream. */
  border: 1.5px solid var(--pos-border);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pos-text);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .1s ease;
  margin: 0;
  white-space: nowrap;
}
.pos-mode-pill input[type="radio"] {
  position: absolute; opacity: 0; pointer-events: none;
}
/* Emoji icon — system color emoji font stack so it renders consistently and
   keeps its native color on both white and black pill backgrounds. */
.pos-mode-pill-emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
               "EmojiOne Color", "Twemoji Mozilla", sans-serif;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-shadow: none;
}
.pos-mode-pill:hover { border-color: #14241c; }
.pos-mode-pill.is-active {
  background: #14241c;
  border-color: #14241c;
  color: #fff;
}

/* ====== CTA + footnote (sticky bottom of stage) ====== */
.pos-mode-cta {
  padding: 14px 0 4px;
  display: flex; flex-direction: column; gap: 10px;
}
.pos-btn--cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  background: #14241c;
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 16px 18px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.pos-btn--cta:hover {
  /* Override the generic .pos-btn:hover (which would otherwise pull text to var(--pos-text)
     and bg to #f9fafb, making the label disappear into a dark background). */
  background: #0a1611;
  color: #fff;
  border-color: transparent;
}
.pos-btn--cta:active { transform: translateY(1px); }
.pos-btn--cta[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.pos-btn--cta svg,
.pos-btn--cta:hover svg { color: #fff; }

.pos-mode-foot {
  text-align: center;
  font-size: 9px;
  color: #9ca3af;
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
}

/* Form ergonomics in the narrow drawer */
.pos-details-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.pos-form-mode { border: 0; padding: 0; margin: 0; min-width: 0; }
.pos-form-mode[disabled] { display: none !important; }
.pos-field-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.pos-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pos-field-label {
  font-size: 12px; font-weight: 600; color: var(--pos-text); margin: 0;
  display: flex; align-items: center; gap: 4px;
}
.pos-req { color: #dc2626; }
.pos-optional { color: var(--pos-muted); font-weight: 400; font-size: 11px; }
.pos-helper { color: var(--pos-muted); font-size: 12px; }
.pos-input {
  border: 1px solid var(--pos-border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--pos-text);
  background: #fff;
  width: 100%;
  font-family: "Inter", sans-serif;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pos-input:focus {
  outline: none; border-color: #15803d;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12);
}
.pos-input--center { text-align: center; max-width: 60px; }
.pos-textarea { resize: vertical; min-height: 56px; }

/* Phone field with a sticky +94 country-code prefix. The wrapper owns the
   border + focus ring so the prefix chip sits flush inside the field. */
.pos-phone-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--pos-border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pos-phone-wrap:focus-within {
  border-color: #15803d;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12);
}
.pos-phone-prefix {
  display: inline-flex; align-items: center;
  padding: 0 12px;
  background: #f9fafb;
  color: #4b5563;
  font-weight: 600;
  font-size: 13px;
  border-right: 1px solid var(--pos-border);
  user-select: none;
}
.pos-phone-input {
  flex: 1 1 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  letter-spacing: 0.4px;
}
.pos-phone-input:focus { outline: none; box-shadow: none; border: 0; }
.pos-field-hint { color: var(--pos-muted); font-size: 11px; margin-top: 2px; }

/* 12-hour time picker — hour / minute / AM-PM selects with a colon separator. */
.pos-timepicker {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.pos-timepicker .pos-tp-h,
.pos-timepicker .pos-tp-m,
.pos-timepicker .pos-tp-ap {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  padding: 8px 24px 8px 10px;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
}
.pos-tp-sep { color: var(--pos-muted); font-weight: 700; font-size: 16px; line-height: 1; padding: 0 2px; flex: 0 0 auto; }

/* Loader spinner shown inside the Confirm-Order button while submitting. */
.pos-btn .pos-btn-spinner {
  display: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  margin-right: 8px;
  animation: pos-btn-spin 0.7s linear infinite;
  vertical-align: -2px;
}
.pos-btn.is-loading .pos-btn-spinner { display: inline-block; }
.pos-btn.is-loading .pos-btn-label::after { content: '…'; }
.pos-btn.is-loading { cursor: wait; opacity: 0.85; }
@keyframes pos-btn-spin { to { transform: rotate(360deg); } }

/* Success stage shown after a successful order. */
.pos-success-stage { display: flex; flex-direction: column; }
.pos-success-card {
  flex: 1 1 auto;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 28px 20px 16px;
}
.pos-success-tick {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  animation: pos-success-pop 0.35s ease-out;
}
.pos-success-tick svg { width: 36px; height: 36px; }
.pos-success-title {
  font-size: 20px; font-weight: 700; color: var(--pos-text);
  margin: 0 0 4px;
}
.pos-success-sub {
  color: var(--pos-muted); font-size: 13px; max-width: 320px;
  margin: 0 0 18px;
}
.pos-success-meta {
  list-style: none; padding: 0; margin: 0;
  width: 100%; max-width: 360px;
  display: flex; flex-direction: column; gap: 6px;
}
.pos-success-meta li {
  display: flex; justify-content: space-between; align-items: baseline;
  background: #f9fafb;
  border: 1px solid var(--pos-border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
}
.pos-success-meta li span { color: var(--pos-muted); }
.pos-success-meta li strong { color: var(--pos-text); font-weight: 600; }
@keyframes pos-success-pop {
  0%   { transform: scale(0.6); opacity: 0; }
  70%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

.pos-divider { border: 0; border-top: 1px dashed var(--pos-border); margin: 4px 0 14px; }
.pos-section-title {
  font-family: "Inter", sans-serif !important;
  font-size: 11px; font-weight: 700 !important;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--pos-muted); margin: 0 0 10px;
}

/* Number-of-persons stepper — connected control with proper touch targets */
.pos-persons-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 280px;
  height: 48px;
  background: #fff;
  border: 1px solid var(--pos-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pos-persons-row:focus-within {
  border-color: #15803d;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12);
}
.pos-persons-row .pos-stepper-btn {
  width: 48px;
  height: 100%;
  background: #fff;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  color: var(--pos-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease;
}
.pos-persons-row .pos-stepper-btn:hover:not([disabled]) { background: #f3f4f6; }
.pos-persons-row .pos-stepper-btn:active:not([disabled]) { background: #e5e7eb; transform: none; }
.pos-persons-row .pos-stepper-btn[disabled] {
  color: #d1d5db;
  cursor: not-allowed;
}
.pos-persons-row .pos-stepper-btn svg { width: 14px; height: 14px; pointer-events: none; }

.pos-persons-value {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  background: #fafafa;
  border-left: 1px solid var(--pos-border);
  border-right: 1px solid var(--pos-border);
}
.pos-persons-input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--pos-text);
  text-align: center;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  appearance: textfield;
  -moz-appearance: textfield;
  outline: none;
}
.pos-persons-input::-webkit-outer-spin-button,
.pos-persons-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Helper line below input fields */
.pos-field-help {
  font-size: 12px;
  color: var(--pos-muted);
  margin: 6px 0 0;
  line-height: 1.35;
}

.pos-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.pos-chip {
  background: #fff; border: 1px solid var(--pos-border); border-radius: 999px;
  padding: 5px 11px; font-size: 12px; font-weight: 600;
  color: var(--pos-text); cursor: pointer; transition: all .15s ease;
}
.pos-chip:hover { background: #f3f4f6; }
.pos-chip.is-active { background: #15803d; border-color: #15803d; color: #fff; }
.pos-chip:disabled,
.pos-chip[disabled] {
  background: #f3f4f6; color: #9ca3af; border-color: #e5e7eb;
  cursor: not-allowed; opacity: .6; text-decoration: line-through;
}
.pos-tp-h option:disabled,
.pos-tp-m option:disabled,
.pos-tp-ap option:disabled { color: #9ca3af; }

.pos-pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pos-pill {
  position: relative;
  display: inline-flex; align-items: center;
  background: #fff; border: 1.5px solid var(--pos-border); border-radius: 999px;
  padding: 4px 12px; font-size: 12px; font-weight: 600;
  color: var(--pos-text); cursor: pointer; transition: all .15s ease;
}
.pos-pill input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.pos-pill:hover { background: #f3f4f6; }
.pos-pill.is-active { background: #f0fdf4; border-color: #15803d; color: #166534; }

.pos-when-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pos-when {
  position: relative;
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px;
  background: #fff; border: 1.5px solid var(--pos-border); border-radius: 10px;
  cursor: pointer; transition: all .15s ease;
}
.pos-when input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.pos-when:hover { background: #f7fdf9; border-color: #86efac; }
.pos-when.is-active { background: #f0fdf4; border-color: #15803d; }
.pos-when-title { font-weight: 600; font-size: 13px; color: var(--pos-text); }
.pos-when-meta { font-size: 11px; color: var(--pos-muted); }
.pos-when-fields {
  display: grid;
  /* Auto-fit so the date + time-picker sit side-by-side when there's room
     (>= 440px), and stack cleanly on narrow drawers without clipping. */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.pos-form-error {
  background: #fef2f2; color: #b91c1c;
  border: 1px solid #fecaca; border-radius: 10px;
  padding: 8px 12px; font-size: 12px; margin: 0 0 8px;
}

.pos-btn[disabled],
.pos-btn--primary[disabled] {
  opacity: 0.5; pointer-events: none; cursor: not-allowed;
}

/* ----- Stage 3: Confirm / Review ----- */
.pos-confirm-section { padding: 6px 0 12px; border-bottom: 1px solid #f1f5f9; }
.pos-confirm-section:last-of-type { border-bottom: 0; }
.pos-confirm-list { list-style: none; margin: 6px 0 0; padding: 0; }
.pos-confirm-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px; padding: 6px 0; font-size: 13px;
}
.pos-confirm-label { color: #64748b; flex: 0 0 auto; }
.pos-confirm-value { color: #0f172a; font-weight: 500; text-align: right; word-break: break-word; }
.pos-confirm-row--total { padding-top: 10px; margin-top: 4px; border-top: 1px dashed #e2e8f0; }
.pos-confirm-row--total .pos-confirm-label,
.pos-confirm-row--total .pos-confirm-value { font-weight: 700; color: #0f172a; font-size: 14px; }

.pos-confirm-items { list-style: none; margin: 6px 0 0; padding: 0; }
.pos-confirm-itemrow {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px;
  padding: 8px 0; font-size: 13px; border-bottom: 1px dashed #f1f5f9;
}
.pos-confirm-itemrow:last-child { border-bottom: 0; }
.pos-confirm-itemname { color: #0f172a; }
.pos-confirm-itemnote { color: #64748b; font-style: italic; font-size: 12px; }
.pos-confirm-itemqty { color: #64748b; }
.pos-confirm-itemtotal { color: #0f172a; font-weight: 600; }

/* Mobile: while wizard is past the items stage, give the bottom-sheet
   drawer the full screen so 6+ form fields aren't cramped. */
@media (max-width: 991px) {
  .pos-right[data-stage="mode"],
  .pos-right[data-stage="details"],
  .pos-right[data-stage="confirm"] {
    height: 100vh;
    max-height: 100vh;
  }
  .pos-right[data-stage="mode"] .pos-stage-scroll,
  .pos-right[data-stage="details"] .pos-stage-scroll,
  .pos-right[data-stage="confirm"] .pos-stage-scroll {
    padding-bottom: 8px;
  }
}

/* ============================================================
   Phone-specific tightening for the Mode stage so it feels
   as comfortable as the basket view at narrow widths.
   Targets ~390px and below where the hero card, pills and
   stats grid would otherwise feel oversized.
   ============================================================ */
@media (max-width: 575.98px) {
  /* --- Header --- */
  .pos-mode-step { padding: 2px 0 12px; }
  .pos-mode-step-title { font-size: 20px; line-height: 1.2; }
  .pos-mode-step-eyebrow { font-size: 10px; margin-bottom: 6px; }

  /* --- Stepbar (top strip) ---
     Symmetric horizontal padding (44px both sides) reserves equal room for
     the absolute back-arrow on the left and the X close button on the right
     so the centred step list stays visually centred relative to the panel. */
  .pos-drawer-stepbar { gap: 6px; padding: 4px 44px; height: 38px; }
  .pos-drawer-step { font-size: 12px; gap: 4px; }
  .pos-drawer-step:not(:last-child)::after { width: 12px; margin: 0 2px; }

  /* --- Pills row --- */
  .pos-mode-pills { gap: 6px; margin-bottom: 14px; }
  .pos-mode-pill {
    padding: 10px 6px;
    font-size: 12px;
    gap: 5px;
    border-radius: 10px;
  }
  .pos-mode-pill-emoji { font-size: 15px; }

  /* --- Hero card: shorter sky, smaller badge, tighter arrows --- */
  .pos-mode-hero-stage { height: 158px; }
  .pos-mode-hero-icon { width: 96px; height: 96px; }
  .pos-mode-hero-icon .fa { font-size: 44px; }
  .pos-mode-hero-icon::before { inset: -6px; }
  .pos-mode-hero-arrow {
    width: 30px; height: 30px;
  }
  .pos-mode-hero-arrow--prev { left: 8px; }
  .pos-mode-hero-arrow--next { right: 8px; }
  .pos-mode-hero-dots { top: 12px; right: 12px; }
  .pos-mode-hero-dot { width: 5px; height: 5px; }
  .pos-mode-hero-dot.is-active { width: 16px; }

  /* --- Hero body: title row + description tighter --- */
  .pos-mode-hero-body { padding: 14px 16px 16px; }
  .pos-mode-hero-titlerow { gap: 8px; margin-bottom: 4px; }
  .pos-mode-hero-title { font-size: 20px; }
  .pos-mode-hero-time {
    font-size: 11px;
    padding: 4px 10px;
  }
  .pos-mode-hero-desc {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  /* --- Stats grid: smaller labels and values so 3 columns fit cleanly --- */
  .pos-mode-hero-stats { border-radius: 10px; }
  .pos-mode-hero-stat { padding: 9px 8px; gap: 3px; }
  .pos-mode-hero-stat-label { font-size: 9px; letter-spacing: 0.14em; }
  .pos-mode-hero-stat-value { font-size: 11.5px; }

  /* --- CTA + footnote --- */
  .pos-mode-cta { padding: 12px 0 4px; gap: 8px; }
  .pos-btn--cta { padding: 14px 16px; font-size: 13px; border-radius: 12px; }
  .pos-mode-foot { font-size: 8.5px; }
}

/* ============================================================
   Phone fixes for the Details stage header (Dine-In / Delivery / Pick-Up details)
   - Adds breathing room between the stepbar and the page title so they don't crowd
   - Centres the X close button within the stepbar's vertical band
   - Tightens the heading typography for the narrow panel
   ============================================================ */
@media (max-width: 575.98px) {
  /* Heading + sub-line — give the title room below the stepbar */
  .pos-stage-head {
    padding: 24px 0 10px;
    margin-top: 6px;
  }
  .pos-stage-title {
    font-size: 16px !important;
    line-height: 1.25;
  }
  .pos-stage-sub {
    font-size: 12px;
    margin-top: 2px;
  }

  /* X close button — smaller and centred on the stepbar so it stops crowding the title row */
  .pos-drawer-close {
    width: 28px !important;
    height: 28px !important;
    top: 23px !important;     /* centre on the 38–40px stepbar starting at panel-padding-top (~18px) */
    right: 12px !important;
  }
  .pos-drawer-close svg { width: 12px !important; height: 12px !important; }
}

/* Extra-narrow (≤ 360px): collapse stats to two-line key/value rows
   so very long values like "Counter pickup" never wrap mid-word */
@media (max-width: 360px) {
  .pos-mode-hero-stage { height: 148px; }
  .pos-mode-hero-icon { width: 88px; height: 88px; }
  .pos-mode-hero-icon .fa { font-size: 40px; }
  .pos-mode-hero-stat { padding: 8px 6px; }
  .pos-mode-hero-stat-label { font-size: 8.5px; }
  .pos-mode-hero-stat-value { font-size: 11px; }
  .pos-mode-pill { font-size: 11.5px; padding: 9px 4px; }
}

/* Match the Mode-stage Continue button's height + colour to the Place an Order /
   Continue to review / Confirm Order buttons. Everywhere else uses .pos-btn--primary
   (green); only .pos-btn--cta diverged in size and used a dark colour. */
.pos-right .pos-btn--cta {
  padding: 10px 14px;
  font-size: 13px;
  background: #15803d;
  color: #fff;
  border: 1px solid #15803d;
}
.pos-right .pos-btn--cta:hover {
  background: #166534;
  color: #fff;
  border-color: #166534;
}
@media (max-width: 575.98px) {
  .pos-right .pos-btn--cta { padding: 10px 14px; font-size: 13px; }
}

/* ============================================================
   Add-ons modal — shown for foods that have add-ons or multiple
   variants. Centred card on tablet/desktop, bottom sheet on phones.
   Body scroll is locked via .pos-addons-open while open.
   ============================================================ */
body.pos-addons-open {
  position: fixed;
  inset-inline: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: contain;
}

.pos-addons-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pos-addons-modal[hidden] { display: none; }
.pos-addons-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}
.pos-addons-modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: posAddonsPop 180ms ease-out;
}
@keyframes posAddonsPop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.pos-addons-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #eef2f7;
}
.pos-addons-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}
.pos-addons-modal-close {
  background: transparent;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
}
.pos-addons-modal-close:hover { background: #f1f5f9; color: #0f172a; }

.pos-addons-modal-body {
  padding: 14px 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  min-height: 0;
}
.pos-addons-food {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e2e8f0;
}
.pos-addons-food-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pos-addons-food-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pos-addons-food-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.pos-addons-food-name {
  font-weight: 600;
  font-size: 15px;
  color: #0f172a;
  line-height: 1.25;
  word-break: break-word;
}
.pos-addons-food-variant { font-size: 12px; color: #64748b; }
.pos-addons-food-variant:empty { display: none; }
.pos-addons-food-price { font-size: 13px; color: #166534; font-weight: 600; }

.pos-addons-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed #e2e8f0;
}
.pos-addons-qty-label { font-size: 13px; font-weight: 600; color: #0f172a; }

.pos-addons-list-head {
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pos-addons-variants[hidden] { display: none; }
.pos-addons-variant-list,
.pos-addons-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pos-addons-variant-item,
.pos-addons-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.pos-addons-variant-check,
.pos-addons-item-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  min-width: 0;
  flex: 1;
}
.pos-addons-variant-check input[type="radio"],
.pos-addons-item-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #166534;
  flex-shrink: 0;
}
.pos-addons-variant-name,
.pos-addons-item-name {
  font-size: 13px;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pos-addons-variant-price { font-size: 12px; color: #64748b; flex-shrink: 0; }
.pos-addons-item-trail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.pos-addons-item-price { font-size: 12px; color: #64748b; }

.pos-addons-modal-foot {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #eef2f7;
  background: #fff;
  flex: 0 0 auto;
}
.pos-addons-modal-foot .pos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 40px;
  line-height: 1.2;
}
.pos-addons-modal-foot .pos-btn--ghost {
  background: #fff;
  color: #475569;
  border-color: #e2e8f0;
  flex: 0 0 auto;
  min-width: 88px;
}
.pos-addons-modal-foot .pos-btn--ghost:hover { background: #f1f5f9; color: #0f172a; }
.pos-addons-modal-foot .pos-btn--primary {
  background: #16a34a;
  color: #fff;
  flex: 1 1 auto;
}
.pos-addons-modal-foot .pos-btn--primary:hover { background: #166534; }

/* ----- Phones: keep the centred card, just tighten typography and
   spacing so it fits comfortably on narrow screens ----- */
@media (max-width: 575.98px) {
  .pos-addons-modal { padding: 16px; }
  .pos-addons-modal-dialog { max-height: calc(100vh - 32px); border-radius: 14px; }
  .pos-addons-modal-header { padding: 12px 16px; }
  .pos-addons-modal-title { font-size: 15px; }
  .pos-addons-modal-close { width: 30px; height: 30px; }

  .pos-addons-modal-body { padding: 12px 16px; }

  .pos-addons-food-thumb { width: 44px; height: 44px; border-radius: 8px; }
  .pos-addons-food-name  { font-size: 14px; }
  .pos-addons-food-price { font-size: 12px; }

  .pos-addons-list-head { margin-top: 12px; margin-bottom: 6px; font-size: 11px; }

  .pos-addons-variant-item,
  .pos-addons-item {
    padding: 8px 10px;
    border-radius: 9px;
  }
  .pos-addons-variant-name,
  .pos-addons-item-name { font-size: 13px; }
  .pos-addons-variant-price,
  .pos-addons-item-price { font-size: 11px; }

  .pos-addons-modal-foot {
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }
  .pos-addons-modal-foot .pos-btn {
    padding: 9px 12px;
    font-size: 13px;
    min-height: 40px;
    border-radius: 9px;
  }
  .pos-addons-modal-foot .pos-btn--ghost { min-width: 76px; }
}


