/* iDrugstore desktop precision fixes v23.5 — desktop only. */
@media (min-width: 1025px) {
  .login_wrap .uk-form-icon {
    position: relative !important;
  }

  .login_wrap input[type="password"],
  .login_wrap input[type="text"] {
    padding-right: 54px !important;
  }

  .login_wrap button.id-password-toggle[data-password-toggle] {
    position: absolute !important;
    top: 5px !important;
    right: 6px !important;
    left: auto !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    line-height: 1 !important;
    box-shadow: none !important;
  }

  body.id-pwa-page-merchantsignup .order-progress-bar > .container > .row {
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
  }

  body.id-pwa-page-merchantsignup .order-progress-bar > .container > .row > [class*="col-"] {
    display: flex !important;
    align-items: stretch !important;
    float: none !important;
  }

  body.id-pwa-page-merchantsignup .order-progress-bar > .container > .row > [class*="col-"] > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }

  .top-menu-wrapper #menu > li:last-child > a,
  .top-menu-wrapper #menu > li:last-child > a:visited,
  .top-menu-wrapper #menu > li:last-child > a:hover,
  .top-menu-wrapper #menu > li:last-child > a:focus {
    background: #ea1d2c !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
}

/* v22.8 — desktop top navigation rebrand */
@media (min-width: 1025px) {
  .top-menu-wrapper {
    min-height: 84px !important;
    border-bottom: 1px solid #dfe3e8 !important;
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07) !important;
    backdrop-filter: none !important;
  }

  .top-menu-wrapper > .container {
    display: flex !important;
    align-items: center !important;
    width: min(100% - 48px, 1280px) !important;
    max-width: 1280px !important;
    min-height: 84px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 24px !important;
  }

  .top-menu-wrapper .col-a {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 24px 0 0 !important;
    border-right: 1px solid #e5e9ee !important;
  }

  .top-menu-wrapper .col-a > a {
    display: flex !important;
    align-items: center !important;
  }

  .top-menu-wrapper .logo.logo-desktop {
    display: block !important;
    width: 168px !important;
    max-width: 168px !important;
    max-height: 44px !important;
    object-fit: contain !important;
  }

  .top-menu-wrapper .col-b {
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .top-menu-wrapper #menu {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 2px !important;
    margin: 0 !important;
    padding: 5px !important;
    border: 1px solid #e1e6eb !important;
    border-radius: 14px !important;
    background: #f4f6f8 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    list-style: none !important;
  }

  .top-menu-wrapper #menu > li {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .top-menu-wrapper #menu > li > a,
  .top-menu-wrapper #menu > li > a:visited {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 46px !important;
    padding: 0 15px !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: #343b45 !important;
    -webkit-text-fill-color: #343b45 !important;
    font-size: 12.5px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease !important;
  }

  .top-menu-wrapper #menu > li > a:hover,
  .top-menu-wrapper #menu > li > a:focus-visible {
    border-color: #d7dde4 !important;
    background: #ffffff !important;
    color: #111820 !important;
    -webkit-text-fill-color: #111820 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
    transform: none !important;
  }

  .top-menu-wrapper #menu > li.active:not(:last-child) > a,
  .top-menu-wrapper #menu > li:not(:last-child) > a[aria-current='page'] {
    border-color: #cfd6de !important;
    background: #ffffff !important;
    color: #111820 !important;
    -webkit-text-fill-color: #111820 !important;
    box-shadow: inset 0 -3px 0 #ea1d2c !important;
  }

  .top-menu-wrapper #menu > li > a::after {
    content: none !important;
    display: none !important;
  }

  .top-menu-wrapper #menu > li:last-child {
    margin-left: 7px !important;
  }

  .top-menu-wrapper #menu > li:last-child > a,
  .top-menu-wrapper #menu > li:last-child > a:visited,
  .top-menu-wrapper #menu > li:last-child > a:hover,
  .top-menu-wrapper #menu > li:last-child > a:focus,
  .top-menu-wrapper #menu > li:last-child > a:active {
    min-width: 154px !important;
    border-color: #ea1d2c !important;
    background: #ea1d2c !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 820 !important;
    box-shadow: 0 8px 18px rgba(234, 29, 44, 0.22) !important;
    transform: none !important;
  }

  .top-menu-wrapper #menu > li:last-child > a:focus-visible {
    outline: 3px solid rgba(17, 24, 39, 0.82) !important;
    outline-offset: 3px !important;
  }
}

@media (min-width: 1025px) and (max-width: 1240px) {
  .top-menu-wrapper > .container {
    width: calc(100% - 28px) !important;
    gap: 12px !important;
  }

  .top-menu-wrapper .col-a {
    padding-right: 12px !important;
  }

  .top-menu-wrapper .logo.logo-desktop {
    width: 138px !important;
    max-width: 138px !important;
  }

  .top-menu-wrapper #menu > li > a,
  .top-menu-wrapper #menu > li > a:visited {
    padding-right: 9px !important;
    padding-left: 9px !important;
    font-size: 11.25px !important;
  }

  .top-menu-wrapper #menu > li:last-child > a,
  .top-menu-wrapper #menu > li:last-child > a:visited {
    min-width: 132px !important;
  }
}
/* v22.9 — authenticated profile action aligned with desktop navigation */
@media (min-width: 1025px) {
  .top-menu-wrapper #menu > li.green-button {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .top-menu-wrapper #menu > li.green-button > a,
  .top-menu-wrapper #menu > li.green-button > a:visited {
    gap: 8px !important;
    min-width: 0 !important;
    border-color: transparent !important;
    background: transparent !important;
    color: #343b45 !important;
    -webkit-text-fill-color: #343b45 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .top-menu-wrapper #menu > li.green-button > a:hover,
  .top-menu-wrapper #menu > li.green-button > a:focus-visible,
  .top-menu-wrapper #menu > li.green-button.active > a {
    border-color: #d7dde4 !important;
    background: #ffffff !important;
    color: #111820 !important;
    -webkit-text-fill-color: #111820 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
  }

  .top-menu-wrapper #menu > li.green-button > a > i {
    display: inline-grid !important;
    place-items: center !important;
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
    margin: 0 !important;
    border: 1px solid #ffd6da !important;
    border-radius: 8px !important;
    background: #fff1f2 !important;
    color: #d91526 !important;
    -webkit-text-fill-color: #d91526 !important;
    font-size: 16px !important;
    line-height: 1 !important;
  }
}
/* v23.0 — profile account portal banner, desktop only */
@media (min-width: 1025px) {
  .top-profile ~ #parallax-wrap.parallax-search,
  body.id-pwa-page-profile #parallax-wrap.parallax-search {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 270px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 48px 0 !important;
    overflow: hidden !important;
    isolation: isolate !important;
    background-color: #0b1220 !important;
    background-image:
      radial-gradient(circle at 84% 14%, rgba(234, 29, 44, 0.24) 0, rgba(234, 29, 44, 0) 28%),
      linear-gradient(112deg, #0b1220 0%, #182235 62%, #3a1118 100%) !important;
    background-position: center !important;
    background-size: cover !important;
    background-attachment: scroll !important;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08) !important;
  }

  .top-profile ~ #parallax-wrap.parallax-search::before,
  body.id-pwa-page-profile #parallax-wrap.parallax-search::before {
    position: absolute !important;
    z-index: 0 !important;
    inset: 0 auto 0 0 !important;
    display: block !important;
    width: 7px !important;
    background: #ea1d2c !important;
    content: '' !important;
    pointer-events: none !important;
  }

  .top-profile ~ #parallax-wrap.parallax-search::after,
  body.id-pwa-page-profile #parallax-wrap.parallax-search::after {
    position: absolute !important;
    z-index: 0 !important;
    top: 50% !important;
    right: 6% !important;
    width: 240px !important;
    height: 240px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 46px rgba(255, 255, 255, 0.025), 0 0 0 92px rgba(234, 29, 44, 0.025) !important;
    content: '' !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
  }

  .top-profile ~ #parallax-wrap.parallax-search > .search-wraps,
  body.id-pwa-page-profile #parallax-wrap.parallax-search > .search-wraps {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: min(100% - 64px, 1180px) !important;
    min-width: 0 !important;
    max-width: 1180px !important;
    min-height: 174px !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 320px 0 30px !important;
    overflow: visible !important;
    text-align: left !important;
    transform: none !important;
  }

  .top-profile ~ #parallax-wrap.parallax-search > .search-wraps::before,
  body.id-pwa-page-profile #parallax-wrap.parallax-search > .search-wraps::before {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 28px !important;
    margin: 0 0 16px !important;
    padding: 0 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 7px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    color: #f8fafc !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0.13em !important;
    text-transform: uppercase !important;
    content: 'Sua conta' !important;
  }

  .top-profile ~ #parallax-wrap.parallax-search > .search-wraps > h1,
  body.id-pwa-page-profile #parallax-wrap.parallax-search > .search-wraps > h1 {
    width: 100% !important;
    max-width: 760px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: clamp(38px, 4vw, 52px) !important;
    font-weight: 850 !important;
    line-height: 1.04 !important;
    letter-spacing: -0.045em !important;
    text-align: left !important;
    white-space: normal !important;
  }

  .top-profile ~ #parallax-wrap.parallax-search > .search-wraps > p,
  body.id-pwa-page-profile #parallax-wrap.parallax-search > .search-wraps > p {
    width: 100% !important;
    max-width: 720px !important;
    height: auto !important;
    margin: 14px 0 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    color: #dce3ec !important;
    -webkit-text-fill-color: #dce3ec !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    line-height: 1.58 !important;
    letter-spacing: -0.01em !important;
    text-align: left !important;
    white-space: normal !important;
    text-wrap: balance !important;
  }
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .top-profile ~ #parallax-wrap.parallax-search > .search-wraps,
  body.id-pwa-page-profile #parallax-wrap.parallax-search > .search-wraps {
    width: calc(100% - 48px) !important;
    padding-right: 240px !important;
    padding-left: 24px !important;
  }
}
/* v23.1 — profile banner full-bleed without document overflow */
@media (min-width: 1025px) {
  .top-profile ~ #parallax-wrap.parallax-search,
  body.id-pwa-page-profile #parallax-wrap.parallax-search {
    max-width: none !important;
    clip-path: inset(0 -100vmax) !important;
    box-shadow:
      0 0 0 100vmax #0b1220,
      inset 0 -1px 0 rgba(255, 255, 255, 0.08) !important;
  }
}
/* v23.2 — mobile cart UI must never leak into the desktop footer */
@media (min-width: 1025px) {
  .id-menu-cart-dock,
  .id-cart-add-toast {
    display: none !important;
    visibility: hidden !important;
  }
}

/* v23.3 — desktop menu: premium catalogue layout and single add action */
@media (min-width: 1025px) {
  body.id-pwa-page-menu .section-menu {
    padding: 38px 0 64px !important;
    background: #f3f5f7 !important;
  }
  body.id-pwa-page-menu .section-menu > .container { max-width: 1240px !important; }
  body.id-pwa-page-menu .menu-left-content { padding-right: 24px !important; }
  body.id-pwa-page-menu #menu-tab-wrapper,
  body.id-pwa-page-menu #menu-tab-wrapper > #tabs { margin: 0 !important; }
  body.id-pwa-page-menu #menu-tab-wrapper > #tabs > li.active {
    overflow: hidden !important;
    border: 1px solid #e3e7eb !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 14px 40px rgba(22,31,43,.08) !important;
  }
  body.id-pwa-page-menu .menu-1.box-grey {
    margin: 0 !important;
    padding: 0 22px 24px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
  }
  body.id-pwa-page-menu .menu-cat > a {
    display: flex !important;
    min-height: 62px !important;
    margin: 0 -22px 18px !important;
    padding: 0 22px !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-top: 1px solid #edf0f2 !important;
    border-bottom: 1px solid #edf0f2 !important;
    background: linear-gradient(90deg,#fff5f6 0,#fff 62%) !important;
    color: #17202b !important;
    text-decoration: none !important;
  }
  body.id-pwa-page-menu .menu-cat > a .bold {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: -.01em !important;
  }
  body.id-pwa-page-menu .menu-cat > a .bold i {
    display: grid !important;
    width: 30px !important;
    height: 30px !important;
    place-items: center !important;
    border-radius: 9px !important;
    background: #b2101b !important;
    color: #fff !important;
    font-size: 18px !important;
  }
  body.id-pwa-page-menu .items-row > p.small {
    margin: 0 0 14px !important;
    color: #697382 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
  }
  body.id-pwa-page-menu .items-row > .row {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(145px,180px) 52px !important;
    min-height: 68px !important;
    margin: 0 0 10px !important;
    align-items: center !important;
    border: 1px solid #e7eaee !important;
    border-radius: 13px !important;
    background: #fff !important;
    box-shadow: 0 3px 12px rgba(23,32,43,.035) !important;
    transition: border-color 160ms ease,box-shadow 160ms ease,transform 160ms ease !important;
  }
  body.id-pwa-page-menu .items-row > .row:hover {
    z-index: 1 !important;
    border-color: #d9b3b7 !important;
    box-shadow: 0 10px 24px rgba(23,32,43,.09) !important;
    transform: translateY(-1px) !important;
  }
  body.id-pwa-page-menu .items-row > .row > [class*="col-"] {
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 66px !important;
    padding: 14px 18px !important;
    border: 0 !important;
  }
  body.id-pwa-page-menu .items-row > .row > div:first-child {
    display: flex !important;
    align-items: center !important;
    color: #202a36 !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    line-height: 1.4 !important;
  }
  body.id-pwa-page-menu .items-row > .row > .food-price-wrap:not(.relative) {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    border-left: 1px solid #eef0f2 !important;
    color: #8f111a !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }
  body.id-pwa-page-menu .items-row > .row > .food-price-wrap.relative {
    display: grid !important;
    min-height: 66px !important;
    padding: 0 10px 0 0 !important;
    place-items: center !important;
  }
  body.id-pwa-page-menu .menu-item.mbile { display: none !important; }
  body.id-pwa-page-menu .menu-item.dsktop {
    position: static !important;
    display: grid !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    place-items: center !important;
    border: 1px solid #a50e18 !important;
    border-radius: 12px !important;
    background: #b2101b !important;
    color: #fff !important;
    box-shadow: 0 7px 16px rgba(178,16,27,.22) !important;
    text-decoration: none !important;
    transition: background-color 150ms ease,box-shadow 150ms ease,transform 150ms ease !important;
  }
  body.id-pwa-page-menu .menu-item.dsktop i {
    color: #fff !important;
    font-size: 24px !important;
    line-height: 1 !important;
  }
  body.id-pwa-page-menu .menu-item.dsktop:hover {
    background: #8f0c15 !important;
    box-shadow: 0 9px 20px rgba(143,12,21,.28) !important;
    transform: translateY(-1px) !important;
  }
  body.id-pwa-page-menu .menu-item.dsktop:focus-visible {
    outline: 3px solid rgba(178,16,27,.25) !important;
    outline-offset: 3px !important;
  }
  body.id-pwa-page-menu #menu-right-content .box-grey {
    overflow: hidden !important;
    border: 1px solid #e3e7eb !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 14px 40px rgba(22,31,43,.08) !important;
  }
}
@media (min-width:1025px) and (prefers-reduced-motion:reduce) {
  body.id-pwa-page-menu .items-row > .row,
  body.id-pwa-page-menu .menu-item.dsktop { transition:none !important; }
}
/* v23.4 — menu geometry hardening: stable columns and centered add symbol */
@media (min-width:1025px) {
  body.id-pwa-page-menu #menu_left_content > .row {
    display:grid!important;
    grid-template-columns:190px minmax(0,1fr)!important;
    gap:20px!important;
    width:100%!important;
    margin:0!important;
  }
  body.id-pwa-page-menu #menu_left_content > .row > .category-list,
  body.id-pwa-page-menu #menu_left_content > .row > #menu-list-wrapper {
    float:none!important;
    width:auto!important;
    min-width:0!important;
    padding:0!important;
    grid-area:auto!important;
    grid-row:1!important;
  }
  body.id-pwa-page-menu #menu_left_content > .row > .category-list { grid-column:1!important; }
  body.id-pwa-page-menu #menu_left_content > .row > #menu-list-wrapper { grid-column:2!important; }
  body.id-pwa-page-menu .menu-1.box-grey,
  body.id-pwa-page-menu .menu-cat,
  body.id-pwa-page-menu .items-row {
    width:100%!important; max-width:none!important; box-sizing:border-box!important;
  }
  body.id-pwa-page-menu .items-row > .row > [class*="col-"] {
    grid-area:auto!important; box-sizing:border-box!important; overflow:hidden!important;
  }
  body.id-pwa-page-menu .items-row > .row > div:first-child {
    grid-column:1!important; grid-row:1!important; overflow-wrap:anywhere!important;
  }
  body.id-pwa-page-menu .items-row > .row > .food-price-wrap:not(.relative) {
    grid-column:2!important; grid-row:1!important;
  }
  body.id-pwa-page-menu .items-row > .row > .food-price-wrap.relative {
    grid-column:3!important; grid-row:1!important;
  }
  body.id-pwa-page-menu .menu-item.dsktop {
    position:relative!important; line-height:1!important; text-align:center!important;
  }
  body.id-pwa-page-menu .menu-item.dsktop > i { display:none!important; }
  body.id-pwa-page-menu .menu-item.dsktop::before {
    content:"+"!important; position:absolute!important; inset:0!important; display:grid!important;
    width:auto!important; height:auto!important; margin:0!important; place-items:center!important;
    color:#fff!important; font-family:Arial,sans-serif!important; font-size:26px!important;
    font-weight:400!important; line-height:1!important; text-align:center!important;
    transform:none!important;
  }
}