/* ==========================================
   METHAI RESTAURANT DETAILS
   COMPLETE CLEAN CSS
   ========================================== */

/* FULL SCREEN */
#mr-detail-screen {
  position: fixed;
  inset: 0;
  z-index: 2147483006;
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  color: #17171b;
  font-family: Arial, sans-serif;
}

#mr-detail-screen.mr-visible {
  display: block;
}

/* ==========================================
   RESTAURANT HERO IMAGE
   ========================================== */

#mr-detail-screen .mr-detail-hero {
  position: relative;
  height: 205px;
  overflow: hidden;
  background: #103d31;
}

#mr-detail-screen .mr-detail-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
}

#mr-detail-screen .mr-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.23),
    transparent 65%
  );
  pointer-events: none;
}

/* ==========================================
   BACK AND SHARE BUTTONS
   ========================================== */

#mr-detail-screen .mr-detail-nav {
  position: absolute;
  top: calc(35px + env(safe-area-inset-top, 0px));
  left: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
}

#mr-detail-screen .mr-detail-nav button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

/* ==========================================
   WHITE OVERLAPPING STACK
   ========================================== */

#mr-detail-screen .mr-detail-panel {
  position: relative;
  z-index: 1;
  margin-top: -55px;
  min-height: calc(100dvh - 150px);
  padding: 25px 16px 32px;
  border-radius: 24px 24px 0 0;
  background: #fff;
  touch-action: pan-y;
}

/* VISIBLE DRAG HANDLE */
#mr-detail-screen .mr-detail-panel::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 38px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 10px;
  background: #d6d6db;
}

/* ==========================================
   CLOSED RESTAURANT ALERT
   ========================================== */

#mr-detail-screen .mr-detail-alert {
  padding: 9px 11px;
  margin: 0 0 12px;
  border-radius: 11px;
  background: linear-gradient(
    100deg,
    #e5f6ed,
    #f7faf8
  );
  color: #087b3b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

/* ==========================================
   RESTAURANT NAME
   ========================================== */

#mr-detail-screen .mr-detail-name {
  margin: 0 0 8px;
  color: #17171b;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.4px;
}

/* ==========================================
   RATING / LOCATION
   ========================================== */

#mr-detail-screen .mr-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
  color: #85858b;
  font-size: 11px;
}

#mr-detail-screen .mr-detail-rating {
  color: #126947;
  font-weight: 700;
}

/* DIVIDER */
#mr-detail-screen .mr-detail-rule {
  height: 1px;
  margin: 0 0 14px;
  background: #e8e8ec;
}

/* ==========================================
   PINK PRICE COMPARISON
   ========================================== */
/* ==========================================
   LOWER PRICES ROW
   ========================================== */

#mr-detail-screen .mr-detail-deal {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e82b65;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

/* ==========================================
   TWO CONNECTED EYES
   ========================================== */

#mr-detail-screen .mr-detail-deal-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 20px;
  flex: 0 0 28px;
  font-size: 0;
  line-height: 0;
}

/* REMOVE OLD PSEUDO EYES */

#mr-detail-screen .mr-detail-deal-icon::before,
#mr-detail-screen .mr-detail-deal-icon::after {
  content: none;
}

/* ==========================================
   EYE OUTLINES - FIXED
   ========================================== */

#mr-detail-screen .mr-eye {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 18px;
  flex: 0 0 15px;
  border: 2px solid #e82b65;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
}

/* EYES TOUCHING */

#mr-detail-screen .mr-eye + .mr-eye {
  margin-left: -2px;
}

/* ==========================================
   PINK HEART PUPILS
   ========================================== */

#mr-detail-screen .mr-eye svg {
  display: block;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  fill: #e82b65;
  stroke: none;

  /* NO ROTATION */
  transform: translateX(0);

  animation: mrEyesLook 3s ease-in-out infinite;
}

/* ==========================================
   EYES LOOK LEFT AND RIGHT
   ========================================== */

@keyframes mrEyesLook {

  /* CENTER */
  0%, 15% {
    transform: translateX(0);
  }

  /* LOOK LEFT */
  25%, 40% {
    transform: translateX(-2px);
  }

  /* BACK TO CENTER */
  50%, 60% {
    transform: translateX(0);
  }

  /* LOOK RIGHT */
  70%, 85% {
    transform: translateX(2px);
  }

  /* BACK TO CENTER */
  95%, 100% {
    transform: translateX(0);
  }
}

/* ==========================================
   SUBTITLE - REDUCED GAP
   ========================================== */

#mr-detail-screen .mr-detail-deal-sub {
  margin: 2px 0 7px 34px;
  color: #93939b;
  font-size: 11px;
  line-height: 1.3;
}

/* ==========================================
   SEARCH BAR
   ========================================== */

#mr-detail-screen .mr-detail-search {
  margin-top: 0;
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {
  #mr-detail-screen .mr-eye svg {
    animation: none;
    transform: translateX(0);
  }
}



/* ==========================================
   SEARCH BAR
   ========================================== */

#mr-detail-screen .mr-detail-search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 43px;
  padding: 0 14px;
  border: 1px solid #e6e6ed;
  border-radius: 24px;
  background: #f6f5fa;
  color: #777783;
  font-size: 13px;
}

#mr-detail-screen .mr-detail-search .fa-magnifying-glass {
  font-size: 14px;
}

/* ==========================================
   ORIGINAL MINI MENU LOADER
   SAME SIZE / SAME ANIMATION
   ========================================== */

/* FULL SCREEN LOADER */
#mr-detail-screen .mr-menu-loading {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  background: #fff;
}

#mr-detail-screen.mr-loading .mr-menu-loading {
  display: flex;
}

/* MENU WRAPPER */
#mr-detail-screen .mr-mini-wrap {
  position: relative;
  width: 85px;
  height: 110px;
  flex-shrink: 0;
  transform: rotate(-12deg);
}

/* MENU CARD */
#mr-detail-screen .mr-mini-menu {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* MENU HEADER */
#mr-detail-screen .mr-mini-header {
  height: 24px;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1px;
}

#mr-detail-screen .mr-mini-header strong {
  font-size: 7px;
  font-weight: 900;
  color: #111;
  line-height: 1;
}

#mr-detail-screen .mr-mini-header small {
  font-size: 4px;
  color: #777;
  letter-spacing: .5px;
  line-height: 1;
}

/* MENU ITEMS */
#mr-detail-screen .mr-mini-item {
  height: 28px;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
}

#mr-detail-screen .mr-mini-item-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ITEM NAME */
#mr-detail-screen .mr-mini-item h4 {
  font-size: 5px;
  font-weight: 700;
  color: #222;
  margin: 0 0 3px;
  line-height: 1;
}

/* THREE GREY LINES */
#mr-detail-screen .mr-mini-line {
  display: block;
  width: 25px;
  height: 2px;
  background: #e5e5e5;
  border-radius: 3px;
  margin-bottom: 2px;
}

#mr-detail-screen .mr-mini-line.short {
  width: 16px;
}

/* FOOD IMAGES */
#mr-detail-screen .mr-mini-food {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* MOVING PINK BORDER */
#mr-detail-screen .mr-mini-border {
  position: absolute;
  inset: -3px;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  overflow: visible;
  pointer-events: none;
  z-index: 5;
}

#mr-detail-screen .mr-mini-border rect {
  fill: none;
  stroke: #f52c9a;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 40 150 40 150;
  animation: mr-border-travel .7s linear infinite;
}

@keyframes mr-border-travel {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -380; }
}

@media (max-width: 360px) {
  #mr-detail-screen .mr-mini-wrap {
    transform: rotate(-12deg) scale(.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  #mr-detail-screen .mr-mini-border rect {
    animation: none;
  }
}

#mr-detail-screen .mr-detail-panel {
  position: relative;
  overflow: visible;
}

#mr-detail-screen .mr-detail-corner-image {
  position: absolute;
  top: -5px;
  right: 0;
  width: 70px;
  height: 70px;
  object-fit: contain;
  z-index: 3;
  pointer-events: none;
}
#mr-detail-screen .mr-detail-bottom-image {
  width: 100%;
  margin: 18px auto 0;
  padding: 0 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#mr-detail-screen .mr-detail-bottom-image img {
  display: block;
  width: 85%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
}
/* ==========================================
   LOWER PRICES ROW
   ========================================== */

#mr-detail-screen .mr-detail-deal {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e82b65;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

/* ==========================================
   TWO CONNECTED EYES
   ========================================== */

#mr-detail-screen .mr-detail-deal-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 20px;
  flex: 0 0 28px;
  font-size: 0;
  line-height: 0;
}

/* REMOVE OLD PSEUDO EYES */

#mr-detail-screen .mr-detail-deal-icon::before,
#mr-detail-screen .mr-detail-deal-icon::after {
  content: none;
}

/* ==========================================
   EYE OUTLINES - FIXED
   ========================================== */

#mr-detail-screen .mr-eye {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 18px;
  flex: 0 0 15px;
  border: 2px solid #e82b65;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
}

/* EYES TOUCHING */

#mr-detail-screen .mr-eye + .mr-eye {
  margin-left: -2px;
}

/* ==========================================
   PINK HEART PUPILS
   ========================================== */

#mr-detail-screen .mr-eye svg {
  display: block;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  fill: #e82b65;
  stroke: none;

  /* NO ROTATION */
  transform: translateX(0);

  animation: mrEyesLook 3s ease-in-out infinite;
}

/* ==========================================
   EYES LOOK LEFT AND RIGHT
   ========================================== */

@keyframes mrEyesLook {

  /* CENTER */
  0%, 15% {
    transform: translateX(0);
  }

  /* LOOK LEFT */
  25%, 40% {
    transform: translateX(-2px);
  }

  /* BACK TO CENTER */
  50%, 60% {
    transform: translateX(0);
  }

  /* LOOK RIGHT */
  70%, 85% {
    transform: translateX(2px);
  }

  /* BACK TO CENTER */
  95%, 100% {
    transform: translateX(0);
  }
}

/* ==========================================
   SUBTITLE - REDUCED GAP
   ========================================== */

#mr-detail-screen .mr-detail-deal-sub {
  margin: 2px 0 7px 34px;
  color: #93939b;
  font-size: 11px;
  line-height: 1.3;
}

/* ==========================================
   SEARCH BAR
   ========================================== */

#mr-detail-screen .mr-detail-search {
  margin-top: 0;
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {
  #mr-detail-screen .mr-eye svg {
    animation: none;
    transform: translateX(0);
  }
}
/* FILTER ROW */
#mr-detail-screen .mr-detail-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 13px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
}

#mr-detail-screen .mr-detail-filters::-webkit-scrollbar {
  display: none;
}

/* BUTTONS */
#mr-detail-screen .mr-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  height: 36px;
  padding: 0 11px;
  border: 1px solid #e7e7ec;
  border-radius: 10px;
  background: #fff;
  color: #33333b;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

/* SWITCH */
#mr-detail-screen .mr-filter-switch {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 16px;
  border-radius: 20px;
  background: #d5d5dc;
  transition: background .25s ease;
}

#mr-detail-screen .mr-filter-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: transform .25s ease;
}

/* VEG ON */
#mr-detail-screen .mr-veg-filter[aria-pressed="true"] {
  border-color: #159447;
  background: #f0faf3;
  color: #159447;
}

#mr-detail-screen .mr-veg-filter[aria-pressed="true"] .mr-filter-switch {
  background: #159447;
}

/* NON-VEG ON */
#mr-detail-screen .mr-nonveg-filter[aria-pressed="true"] {
  border-color: #e04444;
  background: #fff3f3;
  color: #e04444;
}

#mr-detail-screen .mr-nonveg-filter[aria-pressed="true"] .mr-filter-switch {
  background: #e04444;
}

/* SWITCH ON MOVEMENT */
#mr-detail-screen .mr-filter-btn[aria-pressed="true"] .mr-filter-switch::after {
  transform: translateX(12px);
}

/* PRICE ACTIVE */
#mr-detail-screen .mr-price-filter[aria-pressed="true"] {
  border-color: #e82b65;
  background: #fff0f5;
  color: #e82b65;
}/* VEG & NON-VEG DOT ICONS */
#mr-detail-screen .mr-veg-icon,
#mr-detail-screen .mr-nonveg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  border: 1.5px solid #168344;
  border-radius: 2px;
}

/* GREEN DOT */
#mr-detail-screen .mr-veg-icon::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #168344;
}

/* RED ICON BORDER */
#mr-detail-screen .mr-nonveg-icon {
  border-color: #c0392b;
}

/* RED DOT */
#mr-detail-screen .mr-nonveg-icon::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c0392b;
}

/* BUTTON SPACING */
#mr-detail-screen .mr-filter-btn {
  gap: 6px;
}



/* RESTAURANT DETAILS - TWO PRODUCT CARDS PER ROW */

#mr-detail-screen .mr-detail-products-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px 12px;
  width: 100%;
  padding: 12px 0 25px;
  box-sizing: border-box;
}

#mr-detail-screen .mr-detail-products-grid .foodnati-item-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: none !important;
}

#mr-detail-screen .mr-detail-products-grid .foodnati-image-wrap {
  width: 100% !important;
  height: 145px;
  flex: none !important;
  position: relative;
}

#mr-detail-screen .mr-detail-products-grid .foodnati-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

#mr-detail-screen .mr-detail-products-grid .foodnati-item-content {
  width: 100%;
  padding-top: 9px;
}

#mr-detail-screen .mr-detail-products-grid .foodnati-price-comparison {
  width: 100%;
  margin-top: 5px;
}

#mr-detail-screen .mr-detail-shimmer-grid {
  display: contents;
}

#mr-detail-screen .mr-detail-product-shimmer {
  width: 100%;
  min-width: 0;
}

#mr-detail-screen .mr-dp-shimmer-image {
  width: 100%;
  height: 145px;
  border-radius: 10px;
}

@media (max-width: 380px) {
  #mr-detail-screen .mr-detail-products-grid {
    gap: 18px 9px;
  }

  #mr-detail-screen .mr-detail-products-grid .foodnati-image-wrap,
  #mr-detail-screen .mr-dp-shimmer-image {
    height: 125px;
  }
}
#mr-detail-screen .mr-detail-products-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  margin-bottom: 12px !important;
}
/* RESTAURANT DETAILS */
#mr-detail-screen {
  z-index: 10000 !important;
}

/* DARK BACKDROP - BELOW SHEET */
body:has(#mr-detail-screen.mr-visible) .foodnati-sheet-overlay {
  z-index: 10001 !important;
}

/* PRODUCT SHEET - ABOVE EVERYTHING */
body:has(#mr-detail-screen.mr-visible) .foodnati-bottom-sheet {
  z-index: 10002 !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Cart bar normal ga visible */
body:has(#mr-detail-screen.mr-visible) .foodnati-cart-bar {
  z-index: 10001 !important;
}

/* Sheet open ayinappudu cart bar venakala */
body:has(#mr-detail-screen.mr-visible) .foodnati-sheet-overlay {
  z-index: 10002 !important;
}

body:has(#mr-detail-screen.mr-visible) .foodnati-bottom-sheet {
  z-index: 10003 !important;
}

/* FOODNATI cart: visible over loaded restaurant, hidden for loader/sheet */
body:has(#mr-detail-screen.mr-visible) #foodnatiFloatingCart.active {
  z-index: 2147483007 !important;
}
body:has(#mr-detail-screen.mr-visible.mr-loading) #foodnatiFloatingCart,
body:has(.foodnati-bottom-sheet.active) #foodnatiFloatingCart {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body:has(#mr-detail-screen.mr-visible:not(.mr-loading)):not(:has(.foodnati-bottom-sheet.active)) #foodnatiFloatingCart.active {
  visibility: visible !important;
  pointer-events: auto !important;
}
