/* Halal Herbs — mobile, tablet & iOS safe-area layout */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.halaleat-app,
body.ue-customer,
body.ue-rider,
body.ue-partners,
body.prem-page {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
}

body.halaleat-app {
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

.topbar--eats,
body.ue-customer .dock,
body.ue-customer .floating-whatsapp {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

body.ue-customer .topbar--eats {
  padding-top: env(safe-area-inset-top, 0);
}

body.ue-customer .dock {
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0));
}

img,
video,
svg,
iframe {
  max-width: 100%;
  height: auto;
}

.ue-maps-frame {
  width: 100%;
  border: 0;
  border-radius: 16px;
  min-height: 220px;
  aspect-ratio: 16 / 10;
  background: #e8eef4;
}

.ue-maps-section {
  padding: 28px 0 36px;
}

.ue-maps-card {
  display: grid;
  gap: 18px;
}

@media (min-width: 768px) {
  .ue-maps-card {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }

  .ue-maps-frame {
    min-height: 280px;
  }
}

.ue-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.ue-social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none !important;
  border: 1px solid rgba(30, 58, 95, 0.18);
  background: #fff;
  color: #0f172a !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ue-social-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 51, 153, 0.12);
}

.ue-social-pill--ig {
  border-color: rgba(225, 48, 108, 0.35);
}

.ue-social-pill--tt {
  border-color: rgba(15, 23, 42, 0.25);
}

body.ue-rider .rider-shell-footer .ue-social-pill,
body.ue-partners .merchant-shell-footer .ue-social-pill {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
}

.ue-maps-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.ue-maps-actions .prem-btn,
.ue-maps-actions .btn {
  min-height: 44px;
}

/* Mobile header — 2-row grid so burger, logo, and actions never overlap */
@media (max-width: 680px) {
  body.ue-customer .topbar-inner--customer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 8px 10px;
    align-items: center;
    overflow: visible;
    flex-wrap: unset;
  }

  body.ue-customer .ue-topbar-cluster {
    display: contents;
  }

  body.ue-customer .ue-topbar-brand-row {
    grid-column: 1 / 3;
    grid-row: 1;
    min-width: 0;
    max-width: 100%;
  }

  body.ue-customer .nav-links--cluster {
    display: none !important;
  }

  body.ue-customer .topbar-mid {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin-left: 0;
    justify-content: stretch;
    gap: 8px;
  }

  body.ue-customer .topbar-actions {
    grid-column: 3;
    grid-row: 1;
    margin-left: 0;
    flex-wrap: nowrap;
    gap: 6px;
    align-self: center;
  }

  body.ue-customer .topbar-actions .btn-nav-solid {
    display: none;
  }

  body.ue-customer .topbar-actions .btn-nav-ghost {
    font-size: 0.78rem;
    padding: 7px 10px;
    white-space: nowrap;
  }

  body.ue-customer .brand-wordmark--home {
    min-width: 0;
    flex: 1;
  }

  body.ue-customer .brand-text-stack {
    min-width: 0;
  }

  body.ue-customer .brand-name {
    font-size: 1.05rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.ue-customer .brand-tag {
    display: none;
  }

  body.ue-customer .brand-logo-mark {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  body.ue-customer .location-pill {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  body.ue-customer .location-pill__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.ue-customer .topbar-lang-select {
    flex: 0 0 auto;
    max-width: 7.5rem;
    padding: 7px 10px !important;
    font-size: 0.75rem !important;
  }

  body.ue-customer .ue-menu-burger {
    flex-shrink: 0;
  }

  body.ue-customer .toast {
    top: calc(56px + env(safe-area-inset-top, 0));
    bottom: auto;
    left: 12px;
    right: 12px;
    transform: translateY(-120%);
    max-width: none;
    width: auto;
    font-size: 0.82rem;
    line-height: 1.35;
    padding: 10px 14px;
    text-align: left;
  }

  body.ue-customer .toast.is-visible {
    transform: translateY(0);
  }

  body.ue-customer .ue-hero-title {
    font-size: clamp(1.65rem, 7vw, 2.35rem) !important;
    line-height: 1.12;
  }

  body.ue-customer .hero-content--eats {
    padding-bottom: 12px;
  }

  body.ue-customer .ue-search-card {
    padding: 12px !important;
  }

  body.ue-customer .ue-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  body.ue-customer .ue-btn-find {
    width: 100%;
  }

  body.ue-customer .menu-grid {
    grid-template-columns: 1fr !important;
  }

  body.ue-customer .ue-footer-premium .ue-footer-inner {
    gap: 22px;
  }

  body.ue-customer .halal-policy-grid {
    grid-template-columns: 1fr;
  }

  .floating-whatsapp {
    bottom: calc(72px + env(safe-area-inset-bottom, 0)) !important;
    right: max(12px, env(safe-area-inset-right, 12px)) !important;
  }
}

@media (max-width: 380px) {
  body.ue-customer .brand-name {
    font-size: 0.98rem !important;
  }

  body.ue-customer .topbar-actions .btn-nav-ghost {
    padding: 6px 8px;
    font-size: 0.72rem;
  }
}

@supports (-webkit-touch-callout: none) {
  body.ue-customer .topbar--eats {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  body.ue-customer input,
  body.ue-customer select,
  body.ue-customer textarea {
    font-size: 16px;
  }
}

/* Halal food vertical — warmer icon tile (not a plain checkmark) */
.vertical-card__icon--halal-food {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 55%, #a5d6a7 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 1px 3px rgba(27, 94, 32, 0.12);
  font-size: 1.35rem;
  line-height: 1;
}

.menu-browse-note {
  margin: 14px 0 0;
  font-size: 0.92rem;
  color: #5c6570;
  line-height: 1.45;
  max-width: 36rem;
}

.menu-show-more {
  display: block;
  margin: 12px auto 0;
  width: fit-content;
}

body.ue-customer .partner-strip-inner {
  border-radius: 14px;
}

body.ue-customer .menu-item {
  border-radius: 12px;
}
