.topbar-icon-links {
  gap: 10px;
  align-items: center;
}

.top-icon-link {
  min-width: 36px;
  min-height: 36px;
  width: 36px;
  height: 36px;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  background: transparent;
}

.top-icon-link:hover {
  background: rgba(0,0,0,.05);
}

.top-icon-glyph {
font-size: 25px;
  line-height: 1;
}

.top-icon-avatar {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--line, #ddd);
  background: var(--bg, #f5f5f5);
  display: block;
}

@media (max-width: 980px) {
  .topbar-icon-links {
    gap: 8px;
  }

  .topbar .search-form.top-search-form,
  body.profile-page .topbar .search-form.top-search-form {
    position: relative !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .topbar .search-form.top-search-form input[type="text"],
  body.profile-page .topbar .search-form.top-search-form input[type="text"] {
    width: 100% !important;
    max-width: none !important;
    padding: 10px 48px 10px 14px !important;
  }

  .topbar .search-form.top-search-form .top-search-open-btn,
  body.profile-page .topbar .search-form.top-search-form .top-search-open-btn {
    right: 5px !important;
    top: 50% !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .top-icon-link {
    min-width: 34px;
    min-height: 34px;
    width: 34px;
    height: 34px;
  }

}

.top-icon-avatar-link {
  --topbar-avatar-size: clamp(45px, 4.4vw, 45px);
  min-width: var(--topbar-avatar-size);
  min-height: var(--topbar-avatar-size);
  width: var(--topbar-avatar-size);
  height: var(--topbar-avatar-size);
  overflow: visible;
}

.top-icon-avatar-link .subscription-avatar-wrap {
  width: 100%;
  height: 100%;
}
