/* UK Help Now - mobile only menu repair. Desktop is not changed. */

.ukhn-mobile-only-header,
.ukhn-mobile-only-drawer {
  display: none;
}

@media(max-width:760px){
  /* Hide old mobile header/menu only on mobile */
  header:not(.ukhn-mobile-only-header),
  .ukhn-shell-header,
  .site-header,
  .main-header {
    display: none !important;
    visibility: hidden !important;
  }

  .ukhn-mobile-only-header {
    display: block !important;
    visibility: visible !important;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e4eaf2;
    position: relative;
    z-index: 999998;
  }

  .ukhn-mobile-only-inner {
    min-height: 48px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-sizing: border-box;
  }

  .ukhn-mobile-only-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #101828;
    min-width: 0;
    max-width: calc(100% - 96px);
  }

  .ukhn-mobile-only-brand img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex: 0 0 auto;
  }

  .ukhn-mobile-only-brand span {
    font-size: 15px;
    font-weight: 950;
    color: #101828;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ukhn-mobile-only-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 11px;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    background: #fff;
    color: #101828;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16,24,40,.07);
  }

  .ukhn-mobile-only-drawer {
    display: none;
    position: fixed;
    top: 56px;
    left: 10px;
    right: 10px;
    z-index: 999999;
    background: #fff;
    border: 1px solid #e4eaf2;
    border-radius: 18px;
    padding: 9px;
    box-shadow: 0 22px 60px rgba(16,24,40,.22);
  }

  body.ukhn-mobile-only-menu-open .ukhn-mobile-only-drawer {
    display: grid !important;
    gap: 6px;
  }

  .ukhn-mobile-only-drawer a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 39px;
    padding: 9px 11px;
    border-radius: 12px;
    background: #f8fafc;
    color: #101828;
    text-decoration: none;
    font-size: 14px;
    font-weight: 850;
  }

  .ukhn-mobile-only-drawer a:hover {
    background: #ecfdf3;
    color: #047857;
  }

  body.ukhn-mobile-only-menu-open .ukhn-floating-lang {
    display: none !important;
    visibility: hidden !important;
  }

  .ukhn-floating-lang {
    top: 56px !important;
    z-index: 45 !important;
  }

  html[dir="rtl"] .ukhn-mobile-only-drawer a {
    text-align: right;
    justify-content: flex-end;
  }
}
