/* DivyaKart v28: compact home, refined help, live location and cart alignment. */

@media (max-width: 800px) {
  /* Current delivery place sits directly beneath the DivyaKart header. */
  .delivery-bar {
    position: relative !important;
    z-index: 104 !important;
    min-height: 43px !important;
    margin: 5px 12px 7px !important;
    padding: 7px 10px !important;
    border: 1px solid #dfe6e1 !important;
    border-radius: 11px !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(31, 65, 45, .06) !important;
  }

  .delivery-bar button {
    flex: 1 1 auto !important;
    gap: 6px !important;
    font-size: 10px !important;
  }

  .delivery-bar button > span:first-child {
    color: #315e42 !important;
    font-size: 17px !important;
  }

  .delivery-bar button b {
    max-width: min(54vw, 280px) !important;
    color: #315e42 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
  }

  .delivery-bar small {
    color: #7c857e !important;
    font-size: 8px !important;
  }

  .app-search {
    position: sticky !important;
    top: 64px !important;
    height: 46px !important;
    margin: 0 12px 8px !important;
    border-radius: 11px !important;
  }

  .app-search input {
    font-size: 15px !important;
  }

  /* Familiar, restrained microphone symbol. */
  .app-search button {
    width: 37px !important;
    height: 37px !important;
    flex-basis: 37px !important;
    border: 1px solid #d9e2dc !important;
    border-radius: 9px !important;
    background: #f5f8f5 !important;
    color: #315e42 !important;
  }

  .mic-glyph {
    width: 10px !important;
    height: 16px !important;
    border-width: 2px !important;
    border-radius: 7px !important;
  }

  .mic-glyph::before {
    right: -5px !important;
    bottom: -5px !important;
    left: -5px !important;
    height: 10px !important;
  }

  .app-search button.listening {
    background: #e9f1eb !important;
    color: #8e2b0c !important;
  }

  /* Smaller, denser first banner without a large image block. */
  body > main#appMain > #home.hero {
    min-height: 0 !important;
    margin: 0 12px 7px !important;
    padding: 15px 14px 10px !important;
    border-radius: 11px !important;
  }

  #home .hero-copy h1 {
    font-size: 23px !important;
    line-height: 1.12 !important;
  }

  #home .hero-text {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin: 7px 0 0 !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  #home .hero-art {
    width: 100% !important;
    height: 96px !important;
    min-height: 96px !important;
    margin: 8px 0 0 !important;
    border-radius: 8px !important;
    background-position: 66% 69% !important;
  }

  .category-section {
    padding-top: 18px !important;
  }

  .category-card span:not(.category-image) {
    color: #26342b !important;
    font-weight: 800 !important;
  }

  /* Quantity control stays at the far right of every selected item. */
  .cart-item {
    grid-template-columns: 50px minmax(0, 1fr) auto !important;
    gap: 10px !important;
  }

  .cart-item .cart-quantity {
    grid-column: 3 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: end !important;
    margin: 0 !important;
  }

  .cart-item > div:nth-child(2) {
    min-width: 0 !important;
  }

  .cart-item > div:nth-child(2) strong {
    overflow-wrap: anywhere;
  }

  /* Compact premium Help & Support card; no large empty region. */
  .mobile-help-menu {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 15px 14px 16px !important;
    border-top: 1px solid #e5e8e5 !important;
    background: #f6f7f6 !important;
  }

  .mobile-help-menu strong {
    margin: 0 0 10px !important;
    color: #26372d !important;
    font-size: 15px !important;
    font-weight: 800 !important;
  }

  .mobile-help-menu div {
    display: grid !important;
    overflow: visible !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .mobile-help-menu button {
    position: relative !important;
    display: flex !important;
    min-width: 0 !important;
    min-height: 42px !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 9px 10px !important;
    border: 1px solid #e0e6e1 !important;
    border-radius: 9px !important;
    background: #fff !important;
    box-shadow: 0 2px 7px rgba(34, 61, 43, .05) !important;
    color: #315e42 !important;
    font-size: 10px !important;
    font-weight: 750 !important;
    text-align: left !important;
  }

  .mobile-help-menu button::after {
    margin-left: 6px;
    color: #c07a20;
    content: "›";
    font-size: 17px;
    line-height: 1;
  }

  footer {
    margin-top: 0 !important;
    padding-top: 21px !important;
  }
}
