@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* =========================================
   MITHAI COMPLETE LOGIN CSS
   Mobile + Name + OTP + Success
========================================= */

#mithaiLoginOverlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  background: #fff;
  color: #222;
  font-family: 'Inter', Arial, sans-serif;
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* STEP 2 ONLY — EXTRA SPACE BELOW CONTINUE BUTTON */
#mithaiLoginOverlay .login-bottom-box:has(
  #mithaiNameForm[style*="display: block"]
) {
  padding-top: 28px !important;
  padding-bottom: calc(65px + env(safe-area-inset-bottom)) !important;
}


#mithaiLoginOverlay.is-open {
  display: block;
}
body #mithaiLoginOverlay.is-open {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: block !important;
}

body:has(#mithaiLoginOverlay.is-open)
#foodnatiCheckoutScreen.is-open {
  z-index: 2147483000 !important;
}
#mithaiLoginOverlay,
#mithaiLoginOverlay * {
  box-sizing: border-box;
}

/* =========================================
   BACK BUTTON — SAME POSITION
========================================= */

#mithaiLoginOverlay .login-back-btn {
  position: absolute;
  top: calc(38px + env(safe-area-inset-top));
  left: 20px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
}

#mithaiLoginOverlay .login-back-btn svg {
  width: 22px;
  height: 22px;
  stroke: #222;
  stroke-width: 2.5;
  fill: none;
}

/* =========================================
   MITHAI TOP CENTER BRAND
========================================= */

#mithaiLoginOverlay .login-brand-heading {
  position: absolute;
  top: calc(70px + env(safe-area-inset-top));
  left: 74px;
  right: 74px;
  text-align: center;
  z-index: 20;
  pointer-events: none;
}

#mithaiLoginOverlay .login-brand-title {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700;
  font-size: 39px;
  letter-spacing: -1.2px;
  line-height: 1.05;
  color: #ff59ae;
}

#mithaiLoginOverlay .login-brand-tagline {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #008535;
  margin-top: 4px;
  letter-spacing: 0.1px;
}

/* =========================================
   CENTER IMAGE — SAME POSITION
========================================= */

#mithaiLoginOverlay .login-image-area {
  position: absolute;
  top: 210px;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

#mithaiLoginOverlay .login-center-image {
  display: block;
  width: 240px;
  max-width: 80vw;
  height: auto;
  max-height: none;
  object-fit: contain;
  flex-shrink: 0;
  transform: translateY(265px);
}

/* =========================================
   BOTTOM LOGIN BOX
========================================= */

#mithaiLoginOverlay .login-bottom-box {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -6px 35px rgba(0, 0, 0, 0.08);
  padding: 28px 24px calc(30px + env(safe-area-inset-bottom));
  z-index: 10;
}

/* =========================================
   LOGIN STEPS
========================================= */

#mithaiLoginOverlay .mithai-login-step {
  width: 100%;
  margin: 0;
}

#mithaiLoginOverlay .login-subtitle {
  font-size: 17px;
  font-weight: 600;
  color: #222;
  margin: 0 0 20px;
}

#mithaiLoginOverlay .mithai-step-description {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #777;
  line-height: 1.6;
  margin: -8px 0 20px;
}

/* =========================================
   INPUT BOX
========================================= */

#mithaiLoginOverlay .mobile-input-box {
  display: flex;
  align-items: center;
  height: 54px;
  width: 100%;
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;
  padding: 0 15px;
}

#mithaiLoginOverlay .mobile-input-box:focus-within {
  border-color: #ff59ae;
}

#mithaiLoginOverlay .country-code {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  padding-right: 12px;
  border-right: 1px solid #ddd;
}

#mithaiLoginOverlay .mobile-input {
  flex: 1;
  min-width: 0;
  padding-left: 12px;
  border: 0;
  outline: 0;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  background: transparent;
  color: #222;
}

#mithaiLoginOverlay .mobile-input:focus {
  outline: none;
  box-shadow: none;
}

#mithaiLoginOverlay .mobile-input::placeholder {
  color: #aaa;
}

/* =========================================
   NEW USER NAME INPUT
========================================= */

#mithaiLoginOverlay #mithaiUserName {
  padding-left: 0;
  font-size: 16px;
  font-weight: 500;
}

/* =========================================
   OTP INPUT
========================================= */

#mithaiLoginOverlay #mithaiOtpInput {
  padding-left: 0;
  width: 100%;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 7px;
  text-align: center;
}

#mithaiLoginOverlay #mithaiOtpInput::placeholder {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}

/* =========================================
   DEMO OTP
========================================= */

#mithaiLoginOverlay .mithai-demo-otp {
  margin: 16px 0 8px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #888;
  text-align: center;
}

#mithaiLoginOverlay .mithai-demo-otp strong {
  color: #ff59ae;
  font-weight: 700;
}

/* =========================================
   ERROR MESSAGES
========================================= */

#mithaiLoginOverlay .login-error {
  font-size: 13px;
  color: #d32f2f;
  margin-top: 8px;
}

#mithaiLoginOverlay .login-error:empty {
  display: none;
}

/* =========================================
   TERMS & PRIVACY
========================================= */

#mithaiLoginOverlay .login-terms {
  margin: 18px 0 0;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #888;
  line-height: 1.6;
  text-align: center;
}

#mithaiLoginOverlay .login-terms a {
  color: #ff59ae;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =========================================
   NEXT / CONTINUE / VERIFY BUTTON
========================================= */

#mithaiLoginOverlay .login-next-btn {
  width: 100%;
  height: 54px;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  background: #ff59ae;
  color: #fff;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease;
}

#mithaiLoginOverlay .login-next-btn:active {
  transform: scale(0.98);
}

/* =========================================
   LOGIN SUCCESS SCREEN
========================================= */

#mithaiLoginOverlay #mithaiLoginSuccess {
  text-align: center;
}

#mithaiLoginOverlay #mithaiLoginSuccess .login-subtitle {
  font-size: 22px;
  font-weight: 700;
  color: #008535;
  margin-bottom: 12px;
}

#mithaiLoginOverlay #mithaiLoginSuccess .mithai-step-description {
  font-size: 16px;
  margin: 0 0 20px;
}

#mithaiLoginOverlay #mithaiWelcomeName {
  color: #ff59ae;
  font-weight: 700;
}

/* =========================================
   BODY SCROLL LOCK
========================================= */

body.mithai-login-open {
  overflow: hidden;
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {
  #mithaiLoginOverlay .mithai-step-description {
    font-size: 13px;
  }

  #mithaiLoginOverlay #mithaiOtpInput {
    font-size: 21px;
    letter-spacing: 5px;
  }
}

/* =========================================
   SHORT SCREENS — EXISTING SETTINGS
========================================= */

@media (max-height: 600px) {
  #mithaiLoginOverlay .login-image-area {
    top: 50px;
  }

  #mithaiLoginOverlay .login-center-image {
    width: 170px;
  }

  #mithaiLoginOverlay .login-bottom-box {
    padding-top: 20px;
  }
}

@media (max-height: 720px) {
  #mithaiLoginOverlay .login-image-area {
    top: 50px;
  }

  #mithaiLoginOverlay .login-center-image {
    width: 170px;
  }
}










/* MITHAI PROFILE - FULL SCREEN PAGE */
#mithaiProfilePage {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  background: #f5f6f8;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 2147482000;
  padding-bottom: env(safe-area-inset-bottom);
  box-sizing: border-box;
}

/* SHOW PROFILE ONLY WHEN OPEN */
#mithaiProfilePage.is-open {
  display: block;
}

/* KEEP PROFILE HEADER INSIDE PAGE */
#mithaiProfilePage .mithai-profile-header {
  position: sticky;
  top: 0;
  z-index: 10;
}

/* NO EXTRA GAP BELOW HEADER */
#mithaiProfilePage .mithai-profile-details {
  margin-top: 0;
}

/* PREVENT PAGE SCROLL BEHIND PROFILE */
body.mithai-profile-open {
  overflow: hidden;
}

/* LOGIN IMAGE - EXTEND TO BOTTOM */


/* TERMS & PRIVACY - SINGLE LINE, NO UNDERLINE */

#mithaiLoginOverlay .login-terms {
  width: 100% !important;
  margin: 18px 0 0 !important;
  padding: 0 !important;

  font-family: 'Inter', Arial, sans-serif !important;
  font-size: clamp(8px, 2.5vw, 12px) !important;
  font-weight: 400 !important;

  color: #888 !important;
  text-align: center !important;
  white-space: nowrap !important;
  line-height: 1.5 !important;
  letter-spacing: -0.2px !important;
}

/* LINKS WITHOUT UNDERLINE */
#mithaiLoginOverlay .login-terms a,
#mithaiLoginOverlay .login-terms a:hover,
#mithaiLoginOverlay .login-terms a:focus {
  color: #ff59ae !important;
  font-size: inherit !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

/* SMALL MOBILE */
@media (max-width: 360px) {
  #mithaiLoginOverlay .login-terms {
    font-size: clamp(7px, 2.3vw, 9px) !important;
    letter-spacing: -0.35px !important;
  }
}

/* =========================================
   LOGIN IMAGE BEHIND CURVED WHITE SHEET
========================================= */

/* HIDE OLD TOP TEXT */
#mithaiLoginOverlay .login-brand-heading {
  display: none !important;
}

/* IMAGE FULL BACKGROUND */
#mithaiLoginOverlay .login-image-area {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;

  width: 100% !important;
  height: 100% !important;

  display: block !important;
  overflow: hidden !important;
  z-index: 1 !important;
}

#mithaiLoginOverlay .login-center-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;

  object-fit: contain !important;
  object-position: center top !important;

  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* WHITE BOX OVER IMAGE */
#mithaiLoginOverlay .login-bottom-box {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;

  background: #fff !important;
  border-radius: 28px 28px 0 0 !important;
  z-index: 20 !important;
}

/* BACK BUTTON */
#mithaiLoginOverlay .login-back-btn {
  z-index: 30 !important;
}


/* PUSH LOGIN IMAGE LITTLE UP */

#mithaiLoginOverlay .login-center-image {
  transform: translateY(-50px) !important;
}

Z
/* ========================================
   METHAI PROFILE - COMPLETE PINK DESIGN
======================================== */

#mithaiProfilePage {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  z-index: 2147482000;
  background: #fafafa;
  color: #454545;
  font-family: 'DM Sans', sans-serif;
}

#mithaiProfilePage.is-open {
  display: block;
}

#mithaiProfilePage,
#mithaiProfilePage *,
#mithaiProfilePage *::before,
#mithaiProfilePage *::after {
  box-sizing: border-box;
}

body.mithai-profile-open {
  overflow: hidden;
}

/* ========================================
   FIXED TOP HEADER - SOLID PINK
======================================== */

#mithaiProfilePage .mithai-profile-hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 245px;

  padding: calc(55px + env(safe-area-inset-top)) 20px 0;

  background: #E82B65;
  background-image: none;

  overflow: hidden;
  z-index: 1;
}

/* ========================================
   BACK & EDIT BUTTONS
======================================== */

#mithaiProfilePage .mithai-profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 3;
}

#mithaiProfilePage .mithai-profile-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;

  background: rgba(255,255,255,.18);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  box-shadow: none;
}

#mithaiProfilePage .mithai-profile-edit {
  padding: 9px 21px;
  border: none;
  border-radius: 25px;
  background: #fff;
  color: #E82B65;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
}

/* ========================================
   NAME, PHONE & IMAGE
======================================== */

#mithaiProfilePage .mithai-profile-user {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

#mithaiProfilePage .mithai-profile-user-info {
  flex: 1;
  min-width: 0;
}

/* NAME */

#mithaiProfilePage .mithai-profile-name {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.3;
  color: #fff;
  overflow-wrap: anywhere;
}

/* GRADIENT LINE */

#mithaiProfilePage .mithai-profile-name-line {
  width: 90%;
  max-width: 195px;
  height: 2px;
  margin-bottom: 12px;
  border-radius: 10px;

  background: linear-gradient(
    90deg,
    rgba(255,255,255,.9),
    rgba(255,255,255,.35),
    transparent
  );
}

/* PHONE */

#mithaiProfilePage .mithai-profile-phone {
  border: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,.88);
}

/* ========================================
   IMAGE - ORIGINAL SHAPE, NO CIRCLE
======================================== */

#mithaiProfilePage .mithai-profile-avatar {
  flex: 0 0 95px;
  width: 95px;
  height: 100px;

  margin: 0;
  padding: 0;

  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;

  display: flex;
  align-items: center;
  justify-content: center;
}

#mithaiProfilePage .mithai-profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* ========================================
   BOTTOM CONTENT - SCROLLABLE
======================================== */

#mithaiProfilePage .mithai-profile-content {
  position: absolute;
  top: 215px;
  bottom: 0;
  left: 0;
  right: 0;

  margin: 0;
  padding: 22px 17px calc(35px + env(safe-area-inset-bottom));

  background: #fafafa;
  border-radius: 28px 28px 0 0;

  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  z-index: 2;
}

/* ========================================
   WHITE CARDS - NO SHADOW
======================================== */

#mithaiProfilePage .mithai-profile-card {
  width: 100%;
  padding: 7px 18px;
  margin-bottom: 19px;

  background: #fff;
  border: 1px solid #f1f1f1;
  border-radius: 20px;
  box-shadow: none;
}

/* ========================================
   CARD ROWS
======================================== */

#mithaiProfilePage .mithai-profile-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  width: 100%;
  padding: 17px 0;

  border: 0;
  background: transparent;
  text-align: left;
  color: #454545;
  font-family: inherit;
  cursor: pointer;
}

#mithaiProfilePage .mithai-profile-row + .mithai-profile-row {
  border-top: 1px solid #f0f0f0;
}

/* SOFT BLACK ICONS */

#mithaiProfilePage .mithai-profile-row-icon {
  width: 23px;
  flex: 0 0 23px;
  margin-top: 3px;
  text-align: center;
  font-size: 16px;
  color: #777777;
}

/* ========================================
   ROW TEXT
======================================== */

#mithaiProfilePage .mithai-profile-row-text {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

#mithaiProfilePage .mithai-profile-row-text strong {
  font-size: 15px;
  font-weight: 600;
  color: #454545;
  line-height: 1.35;
}

#mithaiProfilePage .mithai-profile-row-text small {
  font-size: 12px;
  color: #999;
  line-height: 1.45;
  font-weight: 400;
}

/* SOFT RIGHT ARROWS */

#mithaiProfilePage .mithai-profile-chevron {
  align-self: center;
  margin-left: auto;
  font-size: 12px;
  color: #999;
}

/* ========================================
   FEEDBACK CARD
======================================== */

#mithaiProfilePage .mithai-profile-feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  min-height: 95px;
  margin-top: 25px;
  padding: 18px;

  background: #fff;
  border: 1px solid #f1f1f1;
  border-radius: 20px;
  box-shadow: none;
}

#mithaiProfilePage .mithai-feedback-text {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

#mithaiProfilePage .mithai-feedback-text strong {
  font-size: 15px;
  font-weight: 600;
  color: #454545;
}

#mithaiProfilePage .mithai-feedback-text small {
  font-size: 12px;
  color: #E82B65;
}

#mithaiProfilePage .mithai-feedback-icon {
  flex-shrink: 0;
  font-size: 27px;
  color: #E82B65;
}

/* ========================================
   LOGOUT
======================================== */

#mithaiProfilePage .mithai-logout-btn {
  display: block;
  margin: 55px auto 40px;
  padding: 10px 20px;

  border: 0;
  background: transparent;
  color: #d95160;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* ========================================
   FOOTER
======================================== */

#mithaiProfilePage .mithai-profile-footer {
  text-align: center;
  font-size: 11px;
  color: #999;
  line-height: 1.8;
}

/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 380px) {
  #mithaiProfilePage .mithai-profile-hero {
    height: 235px;
    padding-left: 18px;
    padding-right: 18px;
  }

  #mithaiProfilePage .mithai-profile-user {
    margin-top: 23px;
  }

  #mithaiProfilePage .mithai-profile-name {
    font-size: 20px;
  }

  #mithaiProfilePage .mithai-profile-avatar {
    flex-basis: 85px;
    width: 85px;
    height: 90px;
  }

  #mithaiProfilePage .mithai-profile-content {
    top: 205px;
    padding: 19px 15px calc(30px + env(safe-area-inset-bottom));
  }

  #mithaiProfilePage .mithai-profile-row {
    padding: 15px 0;
  }

  #mithaiProfilePage .mithai-profile-row-text strong {
    font-size: 14px;
  }
}


/* FEEDBACK BOX - SAME 78PX HEIGHT */
#mithaiProfilePage .mithai-profile-feedback {
  position: relative;
  height: 78px;
  min-height: 78px;
  padding: 10px 16px;
  overflow: visible;
}

/* IMAGE - INCREASED BY 2PX */
#mithaiProfilePage .mithai-feedback-image {
  display: block;
  flex: 0 0 122px;

  width: 122px;
  height: 122px;

  object-fit: contain;
  object-position: center;

  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;

  transform: translateY(0);
}

/* SMALL MOBILE */
@media (max-width: 380px) {
  #mithaiProfilePage .mithai-profile-feedback {
    height: 78px;
    min-height: 78px;
  }

  #mithaiProfilePage .mithai-feedback-image {
    flex-basis: 107px;
    width: 107px;
    height: 107px;
  }
}
/* HIDE FLOATING CART WHEN PROFILE IS OPEN */
body:has(#mithaiProfilePage.is-open) .deliveryCartRow,
body:has(#mithaiProfilePage.is-open) .foodnati-floating-cart {
  display: none !important;
}

/* Consistent professional typography for login and profile only */
#mithaiLoginOverlay, #mithaiLoginOverlay button, #mithaiLoginOverlay input, #mithaiLoginOverlay select, #mithaiLoginOverlay textarea, #mithaiProfilePage, #mithaiProfilePage button, #mithaiProfilePage input { font-family: "Inter", Arial, sans-serif !important; }

/* Android main profile top gap only. */
html.fn-android-profile #mithaiProfilePage .mithai-profile-hero {
  padding-top: 41px !important;
}
