/* Static responsive mobile header: keep the contact details between the
   branding and the actions when the viewport is wide enough for one readable
   row. Narrow phones retain the two-row layout so the email is never clipped. */
@media only screen and (min-width: 640px) and (max-width: 991px) {
  body.sticky-header #sp-header > .container > .row {
    display: block !important;
    position: relative;
    height: 100%;
    margin: 0 !important;
  }

  body.sticky-header #sp-header #sp-logo {
    position: absolute;
    top: 50%;
    left: 15px;
    width: auto !important;
    min-width: 0;
    height: auto;
    padding: 0 !important;
    transform: translateY(-50%);
  }

  body.sticky-header #sp-header #sp-logo .logo {
    width: auto;
    min-height: 0;
    padding: 0 !important;
  }

  body.sticky-header #sp-header #sp-contact .afem-header-actions {
    position: absolute;
    top: 50%;
    right: 15px;
    width: auto !important;
    height: 32px;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    transform: translateY(-50%);
  }

  body.sticky-header #sp-header #sp-contact .sp-contact-info {
    position: absolute;
    top: 50%;
    right: clamp(110px, 17%, 170px);
    bottom: auto;
    left: clamp(275px, 38%, 360px);
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto !important;
    min-width: 0;
    height: 26px;
    overflow: hidden;
    transform: translateY(-50%);
  }

  body.sticky-header #sp-header #sp-contact .sp-contact-info li {
    min-width: 0;
    flex: 0 1 auto;
    height: 24px;
    font-size: 10px;
  }

  body.sticky-header #sp-header #sp-contact .sp-contact-info li i {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-right: 3px;
    font-size: 10px;
  }

  body.sticky-header #sp-header #sp-contact .sp-contact-info li a {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
  }

  body.sticky-header #sp-header #sp-contact .afem-header-actions a:not(.afem-whatsapp-action) {
    flex: 0 0 60px;
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px;
    min-height: 30px;
    padding: 2px !important;
    font-size: 8px !important;
    line-height: 1.1;
  }

  body.sticky-header #sp-header #sp-contact .afem-header-actions a.afem-whatsapp-action {
    flex: 0 0 28px;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px;
    min-height: 28px !important;
  }
}
